Address Service
The address service provides the bounded context Address.
It is responsible for managing addresses, both for users and of the vendor itself.
Domain Model
info
Imported entities from other bounded contexts are marked with a dashed border.
Technology Stack
- Language: Kotlin
- Framework: Spring Boot
- GraphQL Library: GraphQL Kotlin
- Database: PostgreSQL
- Schema Management: Flyway
Events
This section lists events that are defined or used by the address service.
Published Events
address/user-address/created
This event is published when a new user address is created.
{
id: string,
name?: Name,
street1: string,
street2: string,
city: string,
postalCode: string,
country: string,
companyName?: string,
userId: string
}
address/vendor-address/created
This event is published when a new vendor address is created.
{
id: string,
name?: Name,
street1: string,
street2: string,
city: string,
postalCode: string,
country: string,
companyName?: string
}
address/user-address/archived
This event is published when a user address is archived.
{
id: string,
userId: string
}
Subscribed Events
- user/user/created: Used to validate that addresses belong to an existing users