Architecture: Product Catalog — Admin to Mobile Flow

By Engineering Team•September 25, 2026•7 min read

This is the architecture behind the decision recorded in ADR-00005, satisfying the requirements in BRD-004 and SR-004.

Diagram

Product catalog admin-to-mobile architecture — component and data flow diagram

The diagram predates the Stock & Threshold (Opening Entry) wizard step being added — that step’s REST call target and data flow are identical in shape to the other inventory-service-owned steps shown (Variant Builder, Compliance & Pricing, Package Map), just not yet redrawn into this image.

Components

Component Language / Runtime Role
ui-admin-application (Admin — React) React (MUI + Zustand) Renders the nine-step product wizard; three steps (Product Info, Specifications & Tags, Review & Publish) call product-catalog directly, five steps (Variant Builder, Stock & Threshold, Volumetric Specs, Compliance & Pricing, Package Map) call inventory-service directly, and the Images step goes through media-access-service.
product-catalog Go Owns product draft/descriptive data (MongoDB), holds the per-step sync markers used by the publish-readiness gate (FR-08), and is the read source shop-service joins against.
inventory-service Go Owns every SKU-transactional concern (variants, stock thresholds, dimensions, compliance/pricing, package mapping) in PostgreSQL, and publishes one Pub/Sub completion event per step (FR-10).
media-access-service Rust Issues the presigned upload URL for product images into the Firebase Staging Bucket, per the same pattern documented in Architecture: Image Processing Pipeline.
firebase-function / content-processor Node.js / Go Same image pipeline as ADR-00001 — transcodes the uploaded product image and publishes a processed-image event that product-catalog consumes.
Pub/Sub — step-completion events GCP Pub/Sub inventory-service → product-catalog. Five independent, best-effort topics/subscriptions, one per wizard step owned by inventory-service (FR-10).
shop-service — Joins product-catalog (gRPC) and inventory-service (gRPC) data at request time to assemble curated storefront sections, exposed to the mobile app over GraphQL. See Architecture-00005 for the full storefront-configuration flow.
ui-application (Mobile — Flutter) Flutter Renders storefront sections and the product detail screen from shop-service’s GraphQL API (FR-12).

End-to-end flow

  1. A catalog team member starts a new product in the admin wizard. Steps 1 (Product Info), 3 (Specifications & Tags), and 9 (Review & Publish) call product-catalog directly over REST, writing/reading the product’s own draft document (FR-02).
  2. Step 2 (Images) uploads through media-access-service’s presigned URL into the Firebase Staging Bucket; firebase-function and content-processor transcode it exactly as in the image pipeline, and product-catalog consumes the resulting processed-image event to attach the derived image references to the product draft.
  3. Steps 4, 5, 6, 7, and 8 (Variant Builder, Stock & Threshold, Volumetric Specs, Compliance & Pricing, Package Map) each call inventory-service directly over REST, writing SKU-transactional data into its own PostgreSQL store (FR-03 through FR-07).
  4. On each of those five steps’ successful save, inventory-service publishes its own completion event (variant-builder-upserted, opening-entry-upserted, sku-dimension-upserted, sku-compliance-pricing-upserted, sku-box-mapping-upserted) — independently, best-effort, one topic per step (FR-10).
  5. product-catalog subscribes to all five events and updates the corresponding sync marker on the product document as each one arrives — this is the only channel through which product-catalog learns that an inventory-service-owned step is complete (FR-10, FR-11).
  6. When the operator reaches Step 9 and requests publish, product-catalog’s Publish reads only its own locally-held sync markers — variant, dimensions, compliance/pricing, package map, and opening entry — and rejects the request if any required marker isn’t complete (FR-08). No synchronous call to inventory-service happens at this point (see ADR-00005).
  7. When a shopper opens the mobile app, shop-service assembles each curated storefront section by joining product-catalog (descriptive data, gRPC) with inventory-service (live price/availability, gRPC) at request time, and serves the result to ui-application over GraphQL. See Architecture-00005 for the full section-assembly flow.
  8. Tapping into a product opens ui-application’s product detail screen, sourced from the same shop-service/product-catalog read path, showing current price, stock, images, and specifications (FR-12).
  9. A shopper has no general “browse all products” entry point today — every product is reached via a curated storefront section (FR-13, gap).