Patronen / sequenties
API architecture OMC
Scenarios implemented in OMC are following Strategy Design Pattern, and they are using JSON data deserialized into POCO (Plain Old CLR Object) models, and passed as DTO (Data Transfer Object) models to query services (reflecting the external micro-services architecture of third-party "Open Services"). Query services are aggregated under IQueryContext and its implementation QueryContext - following Adapter Design Pattern thanks to which queries can be agnostic (dependencies resolved internally) and organized within a single testable abstraction, giving the developers access to all available API query methods.
API architecture Notify
Architecture for sending a text message
The service sends a text message notification to Notify.
Notify sends the text message to the provider.
The provider delivers the text message to the recipient.
The recipient receives the text message and sends a delivery receipt to the provider.
The provider sends the delivery receipt to Notify.
Notify receives the delivery receipt and sends an API response to the service.
The service receives the API response.
Architecture for sending an email
The service sends an email notification to Notify.
Notify sends the email to the provider.
The provider delivers the email to the recipient.
The recipient receives the email and sends a delivery receipt to the provider.
The provider sends the delivery receipt to Notify.
Notify receives the delivery receipt and sends an API response to the service.
The service receives the API response.
Architecture for sending a letter
The service sends a letter notification to Notify.
Notify sends the letter to the provider.
The provider prints the letter and posts it.
The postal service delivers the letter.
The recipient receives the letter.
Architecture for getting the status of a message
The service requests a notification status from Notify.
Notify queries the database and retrieves the notification status.
Notify sends the API response with the notification status to the service.
The service receives the API response.
Architecture for getting received text messages
Recipients send text messages.
Notify receives the text messages.
The service requests all or specific received text messages from Notify.
Notify receives the request for received text messages.
Notify sends the received text messages to the service.
The service receives the received text messages.
Last updated