XitrumScala 的 Web 框架

联合创作 · 2023-09-20

xitrum 是一个 Scala 的 Web 框架,基于 Netty 开发。结构如下图所示:

+-----------------+
|    Your app     |
+-----------------+
|      Xitrum     |  <-- Hazelcast --> Other instances
| +-------------+ |
| | Action/View | |
| +-------------+ |
+-----------------+
|      Netty      |
| +-------------+ |
| | HTTP Server | |
| +-------------+ |
+-----------------+

主要特性:

  • It fills the gap between Scalatra and Lift: more powerful than Scalatra and easier to use than Lift. You can easily create both RESTful APIs and postbacks. Xitrum is controller-first like Scalatra, not view-first like Lift.
  • Typesafe, in the spirit of Scala.
  • Asynchronous, in the spirit of Netty.
  • Stateless, by default sessions are not stored on server.
  • In-process and distribued cache using Hazelcast, you don't need separate cache servers.
  • Scalable Comet, you can scale Comet to multiple servers.
浏览 3
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报