Skip to content

Event library

非常多的成熟的框架,进行了非常抽象、封装,最终user只需要指定event和event handler之间的映射关系即可。比如flask、libevent、libuv。

web framework都可以看做是event-driven model的实现。

Python

Eventlet

gevent

C、C++

1、都是基于IO-multiplexing

2、都是asynchronous、callback based notifications of IO

有非常多的基于event loop模型的software

1、redis

2、libevent

3、libuv

libuv is a multi-platform support library with a focus on asynchronous I/O.

JavaScript

1、node.js

2、JavaScript

Java

Netty

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.