XitrumScala 的 Web 框架
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.
评论