Akka
HTTP

Play
Framework

Vs.

DAWN OF REST APIs

Building REST APIs

  • Defining routes
  • Handling request and responses
  • Marshalling and unmarshalling
  • Authentication and Authorization
  • Handling errors
  • Streaming
  • Type Safety

Design considerations:

Perfomance considerations:

  • Response times
  • Resilience under stress

Scala ecosystem

What is Akka HTTP?

  • Focused on building integration layers based on HTTP.
  • Designed specifically as “not-a-framework”, but  rather a suite of libraries.

Full server- and client-side HTTP stack on top of akka-actor and akka-stream

What is Play Framework?

  • Integrates the components and APIs needed for modern web application development.
  • Based on a lightweight, stateless, web-friendly architecture focused on building highly-scalable applications.

High-productivity Java and Scala web application framework

Architecture

Akka HTTP Server

Netty Server

.



 

.


 

.


 

- Domain
- Services (as Akka actors)
- Persistence (in memory)

Core

​REST API
with
Akka HTTP

REST API
with
Play Framework

Title Text

Subtitle

Akka HTTP vs Play Framework

By Leonardo Regnier

Akka HTTP vs Play Framework

WIP

  • 5,323