How seesathish/antkart-src3 works
AntKart is a cloud-native e-commerce platform: customers enter through an API gateway, which routes requests to six microservices. The product workflow spans catalogue and discount pricing, cart, order creation, stock reservation and payment; services coordinate business events through Service Bus, while customer-facing events use Event Grid to trigger serverless email notifications. The graph also preserves the documented persistence, identity and payment integrations. Service-to-service and cloud links are based on README statements; sampled source confirms selected handler behavior, not every runtime registration or route.
Main entry points: Program.cs API gateway · OrderEndpoints.cs Order service · PaymentEndpoints.cs Payments service · GetProductsQueryHandler.cs Product queries
Components 25
Entry and identity
- API gateway
AK.Gateway/AK.Gateway.API/Program.cs - Entra ID
Commerce services
- Product catalogue
AK.Products/AK.Products.API/Endpoints/ProductEndpoints.cs - Product queries
AK.Products/AK.Products.Application/Queries/GetProducts/GetProductsQueryHandler.cs - Product domain
AK.Products/AK.Products.Domain/Entities/Product.cs - Cosmos DB
- Shopping cart
AK.ShoppingCart/AK.ShoppingCart.Application/Commands/AddToCart/AddToCartCommandHandler.cs - Managed Redis
- Discount service
AK.Discount/AK.Discount.Grpc/Services/DiscountService.cs - Coupon domain
AK.Discount/AK.Discount.Domain/Entities/Coupon.cs
Order and payment workflow
- Order service
AK.Order/AK.Order.API/Endpoints/OrderEndpoints.cs - Order handlers
AK.Order/AK.Order.Application/Features/CreateOrder/CreateOrderCommandHandler.cs - Order aggregate
AK.Order/AK.Order.Domain/Entities/Order.cs - PostgreSQL
AK.Order/AK.Order.Infrastructure/Persistence/OrderDbContext.cs - Payments service
AK.Payments/AK.Payments.API/Endpoints/PaymentEndpoints.cs - Razorpay
- Payments PostgreSQL
AK.Payments/AK.Payments.Infrastructure/Persistence/PaymentsDbContext.cs - Azure Service Bus
Customer notifications
- Azure Event Grid
- Notification function
AK.Notification/AK.Notification.Functions/NotificationFunctions.cs - Notification dispatch
AK.Notification/AK.Notification.Core/Dispatch/NotificationDispatcher.cs - Email channel
AK.Notification/AK.Notification.Core/Channels/EmailNotificationChannel.cs - Communication Services
Shared platform
- Shared building blocks
AK.BuildingBlocks/AK.BuildingBlocks
Other components
- Customer
Connections 27
- Customer → API gateway: calls
README.md - API gateway → Entra ID: validates token
README.md - API gateway → Product catalogue: routes requests
README.md - API gateway → Shopping cart: routes requests
README.md - API gateway → Order service: routes requests
README.md - API gateway → Payments service: routes requests
README.md - API gateway → Discount service: routes requests
README.md - Product catalogue → Product queries: handles queries
- Product queries → Cosmos DB: reads catalogue
README.md - Product queries → Discount service: gets discounts
AK.Products/AK.Products.Application/Queries/GetProducts/GetProductsQueryHandler.cs - Product queries → Product domain: maps products
AK.Products/AK.Products.Application/Queries/GetProducts/GetProductsQueryHandler.cs - Discount service → Coupon domain: uses coupons
- Shopping cart → Managed Redis: reads and writes
README.md - Order service → Order handlers: handles commands
- Order handlers → Order aggregate: creates orders
AK.Order/AK.Order.Domain/Entities/Order.cs - Order service → PostgreSQL: persists orders
README.md - Payments service → Payments PostgreSQL: persists payments
README.md - Payments service → Razorpay: processes payments
README.md - Order service → Azure Service Bus: publishes saga events
README.md - Payments service → Azure Service Bus: publishes saga events
README.md - Azure Service Bus → Order service: delivers events
README.md - Azure Service Bus → Payments service: delivers events
README.md - Order aggregate → Azure Event Grid: emits customer events
README.md - Azure Event Grid → Notification function: triggers function
README.md - Notification function → Notification dispatch: dispatches notifications
- Notification dispatch → Email channel: selects channel
- Email channel → Communication Services: sends email
README.md