Understanding the event bus data flow¶
For general information about the event bus, have a look here.
The following diagram demonstrates the data flow on the event bus:
- Changes on the catalog/config level are usually done via the REST interface or the WebUI (via the Gateway)
- Changes are persisted in the catalog/config
- The
CatalogApplicationEventPublisherlistens to the events of the (native) GeoServer/Catalog (triggered by step 2) - Whenever such an event fires, the
CatalogApplicationEventPublisherwill publish a "local"GeoServerEvent. Have a look here for the full type hierarchy. - The
RemoteGeoServerEventBridge(listens to theseGeoServerEvents and) broadcastsRemoteGeoServerEvents to the event bus. - All registered microservices listen for incoming
RemoteGeoServerEvents - The payload of these remote events will be published as local events to reload/refresh the catalog/config locally.