- 授权协议: BSD
- 开发语言: C/C++
- 操作系统: Linux
- 软件首页: http://git.oschina.net/yedf/handy
- 软件文档: http://git.oschina.net/yedf/handy
软件介绍
handy
a HANDY network C++11 libray on linux.
reactor 模式
支持优雅退出
无锁日志系统,按时间间隔轮替
代码简短
参考muduo的实现,采用C++11简化代码
ubuntu14 64位/g++ 4.8.1上通过测试
性能
handy的http服务器性能对比
对比了libevent2.0.21的test下http_bench以及nginx的性能
测试环境为thinkpad t420笔记本上的ubuntu14 64位虚机
nginx使用agentzh的echo模块
worker_processes=1
location /hello {
echo "hello world!"
}
http_bench为默认参数
handy使用的程序为example下的http-echo
其中nginx的qps较低,主要原因为nginx的响应内容较多,包括了多个header,并且使用chunk编码
handy和libevent的性能不相上下
单机千万并发连接测试
安装
make
examples
#include <handy/handy.h>
using namespace handy;
int main(int argc, const char* argv[]) {
EventBase base;
Signal::signal(SIGINT, [&]{ base.exit(); });
TcpServerPtr svr = TcpServer::startServer(&base, "", 99);
exitif(svr == NULL, "start tcp server failed");
svr->onConnRead([](const TcpConnPtr& con) {
con->send(con->getInput());
});
base.loop();
}
Spark技术内幕
张安站 / 机械工业出版社 / 2015-9-1
Spark是不断壮大的大数据分析解决方案家族中备受关注的新增成员。它不仅为分布式数据集的处理提供一个有效框架,而且以高效的方式处理分布式数据集。它支持实时处理、流处理和批处理,提供了AllinOne的统一解决方案,使得Spark极具竞争力。 本书以源码为基础,深入分析Spark内核的设计理念和架构实现,系统讲解各个核心模块的实现,为性能调优、二次开发和系统运维提供理论支持;本文最后以项目实战......一起来看看 《Spark技术内幕》 这本书的介绍吧!
