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

At least once message guarantee ✌️ #1

Merged
merged 6 commits into from Nov 1, 2019
Merged

At least once message guarantee ✌️ #1

merged 6 commits into from Nov 1, 2019

Conversation

sonus21
Copy link
Owner

@sonus21 sonus21 commented Nov 1, 2019

No description provided.

2. Use channel to broadcast updated detail
3. Schedule tasks to move messages.
4. At least once message guarantee
# Conflicts:
#	rqueue-spring-boot-starter/src/test/java/com/github/sonus21/rqueue/spring/boot/integration/ApplicationTest.java
#	rqueue-spring-boot-starter/src/test/java/com/github/sonus21/rqueue/spring/boot/integration/ApplicationWithAutoStartSchedulerDisabledTest.java
#	rqueue-spring-boot-starter/src/test/resources/application-disabled.properties
#	rqueue/src/main/java/com/github/sonus21/rqueue/core/MessageScheduler.java
#	rqueue/src/main/java/com/github/sonus21/rqueue/listener/RqueueMessageListenerContainer.java
1. multiple tasks were getting submitted due to race concurrent message events
2. Do not cancel already cancelled/done tasks
3. Do not call recursively to execute script => this can lead to error in the local time stored in scheduled tasks
4. Tasks for non-delayed queued were also scheduled

RqueueMessageListenerContainer

1. When received message is null => queue is empty sleep for polling interval instead of polling again
2. Do not consider delayed queue workers as they are scheduled separately.

push-message.lua
Wrong data type was returned leading to error in task scheduling due to null value

Added multiple test scenarios to verify different condition.
@sonus21 sonus21 merged commit f358b9d into master Nov 1, 2019
@sonus21 sonus21 deleted the dev branch December 3, 2019 10:07
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.

None yet

1 participant