... | ... | @@ -44,11 +44,11 @@ Information to be refreshed: |
|
|
|Kea Status Puller | 30 sec |
|
|
|
|
|
|
## Blaster Design
|
|
|
Blaster is a module of Stork server that is responsible for collecting events and dispatching them to subscribers.
|
|
|
`Blaster` is a module of Stork server that is responsible for collecting `events` and dispatching them to `subscribers`.
|
|
|
|
|
|
Event is an information about some change in the system. It can be `New Network` discovered in Kea or `New Machine` that was added to Stork server.
|
|
|
`Event` is an information about some change in the system. It can be `New Network` discovered in Kea or `New Machine` that was added to Stork server.
|
|
|
|
|
|
Subscriber is a particular web browser. It registers for given collection of events based on provided criteria. Subscriber receives stream of events from Blaster. This events in web browser may result in updating some parts of UI.
|
|
|
`Subscriber` is a particular web browser. It registers for given collection of events based on provided criteria. Subscriber receives stream of events from `Blaster`. This events in web browser may result in updating some parts of UI.
|
|
|
|
|
|
|
|
|
```mermaid
|
... | ... | @@ -71,3 +71,4 @@ graph LR |
|
|
|
|
|
```
|
|
|
|
|
|
`Blaster` collects events that are sent to it from various modules in Stork server. Then it checks in `Alerts Rules Engine` if given event qualifies to be an alert. Then the event is stored in database. Next step is broadcasting the event to subscribers. Blaster checks criteria submitted by subscribers and sends the event to these with matching criteria. The event is sent to web browser using [Server-sent Events (SSE)](https://en.wikipedia.org/wiki/Server-sent_events). |