When a new Event is created, the Subscriptions examine it to see if they are interested in it (actually, they just look and see if they are subscribed to the topic). If a Subscription is interested, it sends the event onto a delivery thread with the subscriber's URL. The delivery thread sends the event to the client, who responds with a 2xx to signal that they got the event.
Graphically:
Subscriber Delivery Subscription Event Delivery
Thread Manager Manager
| | | | |
| | New Event | |
| | |<--------------- font="" nbsp="">--------------->
| Deliver(Event) | | |
| |<--------------- font="" nbsp="">--------------->
|POST | | | |
|<--------------- font="" nbsp="">--------------->
(2xx) | | | |
--------------->| | | |
| (success!) | | |
| --------------->| | |
| | (success!) | |
| | --------------->| |
| | | New |
| | | Delivery |
| | | --------------->|
| | | | |
No comments:
Post a Comment