Skip to content

Use batched-writes go-amqp branch#109

Merged
mkuratczyk merged 1 commit intomainfrom
batched-writes
Mar 3, 2026
Merged

Use batched-writes go-amqp branch#109
mkuratczyk merged 1 commit intomainfrom
batched-writes

Conversation

@mkuratczyk
Copy link
Contributor

This removes the use of ants library for
fast publishing over AMQP 1.0. Instead,
we take advantage of the go-amqp improvements
in batched publishing, which is significantly
faster.

Additionally, some small optimisations:

  • Replace sync.Map with mutex + map[uint64] for publish times
  • Guard hot-path debug log calls to avoid arg allocation
  • Reuse Message, Properties, and Header structs across sends

This removes the use of ants library for
fast publishing over AMQP 1.0. Instead,
we take advantage of the go-amqp improvements
in batched publishing, which is significantly
faster.

Additionally, some small optimisations:

* Replace sync.Map with mutex + map[uint64] for publish times
* Guard hot-path debug log calls to avoid arg allocation
* Reuse Message, Properties, and Header structs across sends
@mkuratczyk mkuratczyk merged commit 9aed065 into main Mar 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant