File:Inbox-pattern.svg

Summary

Description
English: Illustration of the inbox pattern.
Date
Source Own work
Author Frap

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Category:CC-Zero#Inbox-pattern.svgCategory:Self-published work

Source

PlantUML code.

@startuml

actor User

participant "Web API" as A
database "Database" as B

participant "TaskExecutor" as C << (C,#ADD1B2) >>

User -> A: POST /api/payment
activate A

A -> B: INSERT INTO Outbox
activate B

A --> User: HTTP 202 Accepted
deactivate A

create C
B -> C: DoWork
activate C
C --> B: WorkDone
destroy C

deactivate B

@enduml

Category:Software design patterns
Category:CC-Zero Category:Self-published work Category:Software design patterns