Architecture at a Glance — System Component Inventory

By Engineering Team•September 27, 2026•5 min read

This page is a system-wide component inventory, not a feature’s request/response flow — each entry below is one line: what a piece is and what it’s responsible for. How a specific request actually moves through these pieces is documented per feature, driven by that feature’s BRD/SR, in the other 04-architecture docs — start there for sequencing and data flow.

Ecommerce Shoppee — high-level microservice architecture: client apps, gateway, backend services, data stores, async messaging, and third-party integrations

Microservices — Go

Service Data store Responsibility
tenant-service PostgreSQL Owns tenant records and tenant-scoped app configuration.
shop-service MongoDB Joins catalog, inventory, and search into storefront sections for the mobile app.
search-service MongoDB Atlas Search Indexes products and serves ranked search results.
product-catalog MongoDB Owns descriptive product/SKU catalog data.
inventory-service PostgreSQL Owns pricing, stock levels, and stock reservation.
content-processor MongoDB Derives processed media variants for the catalog pipeline.
user-preference-service MongoDB Manages wishlist and recently-viewed items.
shipment-service MongoDB Resolves fulfilment centre, courier, ETA, and fee by zipcode; integrates with Shiprocket.
order-service MongoDB Creates orders and runs the checkout saga (order → payment → shipment) with compensating rollbacks.

Microservices — Rust

Service Data store Responsibility
user-secure-engine MongoDB + PostgreSQL Verifies Firebase ID tokens and App Check for the gateway; exchanges and decrypts PII.
pii-service PostgreSQL Encrypted personal-data attribute store.
pci-service PostgreSQL Encrypted card-data attribute store.
media-access-service PostgreSQL Media file metadata, access control, and signed URLs.
payment-service PostgreSQL Payment method configuration; Razorpay order creation and webhook handling.
document-service MongoDB + GCS Masks and archives audit-trail payloads published by other services.
provider-auth-service MongoDB Mints and caches OAuth2 tokens for third-party providers (e.g. Shiprocket).
notification-service — Planned SMS/email/call notification hub — today a non-compiling copy-paste of user-secure-engine’s bootstrap code, no real notification logic exists.

Microservices — Node (NestJS)

Service Data store Responsibility
tenant-migration MongoDB Verifies and executes a tenant’s bulk CSV catalog import, publishing one event per record.
tenant-migration-orchestrator MongoDB Consumes migration events and dispatches each record to its target microservice API.
firebase-function — Reacts to GCS storage events outside the HTTP gateway.

Shared Libraries

Library Responsibility
go-lang-core-lib Shared Go db/logging/auth/tracing/error-handling used by every Go service.
rust-lang-core-lib Shared Rust equivalent, plus the PII/PCI encrypted-attribute (EAV) implementation.
node-lang-core-lib Shared Node equivalent, partial parity with the Go library.

Client Applications

App Stack Responsibility
ui-application Flutter Customer-facing mobile storefront.
ui-admin-application React + MUI + Zustand Tenant/admin management console.

Platform Tools & Infrastructure

Component Responsibility
CDN edge (WAF/CDN) Single public entry point for all traffic.
API gateway (Nginx) Internal gateway enforcing auth and Firebase App Check on every route.
Firebase Auth / App Check Verifies end-user identity and client integrity.
Temporal Hosts order-service’s checkout saga workflow.
MongoDB / PostgreSQL Primary data stores — each service owns its own schema, never shared.
Pub/Sub Asynchronous event backbone for migration records, the audit trail, and order/shipment status.
GCS / Firebase Storage Object storage for media, staging uploads, and masked audit documents.

External Providers

Provider Integrated by Responsibility
Razorpay payment-service Payment gateway — order creation and webhook-based payment confirmation.
Shiprocket shipment-service Logistics/courier provider for order fulfilment.

Communication Patterns

Pattern Used for
REST Client-facing and admin APIs at the gateway edge; each service’s default synchronous transport.
GraphQL shop-service’s storefront API — the platform’s one GraphQL surface, consumed only by the Flutter app.
gRPC Synchronous inter-service calls behind the gateway.
Pub/Sub Asynchronous, decoupled events — tenant-migration records, the document-audit trail, and order/shipment status.

Coding Standards & Language/Framework Rationale

Why each language/framework above was chosen, and how a service or client app is layered internally once that choice is made, are both documented separately rather than repeated here as one-liners:

  • ADR-00010: Polyglot Language & Runtime Selection — why Go, Rust, Node, Flutter, and React each own the workload they own.
  • Coding Standards section — the shared domain/repository/service/transport layering, the coding patterns enforced in all three backend languages, the Flutter/React client feature triads, which shared tool each layer integrates with, and each language’s own dedicated standard doc (Go, Rust, Node, Flutter, React).