How alifakoor/google-microservices-demo works
• Frontend Component: Representing the web server (written in Go) which serves the UI.
• Microservices: Create nodes for each service – adservice (Java), cartservice (C#), productcatalogservice (Go), currencyservice (Node.js), paymentservice (Node.js), shippingservice (Go), emailservice (Python), checkoutservice (Go), recommendationservice (Python), and loadgenerator (Python/Locust). Also include shoppingassistantservice if shown.
• Supporting Infrastructure: Identify backend data tiers such as Redis (cart storage), AlloyDB, Spanner, and Memorystore as referenced in deployment and Terraform directories.
• gRPC Messaging: Indicate the common communication layer (gRPC and Protocol Buffers) which sits between these services.
• API Gateway/Ingress: Incorporate the frontend’s external access point (with Kubernetes Ingress, Istio gateways, etc.) as shown by the istio-manifests and Kubernetes manifests.
• Deployment & Configuration Layers: Highlight deployment artifacts such as Helm charts, Kustomize overlays, Terraform modules, and Kubernetes YAML manifests that orchestrate the infrastructure.
Relationships and Interactions
• Demonstrate how the checkout service coordinates with other microservices (cart, payment, shipping, email).
• Data flow from the frontend → microservices (adservice, recommendationservice, etc.) → external databases (Redis, Spanner, AlloyDB, Memorystore).
• That each microservice has its own containerized deployment (reflected by Dockerfiles and Kubernetes manifests) and is orchestrated as part of a larger Kubernetes cluster.
Architectural Patterns and Design Principles
• Microservices Architecture: Clearly show that the system is divided into several small, independent services.
• Polyglot Persistence and Polyglot Programming: Each microservice may be written in a different language and may use different storage backends.
• Containerization and Orchestration: Emphasize that the application is deployed on Kubernetes (with supporting manifests, Helm charts, and Kustomize overlays).
• Service Mesh & Ingress: If using Istio or Cloud Service Mesh, show the logical separation of service communication, traffic management, and security policies.
• CI/CD Pipeline: Optionally illustrate the integration with GitHub Workflows and cloud build files, which help in continuously testing and deploying the application.