Repository navigation
Conversation
weiwen99
marked this pull request as draft
November 12, 2026 06:31
Add a separate pekko-http-backend-pekko2 artifact built against Pekko HTTP 2.0.0 and Pekko Stream 2.0.0. Pekko 2 is not binary compatible with Pekko 1.x, so the existing pekko-http-backend artifact remains on Pekko 1.4.2. The new module reuses the existing sources. Version-specific compat shims cover watchTermination() -> watchTermination and the changed Route.seal signature. The deprecated Source.queue overload is kept for now to preserve WebSocket backpressure semantics. The new artifact is published for Scala 2.13 and 3 and targets Java 17+. Tests pass on Scala 2.13/3 (163/163), and the existing module remains green on Scala 2.12/2.13/3 (163/163).
weiwen99
force-pushed
the
feat/pekko-http-2
branch
from
November 16, 2026 01:04
194a546 to
5d6b87e
Compare
weiwen99
marked this pull request as ready for review
November 16, 2026 01:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status
Pekko HTTP 2.0.0 has been released. This is ready for review.
What this adds
pekko-http-backend-pekko2artifact, because Pekko 2 is not binary compatible with Pekko 1.x.pekko-http-backendartifact is unchanged and remains on Pekko 1.4.2.watchTermination()→watchTerminationin Pekko 2.Route.sealsignature;Route.toFunctionis used in both versions.sttp.client4.pekkohttp), so downstream users only change the dependency.rawAllAggregates, socompileScoped/testScopedpicks it up.Testing
pekko2HttpBackend/testOnly sttp.client4.pekkohttp.*— 163/163 (Scala 3.9, Pekko HTTP 2.0.0).pekko2HttpBackend2_13/testOnly sttp.client4.pekkohttp.*— 163/163 (Scala 2.13, Pekko HTTP 2.0.0).pekkoHttpBackend/testOnly sttp.client4.pekkohttp.*(existing Pekko 1 module) — 163/163.scalafmtSbtCheckand both backendscalafmtChecktasks pass.Notes
Source.queue(bufferSize, OverflowStrategy)overload. This PR keeps it for now to preserve the existing WebSocket backpressure semantics. The replacement withBoundedSourceQueue/actorRefWithBackpressureis a follow-up; the deprecated overload remains functional in Pekko HTTP 2.0.0.OutgoingConnectionBlueprint$UnexpectedConnectionClosureException. Since that class is not accessible from user code,FromPekkomaps it toSttpClientException.ConnectExceptionby class name. This fixes theunknown hostexception test.sttp.shared'spekkomodule is type-only and remains usable with Pekko 2; this PR does not change it.2.0.0and Pekko Stream2.0.0.