@forrestjs/service-hasura-cqrs
v5.2.2
Published
NodeJS client to issue GraphQL queries towards an Hasura endpoint, and Hasura admin APIs
Downloads
1,321
Maintainers
Readme
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.
$HASURA_CQRS_ROUTER
Moves documents from one queue to one (or more) target queues, effectively routing documents towards independent streams.
$HASURA_CQRS_SHARD
Moves documents from one queue to another target queue, effectively helping to shard a queue into many independent streams.
$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.