How mouadfiali/gke-cloud-project works
This is the application layer of a cloud-native online-shop demo: a user-facing storefront coordinates product discovery, cart operations and checkout, with separate services for recommendations, ads, currency, payments, shipping and email. The clearest sampled runtime flow is checkout calling cart, shipping and email services; the cart service delegates persistence through a store interface. The README also describes deployment, scaling and observability enhancements, but their implementation is outside the supplied source tree. Several service interactions are therefore not shown and are not asserted here.
Main entry points: handlers.go Storefront · ICartStore.cs Cart store · main.go Checkout service · CartService.cs Cart service
Components 17
Storefront
- Storefront
src/frontend/handlers.go
Commerce services
- Cart service
src/cartservice/src/services/CartService.cs - Cart store
src/cartservice/src/cartstore/ICartStore.cs - Redis store
src/cartservice/src/cartstore/RedisCartStore.cs - Spanner store
src/cartservice/src/cartstore/SpannerCartStore.cs - AlloyDB store
src/cartservice/src/cartstore/AlloyDBCartStore.cs - Checkout service
src/checkoutservice/main.go - Payment service
src/paymentservice/server.js
Discovery services
- Product catalog
src/productcatalogservice/product_catalog.go - Recommendations
src/recommendationservice/recommendation_server.py - Ad service
src/adservice/src/main/java/hipstershop/AdService.java
Supporting services
- Shipping service
src/shippingservice/main.go - Email service
src/emailservice/email_server.py - Currency service
src/currencyservice/server.js - Shopping assistant
src/shoppingassistantservice/shoppingassistantservice.py - Load generator
src/loadgenerator/locustfile.py
Other components
- Shopper
Connections 14
- Shopper → Storefront: uses
- Storefront → Product catalog: requests products
- Storefront → Recommendations: requests suggestions
- Storefront → Ad service: requests ads
- Storefront → Cart service: updates cart
- Storefront → Checkout service: submits checkout
- Checkout service → Cart service: gets cart
src/checkoutservice/main.go - Checkout service → Shipping service: gets quote
src/checkoutservice/main.go - Checkout service → Email service: sends confirmation
src/checkoutservice/main.go - Cart service → Cart store: uses store
src/cartservice/src/services/CartService.cs - Cart store → Redis store: implemented by
- Cart store → Spanner store: implemented by
src/cartservice/src/cartstore/SpannerCartStore.cs - Cart store → AlloyDB store: implemented by
- Load generator → Storefront: generates traffic