How azure-samples/aks-store-demo works
AKS Store Demo is a polyglot microservices storefront. Customers browse products and place orders; staff manage products and monitor orders, while a queue-driven makeline service processes orders. Product CRUD and AI generation are separate backend capabilities, and scheduled virtual clients/workers simulate activity. The product service excerpt uses an in-memory product store; the README documents DocumentDB and RabbitMQ as the broader application’s persistence and queue services. Some service-to-service wiring is documented only at a high level, so uncertain links are dashed.
Main entry points: src/App.vue Admin UI · products.rs Product API · app.rs Product Server · src/App.vue Storefront UI
Components 22
Customer Storefront
- Storefront UI
src/store-front/src/App.vue - Store Navigation
src/store-front/src/components/TopNav.vue - Shopping Cart
src/store-front/src/views/ShoppingCartView.vue
Store Administration
- Admin UI
src/store-admin/src/App.vue - Admin Navigation
src/store-admin/src/components/TopNav.vue - Order Views
src/store-admin/src/views/OrderListView.vue - Product Management
src/store-admin/src/views/ProductFormView.vue
Commerce Services
- Order API
src/order-service/routes/root.js - Order Processing
src/makeline-service/consumer.go - Product API
src/product-service/src/routes/products.rs - Product Server
src/product-service/src/app.rs - Product Store
src/product-service/src/models.rs - Order Queue
src/makeline-service/orderqueue.go - DocumentDB
AI Capabilities
- AI Proxy Routes
src/product-service/src/routes/ai.rs - AI Service API
src/ai-service/main.py - Description Generation
src/ai-service/routers/description_generator.py - Image Generation
src/ai-service/routers/image_generator.py - OpenAI-Compatible Models
Simulated Activity
- Virtual Customer
src/virtual-customer/src/main.rs - Virtual Worker
src/virtual-worker/src/main.rs
Other components
- Customer
Connections 26
- Customer → Storefront UI: uses
README.md - Storefront UI → Store Navigation: renders
src/store-front/src/App.vue - Customer → Shopping Cart: shops with
- Storefront UI → Product API: fetches products
src/store-front/src/App.vue - Shopping Cart → Order API: places orders
- Admin UI → Admin Navigation: renders
src/store-admin/src/App.vue - Admin UI → Product API: fetches products
src/store-admin/src/App.vue - Admin UI → Order Processing: fetches orders
src/store-admin/src/App.vue - Admin UI → Order Views: routes to
- Admin UI → Product Management: routes to
- Product Management → Product API: saves products
src/store-admin/src/views/ProductFormView.vue - Product Management → AI Proxy Routes: requests generation
src/store-admin/src/views/ProductFormView.vue - Order API → Order Queue: queues orders
README.md - Order Queue → Order Processing: dispatches orders
README.md - Order Processing → DocumentDB: persists orders
README.md - Product API → Product Store: reads and writes
src/product-service/src/routes/products.rs - Product Server → Product API: registers routes
src/product-service/src/app.rs - Product Server → AI Proxy Routes: registers routes
src/product-service/src/app.rs - Product Server → Product Store: initializes
src/product-service/src/app.rs - AI Proxy Routes → AI Service API: proxies requests
src/product-service/src/routes/ai.rs - AI Service API → Description Generation: registers router
src/ai-service/main.py - AI Service API → Image Generation: registers router
src/ai-service/main.py - Description Generation → OpenAI-Compatible Models: generates text
src/ai-service/routers/description_generator.py - Image Generation → OpenAI-Compatible Models: generates images
README.md - Virtual Customer → Order API: simulates ordering
README.md - Virtual Worker → Order Queue: simulates completion
README.md