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

refact: Simple message queue refactoring #413

Merged
merged 11 commits into from
Dec 20, 2024
Merged

refact: Simple message queue refactoring #413

merged 11 commits into from
Dec 20, 2024

Conversation

masci
Copy link
Member

@masci masci commented Dec 20, 2024

Fixes #361

While working on #361 I found out it wasn't that easy to introduce the concept of topic in SimpleMessageQueue because there wasn't a clear separation between "client" and "server". With other flavors of message queues, the client is the one responsible for managing consumers, while the server is the actual broker service (Redis, Kafka and the likes). But the simple message queue also has a "server" part that acts as an in-memory storage.

With this PR, the server and the client are clearly separated, and only SimpleMessageQueue derives from AbstractMessageQueue, while the server class is just an object. This way, the simple message queue isn't special anymore, and it behaves exactly like the others.

@coveralls
Copy link

coveralls commented Dec 20, 2024

Coverage Status

coverage: 72.245% (-1.6%) from 73.849%
when pulling 5655843 on massi/simple-msg-queue
into 9a14319 on main.

@masci masci merged commit 0022b67 into main Dec 20, 2024
9 of 10 checks passed
@masci masci deleted the massi/simple-msg-queue branch December 20, 2024 18:03
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.

Make the topic configurable for SimpleMessageQueue
3 participants