kelindar/event is a high-performance, in-process event dispatcher library for Go that enables decoupling of modules through event-driven patterns. It processes millions of events per second with 4x to 10x better performance than channels, supports both synchronous and asynchronous processing, and works with any type implementing the Event interface. The library provides both a default global dispatcher and specific dispatcher instances, making it ideal for lightweight pub/sub patterns within single Go processes while being unsuitable for inter-service communication or event persistence scenarios.

3m read timeFrom github.com
Post cover image
Table of contents
Fast, In-Process Event DispatcherGeneric In-Process Pub/SubUsing Default DispatcherUsing Specific DispatcherBenchmarks

Sort: