0.0.3 • Published 7 months ago
gell-event v0.0.3
gell-event
support for event based systems
Brainstorm
- ideas/implementation around event based systems starting to coalesce
- common event structure/objects standardized approach to defining event handlers action side effect etc * event dispatching
- "future" concept is built for event dispatching
Features
- event discovery
- generate event metadata * consistent and clear event naming
- event directory
- simple lookup mechanism
- event dispatching
- unit testing
- generated documentation
- should be able to go into any package, run a cli command, and understand what the package defines * apis for web based tooling
Event Based Systems
- apis
- HTTP or WS based action events user/actor trying to do something snapshot events "queries"
- jobs
- trigger job execution
- AWS Lambdas
- DynamoDB streams
Event Dispatching Concepts
- discovery
- what events can be handled?
- catalog
- event types that have been discovered handlers can be looked up metadata about the available events * could be called "directory"
- naming
- how event handlers in a catalog are referenced
- middleware
- cross-cutting concerns common to all event handlers
- dispatcher
- invokes event handler
NPM Packages
there doesn't seem to be a general purpose routing/dispatch library out there * several for matching URL routes to handlers
- Emittery (https://github.com/sindresorhus/emittery)
- handle async events