โLightestโ is somewhat subjective, but you might consider supporting experimental Play reactive streams, as described here .
Include the Reactive Streams integration library in your project.
libraryDependencies += "com.typesafe.play" %% "play-streams-experimental" % "2.4.4"
All access to the module is through the Streams object.
Here is an example that adapts the Future to a singleton publisher.
val fut: Future[Int] = Future { ... } val pubr: Publisher[Int] = Streams.futureToPublisher(fut)
See the Streams objects in the API documentation for more details.
lutzh
source share