Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala framework for a Rest API Server? [closed]

Tags:

rest

scala

api

lift

We are thinking on moving our Rest API Server (it is inside the web service, on Symfony PHP) to Scala for several reasons: speed, no overhead, less CPU, less code, scalability, etc. I didn't know Scala until several days ago but I've been enjoying what I've been learning these days with the Scala book and all the blog posts and questions (it's not so ugly!)

I have the following options:

  • build the Rest API Server from scratch
  • use a tiny Scala web framework like Scalatra
  • use Lift

Some things that I will have to use: HTTP requests, JSON output, MySQL (data), OAuth, Memcache (cache), Logs, File uploads, Stats (maybe Redis).

What would you recommend?

like image 773
fesja Avatar asked Sep 09 '10 17:09

fesja


People also ask

Which of the following frameworks is developed using Scala?

1. Play Framework. Play Framework is an open-source Scala framework that was first released in 2007. It's currently developed by Lightbend, Zengularity, and its community of user developers.

Why RESTful API?

One of the key advantages of REST APIs is that they provide a great deal of flexibility. Data is not tied to resources or methods, so REST can handle multiple types of calls, return different data formats and even change structurally with the correct implementation of hypermedia.

What is RESTful API?

RESTful API is an interface that two computer systems use to exchange information securely over the internet. Most business applications have to communicate with other internal and third-party applications to perform various tasks.


1 Answers

In no particular order:

  • Akka HTTP
  • Spray
  • Paypal squbs (Akka/Spray)
  • DropWizard
  • REST.li
  • http4s
  • Blue Eyes
  • Finagle - A fault tolerant, protocol-agnostic RPC system
  • Play! and Play-mini! (article) (tutorial)
  • Lift / Lift JSON.- makes it simple to provide REST services.
like image 130
19 revs, 2 users 98% Avatar answered Sep 18 '22 15:09

19 revs, 2 users 98%