emqx/apps/emqx_ds_shared_sub/README.md
Ilya Averyanov 03fea34962 feat(queue): document protocol between agent and leader
Document leader's states
2024-07-30 13:01:09 +03:00

1.2 KiB

EMQX Durable Shared Subscriptions

This application makes durable session capable to cooperatively replay messages from a topic.

General layout and interaction with session

General layout

  • The nesting reflects nesting/ownership of entity states.
  • The bold arrow represent the most complex interaction, between session-side group subscription state machine (GroupSM) and the shared subscription leader (Leader).

GroupSM and Leader communication

The target state of GroupSM and its representation in Leader is replaying. That is, when the GroupSM and the Leader agree on the leased streams, Leader sends lease confirmations to the GroupSM, the GroupSM sends iteration updates.

Other states are used to gracefully reassign streams to the GroupSM.

Below is the sequence diagram of the interaction.

GroupSM and Leader communication

Contributing

Please see our contributing.md.

License

EMQ Business Source License 1.1, refer to LICENSE.