Cramp异步事件驱动的Ruby Web应用框架
Cramp是一种新的,处 理并发事件的Web应用程序框架,由37signals和Rails核心小组的Pratik Naik提供。它建立在Ruby的EventMachine库之上,主要用于处理一些大量的开放连接 (如Comet系统或streaming APIs),整个过程都使用event-driven I/O。
Cramp使用Rails 3.0的ActiveSupport 和 ActiveModel库, 它会显示两层用于开发:controllers 和 models。
示例代码:
require 'rubygems'
require 'cramp/controller'
class WelcomeAction < Cramp::Controller::Action
on_start :send_hello_world
def send_hello_world
render "Hello World"
finish
end
end
Rack::Handler::Thin.run WelcomeAction, :Port => 3000
安装方法:
gem install arel --pre
gem install activemodel --pre
And then,
gem install cramp
评论
SwiftNIO跨平台异步事件驱动的网络应用框架
SwiftNIO是苹果开源的一个跨平台异步事件驱动的网络应用程序框架,用于快速开发可维护的高性能协议服务器和客户端。它类似 Netty ,采用Swift编写。SwiftNIO可看成是在Swift中构建
SwiftNIO跨平台异步事件驱动的网络应用框架
0
Zanzibar配置驱动的 Web 应用框架
Zanzibar是一个扩展框架,用来构建配置驱动的Web应用。Zanzibar的目标是将应用开发简化成两步:为应用和组件编写配置编写代码实现和测试业务逻辑Zanzibar将基于配置来生成样板和胶水代码
Zanzibar配置驱动的 Web 应用框架
0
libhv异步事件驱动库
libhv是一个跨平台的类似libevent、libev、libuv的异步事件驱动库,提供了更加简单的API接口和更加丰富的协议。Features跨平台(Linux,Windows,Mac)事件循环(
libhv异步事件驱动库
0
MojitoJavaScript的Web应用框架
Mojito是一个JavaScript的Web应用框架,可以运行在浏览器和服务器上面,这使得开发人员能够为客户端前端与服务器后端保持单一一个JavaScript代码库。Web框架将自己从服务器运行环境
MojitoJavaScript的Web应用框架
0