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

Rework scheduling systems #5

Open
svix-daniel opened this issue Jun 8, 2023 · 0 comments
Open

Rework scheduling systems #5

svix-daniel opened this issue Jun 8, 2023 · 0 comments
Assignees

Comments

@svix-daniel
Copy link
Contributor

As of present, scheduling is provided by an additional set of traits only implemented by the SqsQueueBackend as it is the only one of the bunch which supports delays out of the box (although RabbitMQ supports it with an extension).

I am hoping to rework things slightly to be able to better support "schedulers" which can be tacked onto any queue and take over anything with a delay. This would allow schemes like using PostgreSQL or Redis sorted sets to track delayed items, and to frequently move all ready items into the main queue via a background task. Then the ScheduledProducer and ScheduledBackend traits can be implemented for a generic wrapper over any queue and scheduler.

This is necessary over the current implementation due to the need to be able to add additional conversion logic in order to bridge the gap between the internal data representation of the scheduler and of the queue.

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

1 participant