Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move AMQP publish logic to Mississippi #94

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

Annopaolo
Copy link
Collaborator

Use the Mississippi framework to send messages to AMQP. This allows to retain the same ordering and delivery guarantees, while moving to the external component all the intricacies of handling messages in a distributed setting.
This will also increase the ease of contributing to the core message handling logic, as now code only works on what to do before a message is sent, instead of also including how to receive a message.

This PR is closely related to astarte-platform/astarte#995 and should be merged together.

Signed-off-by: Arnaldo Cesco <[email protected]>
@Annopaolo Annopaolo added the internals This issue or pull request is about implementation details label Sep 23, 2024
@Annopaolo Annopaolo requested review from rbino and noaccOS September 23, 2024 08:46
Copy link

@noaccOS noaccOS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Replace the old messy AMQP code.
The sharding key is now included (as a binary header)
in the message, according to Mississippi best practices.

This change is retrocompatible.

Signed-off-by: Arnaldo Cesco <[email protected]>
@Annopaolo Annopaolo force-pushed the mississippi-vmq-dup branch from dc547b0 to f01cbfb Compare October 22, 2024 14:52
@Annopaolo Annopaolo marked this pull request as ready for review October 29, 2024 17:08
@rbino rbino merged commit 9ca4d04 into astarte-platform:master Oct 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internals This issue or pull request is about implementation details
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants