Request-Reply

Async messaging that still needs an answer.

Request-Reply: rendered example
Rendered by Gnomon from the source below. No edits.

The source

29 lines of PlantUML, and pulls in Enterprise Integration Patterns. Copy it, or open the template inside Gnomon and render it as it is.

@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/EIP-PlantUML/main/dist/EIP-PlantUML.puml

title Request-Reply Pattern

MessagingGateway(client, "Client Application")

P2PChannel(requestChannel, "Request Channel")
P2PChannel(replyChannel, "Reply Channel")

ServiceActivator(service, "Order Service")

RequestReply(request, "Order Request")
Message(reply, "Order Response")

Send(client, request)
Send(request, requestChannel)
Send(requestChannel, service)
Send(service, reply)
Send(reply, replyChannel)
Send(replyChannel, client)

note right of request
  Contains:
  - Return Address
  - Correlation ID
end note

@enduml

Render this offline

This template ships in Gnomon and renders on your machine, with no account and nothing sent to a server. The browser editor is free and needs no install.

Get GnomonOpen the browser editor

Others in Enterprise integration pattern diagrams