Friday, September 6, 2013

Comparison web framework for rest api on scala

I did search for the best way to implement simple RESTfull Api service on JVM based technologies (not a node.js and "go" lang). Scala come up as good alternative, additional search shown a Lift framework that looks like popular between Scala community and a lot of posts recommend to do rest api on it, but ...

I met Alexy Khrabrov on one of Scala meetup, and he recommended me to take a look at project https://github.com/Versal/scamper , that do show comparison of RESTful libraries and frameworks, and results are pretty interesting and shown that Lift is not ideal for performance demanding web services.

Just Java Servlet Api 3.0 show petty good performance - that make me think "Should I stay with Java? What can I benefit from Scala ?" :).

Useful stack-overflow discussions: discussion1, discussion2.

My final decision for deep investigation and try is spay: http://spray.io/blog/2013-05-24-benchmarking-spray/

Opposite results of performance: http://irregularexpression.blogspot.com/2012/02/expressjsnodejs-vs-sprayakka-restful.html?m=1

Magic performance of Servlet Api 3.0 is due to "Java NIO (New I/O) API": http://www.onjava.com/lpt/a/5127

No comments:

Post a Comment