-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #540 from buehner/update-dev-readme
docs: add diagram for event bus understanding
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Understanding the event bus data flow | ||
|
||
For general information about the event bus, hava a look [here](../../../src/catalog/event-bus/README.md). | ||
|
||
The following diagram demonstrates the data flow on the event bus: | ||
|
||
![Event Bus Data flow](../../img/gs_cloud_eventbus_diagram.svg) | ||
|
||
1. Changes on the catalog/config level are usually done via the REST interface or the WebUI (via the Gateway) | ||
2. Changes are persisted in the catalog/config | ||
3. The `CatalogApplicationEventPublisher` listens to the events of the (native) GeoServer/Catalog (triggered by step 2) | ||
4. Whenever such an event fires, the `CatalogApplicationEventPublisher` will publish a "local" `GeoServerEvent`. Have a look [here](../../../src/catalog/events/README.md) for the full type hierarchy. | ||
5. The `RemoteGeoServerEventBridge` (listens to these `GeoServerEvent`s and) broadcasts `RemoteGeoServerEvent`s to the event bus. | ||
6. All registered microservices listen for incoming `RemoteGeoServerEvent`s | ||
7. The payload of these remote events will be published as local events to reload/refresh the catalog/config locally. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.