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

Provide batch mechanism in Message Queue #575

Open
colorcube opened this issue Jun 14, 2024 · 1 comment
Open

Provide batch mechanism in Message Queue #575

colorcube opened this issue Jun 14, 2024 · 1 comment

Comments

@colorcube
Copy link
Contributor

It would be nice to have some batch mechanism in Message Queue.

Like: give me a batch of 10 messages but don't wait longer than 30 s.
Using such a buffer means the worker has to process array of something.

I used rxjs for such a thing:
bufferTime(bufferTimeSpan, undefined, maxBufferSize)

@marcj
Copy link
Member

marcj commented Jun 17, 2024

Note: we should add the same mechanism to message bus. maybe worth trying to see if rxjs can be used for that

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

No branches or pull requests

2 participants