ProjectionsModule
PackageFCQRS
Transactional projections with a journal-wide, durable catch-up boundary.
Summary
| Name | Signature | Synopsis |
|---|---|---|
| start | start actor options handler | Creates an independently running projection. |
Creates an independently running projection. The handler must write exclusively
through the supplied connection and transaction, and await all its database work.
FCQRS commits the handler's updates and contiguous journal position together.
The transaction holds SQLite's single writer lock while the handler runs, so on SQLite the
handler must not wait for a journal write, such as a workflow start: that write waits for the
lock until the projection times out. Start workflows from `Fcqrs.projection` instead.
Each pass applies the events it found in journal order: per persistence ID in sequence
order, and across persistence IDs in write order on SQLite; on PostgreSQL, SQL Server, and Oracle an event that
commits late is applied in a later pass. Retain journal history until it has been processed.
With `options.Entities`, it reads and stores progress for only those entities' persistence IDs.
Configured Akka event adapters are currently unsupported by this projection reader.
Configure the SQL journal through HOCON; DataOptionsSetup overrides are rejected
because capture and replay must be validated against the same database and mapping.
Parameters
| Name | Type | Description |
|---|---|---|
| actor | IActor | |
| options | TransactionalProjectionOptions | |
| handler | DbConnection -> DbTransaction -> EventEnvelope -> Task |
Returns
IProjection