Skip to main content

Single Broker

APP 2APP 1BrokeremitlistenDomainEventBus.emit(...)DirectAsyncGateway.sendCommand(...)DirectAsyncGateway.requestReply(...)HandlerRegistry.listenEvent(...)HandlerRegistry.listenCloudEvent(...)HandlerRegistry.listenNotificationEvent(...)HandlerRegistry.listenNotificationCloudEvent(...)HandlerRegistry.handleCommand(...)HandlerRegistry.handleCloudEventCommand(...)HandlerRegistry.serveQuery(...)HandlerRegistry.serveCloudEventQuery(...)

Both apps the App 1 and the App 2 are connected to the same Broker, so both has the same connection configuration, and Broker is considered the app domain for both apps.

Both apps connect to the same broker, so both use the same connection properties for the app domain. See RabbitMQ Configuration for the full list of properties, YAML and programmatic configuration approaches.

application.yaml
app:
async:
app: # this is the name of the default domain, shared by App 1 and App 2
connectionProperties:
host: localhost
port: 5672
username: guest
password: guest
virtual-host: /