How matheus2306/orbis-commerce works
Orbis Commerce is an educational .NET backend split into Catalog, Inventory, and Order APIs. Clients use each API independently: Catalog creates and reads products, Inventory manages stock and reservations, and Order creates orders that request stock reservation asynchronously. Creating a catalog product also publishes an event that initializes zero-balance inventory. Orders publish reservation requests, but the README says no consumer or confirmation/rejection flow exists, so orders remain pending. The excerpts establish key service calls and persistence; README-documented links cover broker wiring and capabilities whose implementation was not sampled.
Main entry points: ProductService.cs Product service · OrderService.cs Order service · StockReservationService.cs Reservation service · ProductEndpoints.cs Product endpoints
Components 21
Catalog
- Product endpoints
src/Services/Catalog/Orbis.Catalog.Api/Endpoints/ProductEndpoints.cs - Product service
src/Services/Catalog/Orbis.Catalog.Api/Application/ProductService.cs - Product model
src/Services/Catalog/Orbis.Catalog.Api/Domain/Product.cs - Product repository
src/Services/Catalog/Orbis.Catalog.Api/Repositories/ProductRepository.cs - Catalog database
src/Services/Catalog/Orbis.Catalog.Api/Data/CatalogDbContext.cs - Product read cache
src/Services/Catalog/Orbis.Catalog.Api/Application/CachedProductReader.cs
Inventory
- Stock endpoints
src/Services/Inventory/Orbis.Inventory.Api/Endpoints/StockEndpoints.cs - Reservation service
src/Services/Inventory/Orbis.Inventory.Api/Application/StockReservationService.cs - Product event consumer
src/Services/Inventory/Orbis.Inventory.Api/Consumers/ProductCreatedCostumer.cs - Stock item
src/Services/Inventory/Orbis.Inventory.Api/Domain/StockItem.cs - Stock reservation
src/Services/Inventory/Orbis.Inventory.Api/Domain/StockReservation.cs - Inventory database
src/Services/Inventory/Orbis.Inventory.Api/Data/InverntoryDbContext.cs
Orders
- Order endpoints
src/Services/Order/Orbis.Order.Api/Endpoints/OrderEndpoints.cs - Order service
src/Services/Order/Orbis.Order.Api/Application/OrderService.cs - Order model
src/Services/Order/Orbis.Order.Api/Domain/Order.cs - Order database
src/Services/Order/Orbis.Order.Api/Data/OrderDbContext.cs
Messaging
- ProductCreated event
src/BuildingBlocks/Orbis.Contracts/Events/ProductCreated.cs - RabbitMQ
- Reservation request
src/BuildingBlocks/Orbis.Contracts/Events/StockReservationRequested.cs
Other components
- HTTP client
- Redis
Connections 22
- HTTP client → Product endpoints: HTTP requests
README.md - HTTP client → Stock endpoints: HTTP requests
README.md - HTTP client → Order endpoints: HTTP requests
README.md - Product endpoints → Product service: delegates
src/Services/Catalog/Orbis.Catalog.Api/Endpoints/ProductEndpoints.cs - Product endpoints → Product read cache: reads through
src/Services/Catalog/Orbis.Catalog.Api/Endpoints/ProductEndpoints.cs - Product service → Product repository: queries and saves
src/Services/Catalog/Orbis.Catalog.Api/Application/ProductService.cs - Product service → Product model: creates
src/Services/Catalog/Orbis.Catalog.Api/Application/ProductService.cs - Product repository → Catalog database: persists and reads
src/Services/Catalog/Orbis.Catalog.Api/Repositories/ProductRepository.cs - Product read cache → Redis: caches reads
README.md - Product service → ProductCreated event: publishes
src/Services/Catalog/Orbis.Catalog.Api/Application/ProductService.cs - Product service → RabbitMQ: outbox dispatches
README.md - RabbitMQ → Product event consumer: delivers event
README.md - Product event consumer → Stock item: creates stock
README.md - Stock endpoints → Reservation service: delegates reservations
src/Services/Inventory/Orbis.Inventory.Api/Endpoints/StockEndpoints.cs - Reservation service → Inventory database: updates and reads
src/Services/Inventory/Orbis.Inventory.Api/Application/StockReservationService.cs - Reservation service → Stock reservation: records reservations
src/Services/Inventory/Orbis.Inventory.Api/Application/StockReservationService.cs - Order endpoints → Order service: delegates
src/Services/Order/Orbis.Order.Api/Endpoints/OrderEndpoints.cs - Order service → Order model: creates
src/Services/Order/Orbis.Order.Api/Application/OrderService.cs - Order service → Order database: saves and queries
src/Services/Order/Orbis.Order.Api/Application/OrderService.cs - Order service → Reservation request: publishes
src/Services/Order/Orbis.Order.Api/Application/OrderService.cs - Order service → RabbitMQ: outbox dispatches
README.md - RabbitMQ → Reservation service: reservation consumer absent
README.md