Ordered
Distributed e-commerce marketplace (Allegro-inspired), built to practice microservices, event-driven architecture, and observability.ordered-system
A distributed e-commerce marketplace, built to learn distributed systems — not to sell anything.
Inspired by Allegro. Decomposed from a monolith into independent services with Kafka, service discovery, centralized config, and a full observability stack.
Architecture · Run it locally · Deploy it
What this is
ordered-system started as ordered-backend, a single Spring Boot monolith with a product catalog, cart, orders, Stripe payments, reviews, and JWT auth — fully functional and fully observable on its own. Once that had done its job of teaching Kafka, the outbox pattern, and a mixed PostgreSQL/MongoDB/Redis datastore setup, it was decomposed using the Strangler Fig pattern into the services below — because a monolith, however well-built, can't teach service discovery, distributed config, or coordinating a multi-service deployment. That's what this decomposition is for.
The system
Internet
│
┌──────▼──────┐
│ gateway │ JWT verification, routing,
│ │ aggregated Swagger docs
└──────┬──────┘
│
┌───────────┬───────────┼───────────┬───────────┐
┌────▼────┐ ┌────▼─────┐┌────▼─────┐┌────▼──────────┐
│ order │ │ product ││ user ││ engagement │
│ service │ │ service ││ service ││ service │
└────┬────┘ └────┬─────┘└────┬─────┘└────┬───────────┘
│ │ │ │
PostgreSQL PostgreSQL PostgreSQL MongoDB
+ Redis
Full write-up: docs/ARCHITECTURE.md.
Repositories
| Repo | What it is |
|---|---|
| 🚪 ordered-gateway | Reactive API gateway — routing, JWT verification, docs aggregation |
| 🔍 ordered-eureka | Service discovery |
| ⚙️ ordered-config-server | Centralized config (JWT secret) |
| 📦 ordered-order-service | Orders, checkout, Stripe payments |
| 🛒 ordered-product-service | Catalog, cart, stock reservations |
| 👤 ordered-user-service | Users, auth, JWT issuance |
| ⭐ ordered-engagement-service | Reviews, browsing history |
| 🧩 ordered-commons | Shared library — JWT claims filter, exception handling |
| 🐳 ordered-infra | Docker Compose (dev + prod), Caddy, Prometheus/Grafana/Jaeger — start here to run everything |
| 🧪 ordered-load-tests | Gatling load tests + end-to-end smoke test |
| 🏛️ ordered-backend | The original monolith (frozen/archived — this is where it all started) |
Stack
Java 21 · Spring Boot 4.1 · Spring Cloud (Gateway, Eureka, Config) · PostgreSQL · MongoDB · Redis · Kafka (KRaft, outbox pattern) · JWT · Stripe + Resilience4j · Docker · Caddy · Prometheus / Grafana / Jaeger · Gatling
Try it
git clone https://github.com/ordered-system/ordered-infra.git cat ordered-infra/docs/GETTING_STARTED.md
Built by Adam Dybcio · MIT licensed
Popular repositories Loading
-
ordered-backend
ordered-backend
Public
Legacy e-commerce monolith built with Spring Boot.
Java 1
-
ordered-eureka
ordered-eureka
Public
Service discovery (Netflix Eureka) for the ordered-system microservices.
Java 1
-
ordered-gateway
ordered-gateway
Public
Reactive API gateway for ordered-system — routing, edge JWT verification, and aggregated OpenAPI docs across all services.
Java 1
-
ordered-order-service
ordered-order-service
Public
Orders, checkout orchestration, and Stripe payments (Resilience4j + Kafka outbox) — part of ordered-system.
Java 1
-
ordered-product-service
ordered-product-service
Public
Product catalog, cart, and checkout stock reservations with Redis cache-aside — part of ordered-system.
Java 1
-
ordered-user-service
ordered-user-service
Public
Users, JWT authentication/authorization, and address book — part of ordered-system.
Java 1
Repositories
Showing 10 of 12 repositories-
ordered-infra
Public
Docker Compose (dev + production), Caddy reverse proxy, and the Prometheus/Grafana/Jaeger observability stack for ordered-system. Start here to run the whole platform.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-infra's past year of commit activity Makefile 1 MIT 0 0 0 Updated Oct 2, 2026 -
ordered-user-service
Public
Users, JWT authentication/authorization, and address book — part of ordered-system.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-user-service's past year of commit activity Java 1 MIT 0 0 0 Updated Oct 2, 2026 -
ordered-order-service
Public
Orders, checkout orchestration, and Stripe payments (Resilience4j + Kafka outbox) — part of ordered-system.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-order-service's past year of commit activity Java 1 MIT 0 0 0 Updated Oct 2, 2026 -
ordered-product-service
Public
Product catalog, cart, and checkout stock reservations with Redis cache-aside — part of ordered-system.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-product-service's past year of commit activity Java 1 MIT 0 0 0 Updated Oct 2, 2026 -
ordered-engagement-service
Public
Verified-purchase reviews and browsing history, backed by MongoDB — part of ordered-system.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-engagement-service's past year of commit activity Java 1 MIT 0 0 0 Updated Oct 2, 2026 -
ordered-gateway
Public
Reactive API gateway for ordered-system — routing, edge JWT verification, and aggregated OpenAPI docs across all services.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-gateway's past year of commit activity Java 1 MIT 0 0 0 Updated Sep 6, 2026 -
.github
Public
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/.github's past year of commit activity 0 0 0 0 Updated Sep 4, 2026 -
ordered-load-tests
Public
Gatling load tests and an end-to-end smoke test for the full ordered-system platform, run through the API gateway.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-load-tests's past year of commit activity Shell 1 MIT 0 0 0 Updated Sep 4, 2026 -
ordered-eureka
Public
Service discovery (Netflix Eureka) for the ordered-system microservices.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-eureka's past year of commit activity Java 1 MIT 0 0 0 Updated Sep 4, 2026 -
ordered-config-server
Public
Centralized configuration server for ordered-system — single source of truth for the shared JWT secret.
Uh oh!
There was an error while loading. Please reload this page.
ordered-system/ordered-config-server's past year of commit activity Java 1 MIT 0 0 0 Updated Sep 4, 2026
People
Top languages
Loading…
Uh oh!
There was an error while loading. Please reload this page.
Most used topics
Loading…
Uh oh!
There was an error while loading. Please reload this page.