service
Customer API
The public-facing API for customer profiles. Handles commands to register and update customers, serves customer reads, and publishes customer change events.
Service
Customer API
Overview
The Customer API is the front door to the Customer Management System. It validates incoming commands, persists customer data to the Customer DatabaseCustomer DatabaseContainerv1.0.0PostgreSQL database that is the system of record for all customer profile data.MapView docs, and publishes domain events (CustomerRegistered, CustomerUpdated) so the rest of the business can react to changes.
Responsibilities
| Area | Description |
|---|---|
| Command handling | Validates and applies Register CustomerRegister CustomerCommandv1.0.0Command to register a new customer. Ownercustomer-platformSchemaMapView docs and Update CustomerUpdate CustomerCommandv1.0.0Command to update an existing customer's profile. Ownercustomer-platformSchemaMapView docs. |
| Reads | Serves Get CustomerGet CustomerQueryv1.0.0Query to fetch a single customer by their identifier. Ownercustomer-platformSchemaMapView docs directly from the customer database. |
| Event publishing | Emits Customer RegisteredCustomer RegisteredEventv1.0.0Published when a new customer has registered. Ownercustomer-platformSchemaMapView docs and Customer UpdatedCustomer UpdatedEventv1.0.0Published when an existing customer's profile has changed. Ownercustomer-platformSchemaMapView docs on every change. |
| Persistence | Reads from and writes to the Customer DatabaseCustomer DatabaseContainerv1.0.0 |
Architecture diagram
Messages for this service
Receives messages (3)
Quickly find the message you need by searching for the name, type, or summary.Event-driven architecture documentation: Acme Inc