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

89 queue buffer overflow #90

Closed
wants to merge 4 commits into from
Closed

Conversation

manuelcueto
Copy link
Contributor

relates to #89
Publisher Actor now handles its internal queue's backpressuring when its buffer is full, thus avoiding the actor dying when it happens.

@@ -34,7 +43,27 @@ class PublisherActorSpec extends AkkaSpecBase with MockitoSugar {
expectTerminated(publisherActor)
}

"do not offer when queue backpressures" in new TestContext {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I am missing it but what is the assertion in this test?

@lacarvalho91
Copy link
Contributor

lacarvalho91 commented Jan 10, 2020

this just moves the buffer into the actors unbounded mailbox

@lacarvalho91
Copy link
Contributor

lacarvalho91 commented Jan 10, 2020

queue buffer overflow error generally just means the app is not configured appropriately to handle the load it is getting, with this change the buffer just becomes the actors mailbox so its the same really. Memory will just fill in the actors mailbox. You can get the same behaviour by just using max int for the buffer size, which is what is done in MAP iirc

@lacarvalho91 lacarvalho91 deleted the 89-queue-buffer-overflow branch February 22, 2022 14:53
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.

3 participants