Tapir Server with Cats-Effect and Pekko HTTP (snippet)

Simple snippet for using Tapir, with business logic driven by Cats-Effect, using Akka/Pekko HTTP as a backend.

Alexandru Nedelcu
Switching context back to #scala to do some #Pekko work, and I am reminded how much I love that language. At the same time the code is so much harder to follow than simple sequential method execution using async/await in languages like Rust, C# or #swift.
Finally able to seriously devote myself to #swift actors and trying to convert Akka né #Pekko concepts to their swift counterparts. Was thrown by the fact that actors are allowed to `await` inside their funcs, until I learned about actor reentrancy, which, the more I get into it, makes for really awesome possibilities.

Ever wanted to access the request body within a Play Framework Filter? I did, and I couldn't find any solution online. Now there is one. See my post:

https://hertig.blog/posts/accessing-request-body-in-play-framework-filters/

#playframework #akka #pekko #scala #java #jvm #blog #webdev

Accessing the request body in Play Framework Filters | hertig.blog

A highly performant way to extract data from the raw request body and pass on information to subsequent Filters and Actions based on it. With an example of how to parse bearer tokens as per RFC 6750.

Akka to Pekko upgrade wasn't all that painful. Sure lots of files changed from text replace, but beyond that, no more painful than a scala version upgrade :)

#scala #pekko

Apache Pekko has left the incubator phase and is now a top-level project.

https://lists.apache.org/thread/grl5h0l79oywnjtmfv0mdg3w108vsh6o

That's great news! Pekko was created as a Fork of Akka 2.6, right after Lightbend chose to pull a bait-and-switch by relicensing Akka to a non-FOSS license.

I have already switched to Pekko a few months ago, it went very smooth, and I am grateful to everybody involved in making this happen.

#opensource #pekko #akka #scala #java #licensing #apache #foss

We have a PR at $work migrating the project from #Akka to Apache #Pekko, the open-source fork.

Work took 1 day, with all tests passing. Project is heavy on Akka dependencies too (e.g., cluster, persistence, streams, connectors, HTTP). All is well.

#Scala #op

Akka Edge: Unifying the Cloud and Edge | @lightbend

Akka Edge, a single programming model, runtime, and data fabric for and across the Cloud-to-Edge Continuum

Lightbend

Dust hasn't settled yet on Apache #Pekko, but I really believe it will thrive.

This is the true power of #FOSS. When you don't agree with the direction, you can fork from the last adequate version! Resources are required, but where there's a need, there's a way 💪

Furthermore, in the case of Pekko, #Apache was the best organization to take this on because they have adequate processes that give credibility to such forks.

#Scala #Akka

Apache #Pekko is replacing #Akka in Play Framework ❤️😍

I really wish Lightbend well, I hope they thrive, but blowing up the FOSS ecosystem around Akka was a foreseeable consequence of its licensing turning proprietary. All FOSS projects will predictably move to Pekko, and Pekko isn't a drop-in replacement (due to the inevitable change in packages), which puts Akka in a very tough spot.

N.b., version 2.9 is probably the last release with support for Akka.

https://github.com/playframework/playframework/releases/tag/2.9.0-RC2

Release 📣 Play 2.9.0 Release Candidate · playframework/playframework

The Play Team is thrilled to announce the release of the Play 2.9.0 release candidate! 🎉 This release brings highly anticipated new features, including support for the latest Java LTS versions and ...

GitHub