用于 Rest API 服务器的 Scala 框架? [英] Scala framework for a Rest API Server?

查看:24
本文介绍了用于 Rest API 服务器的 Scala 框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在考虑将我们的 Rest API 服务器(它位于 Web 服务内部,在 Symfony PHP 上)迁移到 Scala,原因有几个:速度、无开销、更少的 CPU、更少的代码、可扩展性等.我不知道Scala 直到几天前,但我一直在享受我这些天通过 Scala 书以及所有博客文章和问题所学到的东西(它不是那么难看!)

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!)

我有以下选择:

  • 从头开始构建 Rest API 服务器
  • 使用小型 Scala 网络框架,例如 Scalatra
  • 使用 Lift

我必须使用的一些东西:HTTP 请求、JSON 输出、MySQL(数据)、OAuth、Memcache(缓存)、日志、文件上传、统计信息(可能是 Redis).

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

你会推荐什么?

推荐答案

排名不分先后:

  • 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.

这篇关于用于 Rest API 服务器的 Scala 框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆