How questo/ratatosk works
Ratatosk is an event-driven DDD application for authentication, product catalog, inventory, and ordering. Users enter through the minimal API; application services handle commands and queries, domain aggregates represent business state, and infrastructure supplies event storage, snapshots, read models, and event dispatch. The README documents CQRS, event sourcing, snapshotting, and pluggable storage. Some subsystem wiring is unsampled, so the graph omits uncertain calls rather than inferring them from names or folder structure.
Main entry points: Program.cs Minimal API · Inventoring Inventory application · AggregateRepository.cs Aggregate repository · ReadModels CQRS read models
Components 22
API
- Minimal API
src/API/Program.cs - Authentication endpoints
src/API/Auth/AuthEndpoints.cs - Catalog endpoints
src/API/Products/ProductsEndpoints.cs - Inventory endpoints
src/API/Inventory/InventoryEndpoints.cs - Order endpoints
src/API/Orders/OrderEndpoints.cs
Application
- Authentication application
src/Application/Authentication - Catalog application
src/Application/Catalog - Inventory application
src/Application/Inventoring - Ordering application
src/Application/Ordering
Domain
- Catalog domain
src/Domain/Catalog - Identity domain
src/Domain/Identity - Inventory domain
src/Domain/Inventoring - Ordering domain
src/Domain/Ordering
Infrastructure and Core
- DDD building blocks
src/Core - Aggregate repository
src/Infrastructure/Persistence/Repositories/AggregateRepository.cs - Event stores
src/Infrastructure/Persistence/EventSourcing - Snapshot stores
src/Infrastructure/Persistence/EventSourcing - CQRS read models
src/Infrastructure/Persistence/ReadModels - Projection registration
src/Infrastructure/ProjectionRegistrationService.cs - Event bus
src/Infrastructure/EventBus.cs - Storage backends
src/Infrastructure/Configuration
Other components
- API clients
Connections 22
- API clients → Minimal API: send requests
README.md - Minimal API → Authentication endpoints: routes auth
- Minimal API → Catalog endpoints: routes catalog
- Minimal API → Inventory endpoints: routes inventory
- Minimal API → Order endpoints: routes orders
- Authentication endpoints → Authentication application: handles auth
src/API/Auth/AuthEndpoints.cs - Catalog endpoints → Catalog application: handles catalog
src/API/Products/ProductsEndpoints.cs - Inventory endpoints → Inventory application: handles inventory
- Order endpoints → Ordering application: handles orders
- Catalog application → Catalog domain: commands aggregates
src/Application/Catalog/Queries/GetProductByIdQuery.cs - Inventory application → Inventory domain: commands aggregates
src/Infrastructure/Services/InventoryDomainService.cs - Ordering application → Ordering domain: handles orders
src/Application/Ordering/OrderConfirmationHandler.cs - Catalog application → CQRS read models: queries read models
src/Application/Catalog/Queries/SearchProductsQuery.cs - Inventory application → CQRS read models: queries stock
src/Application/Inventoring/Queries/GetStockByProductIdQuery.cs - Ordering application → CQRS read models: queries orders
src/Application/Ordering/Queries/GetOrderByIdQuery.cs - Inventory application → Aggregate repository: loads aggregates
- Aggregate repository → Event stores: loads and saves events
src/Infrastructure/Persistence/Repositories/AggregateRepository.cs - Aggregate repository → Snapshot stores: loads snapshots
src/Infrastructure/Persistence/Repositories/AggregateRepository.cs - Projection registration → Event bus: registers handlers
src/Infrastructure/ProjectionRegistrationService.cs - Event bus → CQRS read models: updates projections
- Storage backends → Event stores: configures backends
README.md - DDD building blocks → Aggregate repository: defines repository contract
src/Infrastructure/Persistence/Repositories/AggregateRepository.cs