Skip to content

Add send events - #11

Merged
dominik-matic merged 1 commit into
masterfrom
add-send-events
Sep 3, 2026
Merged

Add send events#11
dominik-matic merged 1 commit into
masterfrom
add-send-events

Conversation

@dominik-matic

Copy link
Copy Markdown
Contributor

Every event we send opens a fresh connection to RabbitMQ, shakes hands, sends one message, then closes it again. Fine for one event, silly for four hundred, where we spend most of the time on hellos and goodbyes instead of actually sending anything.

So there is now a send_events(): one connection, whole batch through it. The same messages come out the other end. send_event() now just calls send_events([event]) so there is only one publish path to keep working.

@dominik-matic
dominik-matic merged commit b871557 into master Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants