Skip to content

Conversation

pjfanning
Copy link
Member

splitting out some changes from #779

@pjfanning pjfanning marked this pull request as draft September 27, 2025 17:46
@pjfanning pjfanning marked this pull request as ready for review September 27, 2025 17:56
Comment on lines -49 to +50
Source.actorRef[(HttpRequest, Int)](10000, OverflowStrategy.dropNew).buffer(20000, OverflowStrategy.fail)
Source.queue[(HttpRequest, Int)](10000)
.buffer(20000, OverflowStrategy.fail)
Copy link
Member

Choose a reason for hiding this comment

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

Is this a change in behavior (dropNew -> fail)? Seems fine for a test app though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Would https://pekko.apache.org/japi/pekko/1.2/org/apache/pekko/stream/OverflowStrategy.html#backpressure() make sense? OverflowStrategy.dropNew is being removed (already deprecated in 1.x).

Copy link
Member

Choose a reason for hiding this comment

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

Would https://pekko.apache.org/japi/pekko/1.2/org/apache/pekko/stream/OverflowStrategy.html#backpressure() make sense? OverflowStrategy.dropNew is being removed (already deprecated in 1.x).

TBH I'm not sure what this means in practice here - would that mean 'offer' would give a return value indicating the backpressure? I think fail is probably a fine choice.

@pjfanning pjfanning merged commit 12ed555 into apache:main Sep 28, 2025
6 checks passed
@pjfanning pjfanning deleted the avoid-deprecated-code branch September 28, 2025 07:10
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