Skip to content

Should we use dependency injection in Neo 3? #1042

@lock9

Description

@lock9

Hi @neo-project/core,

I think it would be good for this project if we can update it to use dependency injection. This will make the code more modular and more testable. We already did this in neo-sharp and it worked really well.
I did some brief research and it seems that dependency injection fits with Akka:
https://doc.akka.io/docs/akka/current/actors.html#dependency-injection

What do you think? Shoud we use our own dependency injection or use an existing framework? We could copy from neo-sharp.

Metadata

Metadata

Assignees

Labels

DesignIssue state - Feature accepted but the solution requires a design before being implementedEnhancementType - Changes that may affect performance, usability or add new features to existing modules.HousekeepingSmall enhancements that need to be done in order to keep the project organised

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions