What webserver uses akka akka-http and how can I get the version of it?

我是研究僧i 提交于 2019-12-10 16:13:28

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/35927095/what-webserver-uses-akka-akka-http-and-how-can-i-get-the-version-of-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!