REST JAVA: Akka HTTP Vs Play Vs Spring

1,337 views
Skip to first unread message

Prakhyat Mallikarjun

unread,
Oct 13, 2014, 6:18:13 AM10/13/14
to akka...@googlegroups.com
Team,

We want to implement REST with java.

Which is the best framework among (AKKA HTTP,Play, Spring) for developing REST layer in JAVA?

 One problem I could see currently is AKKA HTTP support for java is still pending. 

-Prakhyat M M

Akka Team

unread,
Oct 14, 2014, 3:29:00 AM10/14/14
to Akka User List
Hi Prakhyat,
This has been explained a few times recently, for example here:

We're working on it and it should be available "soon" – see the other discussions for details.

-- 
Konrad

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam

Prakhyat Mallikarjun

unread,
Oct 14, 2014, 5:11:21 AM10/14/14
to akka...@googlegroups.com
Hi Konrad,

I am aware of these posts.

Since we are in stage of planning for rest player. I was looking feedbacks on which is the the best way to create REST layer when working with apps having akka persistence.

I had three options play,akka http and spring. To decide which one to use, i was looking for pros-cons/feedbacks/crietria's to make the RIGHT CHOICE.

These posts are totally different from the answers I am looking for.

-Prakhyat M M  

Daniel Armak

unread,
Oct 14, 2014, 10:41:08 AM10/14/14
to akka-user
Spray / akka-http and Play address two different use cases. 

Spray/akka-http is an HTTP framework; as such it's great for building pure REST services if all of your semantics can be cleanly expressed in terms of plain HTTP. I wrote an HTTP proxy using spray and it was perfect for the job.

Whereas Play is a *web* framework. It includes support for lots of web-related features that aren't part of HTTP as such.

Daniel Armak

Richard Rodseth

unread,
Oct 14, 2014, 10:46:37 AM10/14/14
to akka...@googlegroups.com
I think he's considering Play even for pure REST, because he can use it from Java, and Akka-HTTP is not ready.

Daniel Armak

unread,
Oct 14, 2014, 1:49:39 PM10/14/14
to akka-user
Right, I forgot spray doesn't have a Java API. Sorry about not making that clearer.

Daniel Armak

Chanan Braunstein

unread,
Oct 15, 2014, 7:11:43 AM10/15/14
to akka...@googlegroups.com
We are also a Java shop.

We currently use Play for our REST services. As you can imagine, our Play controllers are pretty much empty. They consist of validating the http input, converting it to a message class, calling an Actor, then converting the response to a JSON and sending an OK or error back with the json. 

So, we are also looking forward to the Java API of Akka-Http. We figure once it comes out we could easily change our REST server to Akka-Http if there is a good reason to do so.
Reply all
Reply to author
Forward
0 new messages