Architecture
SyZero follows a modular architecture where each package maps to a dedicated capability.
Recommended layers
- Web: protocols, controllers, API gateway.
- Application: use-case orchestration and transactional boundaries.
- Domain/Core: aggregates, entities, and domain services.
- Infrastructure: database, cache, queue, and external systems.
Dependency injection conventions
IScopedDependencyITransientDependencyISingletonDependency
Design principles
- Keep dependencies minimal and explicit.
- Start with lightweight built-in capabilities in dev environments.
- Scale out with dedicated modules for production workloads.