event-sourcing

0.0.2 • Public • Published

Event-Sourcing POC

Requirements

  • NodeJS (0.12)
  • AMQP compliant broker (tested with RabbitMQ)
  • Event storage (tested with MongoDB)

Installation

Include the node module in your project by installing it through npm:

npm install --save event-sourcing

Usage

The pattern is split up into two distinct parts. Publishers and Consumers. Publishers are responsible for persisting an incoming event and emitting it to consumers for process. Consumers listen for specific events and contain the business logic.

Publishers

Todo.

Consumers

Todo.

1.0 Roadmap

  • Usage examples
  • Interface storage to plug multiple engines (File based, SQL, Document)
  • Test with multiple AMQP brokers
  • Snapshot creation
  • Re-emit events support
  • Event replay
  • Event breakpointing

Package Sidebar

Install

npm i event-sourcing

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • marcghorayeb