开发常用库或者框架简介

来源:互联网 发布:ubuntu chmod 777 ssh 编辑:程序博客网 时间:2024/05/29 03:19

整理记录一些常用的库,方便以后查询使用

1.Long Polling

长连接

参考http://feilong.me/2011/07/talk-about-polling-and-long-polling


2.ZeroMQ

主要用于网络通信方面, 网络库

  Ø  Connect your code in any language, on any platform.
Ø  Carries messages across inproc, IPC, TCP, TPIC, multicast.
Ø  Smart patterns like pub-sub, push-pull, and router-dealer.
Ø  High-speed asynchronous I/O engines, in a tiny library.
Ø  Backed by a large and active open source community.
Ø  Supports every modern language and platform.
Ø  Build any architecture: centralized, distributed, small, or large.
Ø  Free software with full commercial support.


参考http://zeromq.org/

http://blog.codingnow.com/2011/02/zeromq_message_patterns.html

3.Beanstalkd

Beanstalk is a simple, fast work queue.

Its interface is generic, but was originally designed for reducing the latencyof page views in high-volume web applications by running time-consuming tasksasynchronously.

参考http://csrd.aliapp.com/?p=1201#more-1201

4.Zookeeper

管理分布环境中的数据

Zookeeper 分布式服务框架是 Apache Hadoop 的一个子项目,它主要是用来解决分布式应用中经常遇到的一些数据管理问题,如:统一命名服务、状态同步服务、集群管理、分布式应用配置项的管理等。本文将从使用者角度详细介绍 Zookeeper 的安装和配置文件中各个配置项的意义,以及分析 Zookeeper 的典型的应用场景(配置文件的管理、集群管理、同步锁、Leader 选举、队列管理等),用 Java 实现它们并给出示例代码。

参考 http://www.ibm.com/developerworks/cn/opensource/os-cn-zookeeper/


5.Apach Thrift

支持多语言的远程服务调用框架

目前流行的服务调用方式有很多种,例如基于 SOAP 消息格式的 Web Service,基于 JSON 消息格式的 RESTful 服务等。其中所用到的数据传输方式包括 XML,JSON 等,然而 XML 相对体积太大,传输效率低,JSON 体积较小,新颖,但还不够完善。本文将介绍由 Facebook 开发的远程服务调用框架 Apache Thrift,它采用接口描述语言定义并创建服务,支持可扩展的跨语言服务开发,所包含的代码生成引擎可以在多种语言中,如 C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk 等创建高效的、无缝的服务,其传输数据采用二进制格式,相对 XML 和 JSON 体积更小,对于高并发、大数据量和多语言的环境更有优势。本文将详细介绍 Thrift 的使用,并且提供丰富的实例代码加以解释说明,帮助使用者快速构建服务。

参考http://www.ibm.com/developerworks/cn/java/j-lo-apachethrift/

0 0
原创粉丝点击