Microservice Native Event Store and Message Store for Postgres
A fully-featured event store and message store implemented in PostgreSQL for Pub/Sub, Event Sourcing, Messaging, and Evented Microservices applications.
- JSON message data
- Event streams
- Stream categories
- Message queues
- Message storage
- Consumer groups
- Service host
- Administration tools
An event sourcing and Pub/Sub message store built on Postgres for simple cloud or local hosting. A minimalist implementation of the essential features of tools like Event Store or Kafka, with built-in support for messaging patterns like Pub/Sub, and consumer patterns like consumer groups.
Message DB was extracted from the Eventide Project to make it easier for users to write clients in the language of their choosing.
A complete user guide is available on the Eventide Project docs site:
NPM Distribution of Message DB
This library is an NPM module package of the Message DB database for Postgres.
For more information, see:
npm install @eventide/message-db
Create the Postgres Database
Running the database installation tool creates the database, schema, table, indexes, functions, views, types, a user role, and limit the user's privileges to the message store's public interface.
Note: Make sure that your default Postgres user has administrative privileges.
To execute the update script, navigate to the directory where the
message-db module is installed and run the script:
By default, the database creation tool will create a database named
If you prefer either a different database name, you can override the name using the
DATABASE_NAME environment variable.
message-db library is released under the MIT License.