4

I'm using akka and akka-http 2.4.2 and I'm trying ti understand the internal components of them.

What does akka and akka-http use to start a rest web-service?
It uses an embebedd webservice? (like Jetty?)
How do I get the version of it?

The code I run to start my rest web-service is:

implicit val actorSystem = ActorSystem("system")
implicit val actorMaterializer = ActorMaterializer()

val route: Route = {
      blablabla ...
}

val bind = Http().bindAndHandle(route, "0.0.0.0", 8080)

Thanks.

George C
  • 1,168
  • 13
  • 30

1 Answers1

8

There is no webserver used by akka http. Akka http binds to a port on it's own and it speaks the Http protocol over Tcp itself, not relying on any other third party libraries to do that part for it. This is different than a library like Unfiltered which defines a common abstraction for Http request handling, then provides several implementation options like Netty and Jetty that the user can choose from.

cmbaxter
  • 35,283
  • 4
  • 86
  • 95
  • Thanks!, I'm very new to akka, I always used tomcat and java, do you have a favourite book of akka or reactive platforms? – George C Mar 11 '16 at 15:53
  • 1
    The akka-http module is pretty new, so I don't think there are any books out there covering this aspect just yet. As far as books about the less new parts of Akka, there is a section in the docs that details a few such books: http://doc.akka.io/docs/akka/2.4.2/additional/books.html. Another good one not listed there is: https://www.packtpub.com/application-development/learning-akka – cmbaxter Mar 11 '16 at 17:02