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
Deciding late means each group goes to the node that can actually serve it.
It knows the network from local copies of sibling events and calls no other service.
That independence costs a wide event fan-in and a load profile nobody has measured.
Fund a load test of the virtual queue and alerts on outbox backlog, consumer lag and unsourceable share.
Core subdomain of the retail network's commerce tier. It owns the FulfillmentAssignment aggregate and the virtual queue behind it: every shipment group of a placed order is queued, continuously re-optimised against network capacity, and released to exactly one node at the last responsible moment…
Every shipment group waits in a virtual queue, is re-optimised against capacity, then released to one node and locked once it commits.
It reads 36 event types from nine producers, and the queue sweep and multi-replica use have never been load-tested.
Queues each shipment group and keeps finding a better node, path and cost.
Flags a group right away when no node can serve it.
Sends a group to one node at a time and moves on if that node refuses.
Locks the assignment once the node commits, so it never changes after.
Follows each group to delivery and decides cancel requests by the lock.
Applies revised delivery promises in every state before the end.
OpenTelemetry OTLP/gRPC from cmd/api, mcp and a2a (os-projector and os-reports also carry telemetry.go) to the in-cluster Collector -> Jaeger (traces) + Prometheus (metrics)…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Consumes 36 event types from nine producers (plus 3 own types read back): any upstream contract change ripples into read models (ADR…
ADR 0003 partly decouples read models; the coupling is only partially removed.
Every REST, MCP and A2A endpoint is unauthenticated BY DECISION (README 'No authentication'…
A decision, not a gap: the cluster-internal boundary is the only access control.
The sweep re-optimises the other queued assignments every SWEEP_INTERVAL (15s) and multi-replica api is not load-tested (runbook.md):…
Run a load test before trusting peak-volume latency.
Acceptance after cancellation is not undone: a vendor may still ship a cancelled group…
Acceptance after cancellation is an open canvas question; close it with the owners.
Order Sourcing picks each shipment's node at the last responsible moment, so choices track real capacity
| Style | Hexagonal (ports & adapters), event-driven DDD, transactional outbox; five binaries (api, mcp, a2a, os-projector, os-reports) |
| Layout | cmd/{api,mcp,a2a,os-projector,os-reports} composition roots; internal/domain {assignment, policy, sourcing, network, shared}… |
| Storage | PostgreSQL (pgx v5): aggregates, sourcing policies, inbox, transactional outbox, global idempotency keys, 7 schema migrations… |
| Testing | Unit + 90% coverage gate over domain, application and analytics; integration on real PostgreSQL and Kafka via testcontainers… |
| REST | 9 operations over 8 paths: 5 on :8080 (/assignments, /assignments/{assignmentId}, /assignments/{assignmentId}/reoptimisations… |