@forrestjs/service-hasura-cqrs

5.2.2 • Public • Published

Hasura CQRS

Facilitates the management of CQRS pattern using Hasura as database abstraction, Fetchq as orchestrator, and a REST backend as logical executor for the commands.

The Service offers new Extensions to perform different CQRS logic.

Dependencies:

$HASURA_CQRS_SOURCE

Ingest commands from a CQRS Hypertable into a Fetchq queue.

Schema

$HASURA_CQRS_ROUTER

Moves documents from one queue to one (or more) target queues, effectively routing documents towards independent streams.

Schema

$HASURA_CQRS_SHARD

Moves documents from one queue to another target queue, effectively helping to shard a queue into many independent streams.

Schema

$HASURA_CQRS_RESTIFY

It consumes one or more queues and makes REST requests in order to process the document.

It also facilitates the writing of the Command response or error into the CQRS Hypertable.

Schema

Package Sidebar

Install

npm i @forrestjs/service-hasura-cqrs

Weekly Downloads

418

Version

5.2.2

License

MIT

Unpacked Size

47.6 kB

Total Files

41

Last publish

Collaborators

  • marcopeg