Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

Should I use FastFuture with Akka Http

$
0
0

@eugenemiretsky wrote:

Akka Http uses FastFuture internally to avoid context switching
A common pattern is to make calls like

Unmarshal(decodedResponse.entity).to[Res]
   .map(..do domething)
  .recover(..do domething)

The map is usually very simple (transforming one case class to another, logging, etc.). Does it make sense to use fast future in these type of calls (again, assuming we are very confident the transformations are non-blocking )

Unmarshal(decodedResponse.entity).to[Res].fast
   .map(..do domething)
  .recover(..do domething)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles