This sample e-commerce system has unique set of properties. It is:
- responsive, resilient, elastic
- incorporates a SOA, EDA, and Microservice architecture
- incorporates CQRS/DDDD architectural patterns
- supporting long-running business processes (eg. payment deadlines)
- developer-friendly (implemented in Scala, ~1500 lines of code)
All these capabilities are obviously supported by the underlying technology stack, which includes:
Akka - actor-based, reactive middleware implemented in Scala,
Akka Persistence - infrastructure for building durable (event sourced) actors, which has a pluggable journal,
Aggregate Root) class) or business process journals (events related to concrete business process). Domain journals are topic of interest for services such as:
- view updaters - responsible for updating the read side of the system
- receptors - allow event-driven interaction between subsystems (event choreography), including long-running processes (sagas),
- Akka-DDD - framework containing glue-code and all building blocks
The system currently consists of the following subsystems:
- Sales/Reservation - responsible for creating and confirming Reservations
- Invoicing - responsible for the invoicing
- Shipping - responsible for the goods delivery
- Headquarters - executes the Ordering Process (see below)
Backend cluster node hosting
Process Managers (Sagas).
HTTP server forwarding commands to backend cluster.
View update service that consumes events from event store and updates view store (PostgreSQL database).
HTTP server providing rest endpoint for accessing view store.