This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic. · November 2026
Shoppers get search, product pages and a category tree from just three read routes.
Each product carries one purchasable, in-stock and searchable verdict built from every source.
It writes nothing and publishes nothing, so it can be rebuilt from its source topics.
Schedule the rebuild Job as a regular drill, so we know stale views can be repaired on demand.
Product Discovery is the Supporting-subdomain read side of the storefront: it folds events from offer-availability, product-content and pricing into one ProductView per catalogue item (title, flags, content, category path, list and effective price, stock, purchasable verdict) and one CategoryView with purchasable counts…
It reads eleven event types from offer-availability, product-content and pricing, and serves search, product and category reads.
Freshness rides entirely on events: a dropped event leaves pages stale until a rebuild Job that is off by default runs.
Shoppers search with facets, category suggestions and paging.
One call returns everything needed to show a single product.
A browsable tree shows how many buyable products sit in each category.
Item and listing availability flow in from offer-availability.
Descriptions and category versions arrive from product-content.
Prices arrive from pricing, so the view shows what shoppers pay.
OpenTelemetry SDK -> OTLP/gRPC -> in-cluster Collector -> Jaeger (traces) and Prometheus (metrics); stdout JSON logs shipped by Alloy to Loki (fleet observability standard ADR)
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Freshness is wholly event-driven: consumer lag or a dropped upstream event leaves stale ProductViews until the (default-off) rebuild…
Exercise the default-off rebuild Job as a scheduled projection-integrity drill.
PostgreSQL FTS + pg_trgm is the search engine; catalogue growth may force the dedicated-engine swap the port anticipates
Evaluate a dedicated search-engine adapter behind the existing search port.
Every REST, A2A and MCP endpoint is unauthenticated by decision (fleet-wide auth revert 2026-09-11, TestNoAuthMiddlewareReintroduced)
A decision, not a gap: fleet-wide.
N>1 pods is supported by the row lock and per-key guards but has not been load-tested
The row lock and per-key guards support it; a load test would prove it.
Product Discovery folds three upstream contexts into one searchable view, so shoppers see what they can buy
| Style | Hexagonal (ports and adapters), CQRS read side built as event-carried projections; DDD bounded context, no aggregate |
| Layout | cmd/{api (REST :8080 + 3 Kafka consumer groups), a2a (agent :8093), mcp (server :8090), rebuild (one-shot Helm Job)}… |
| Storage | PostgreSQL only (projections: products, category_view, listing_items, processed_events; golang-migrate)… |
| Testing | Domain unit tests under a mutation gate, application tests, adapter httptest/Kafka tests, godog BDD (8 feature files), testcontainers integration against real Postgres + Kafka… |
| REST | 3 operations over 3 paths on :8080: /products, /products/{catalogItemId}, /categories |