Giter Club home page Giter Club logo

event4j's Introduction

event4j是一个实现了事件驱动异步化的轻量级框架,可帮助我们实现以事件驱动为中心的应用,采用提交事件和分派事件的方式,使处理事务的上下游各个组件之间不直接发生交互,降低耦合,扩展方便。事件生产者不用关心这个事件有哪些消费者,它只负责向event4j提交事件。事件的消费者也不需关心这个事件是谁产生的,它只需要关注event4j分派事件给它时该如何处理。

event4j以事件对消费者进行分组管理,结构清晰,增加和删除事件的消费者非常方便。内部使用线程池,可以异步化且并行执行事件的处理,使应用的吞吐量大大提升。

event4j原理示意图

简单地讲:event4j只做3件事情:

  • 管理事件与消费者的关系。
  • 接收提交的事件并分派给需要监听该事件的消费者。
  • 提供线程池让事件的消费者异步执行。

文档

1、编译event4j

2、event4j入门指南

3、版本历史

event4j's People

Contributors

aofeng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.