Skip to main content

Module coordinated_reader

Module coordinated_reader 

Source
Expand description

Postgres coordinated reader: thin alias over the generic core type.

Why this file is alias-only:

CoordinatedReader<R, Coord> is fully generic in eventuary-core โ€” it composes any partition-aware Reader<R> with any PartitionCoordinator<C> and contains no Postgres-specific code. Every backend therefore only needs pub type aliases to specialize the generic with its own reader and coordinator (PgReader + PgPartitionCoordinator). The same module path shape (eventuary::postgres::coordinated_reader::*) is preserved across backends so users learn one structure once.

These aliases shorten call sites โ€” PgCoordinatedReader reads better than CoordinatedReader<PgReader, PgPartitionCoordinator> โ€” and give the umbrella a canonical, discoverable path next to reader, writer, and partition_coordinator modules.

Type Aliasesยง

PgCoordinatedAcker
PgCoordinatedCursor
PgCoordinatedReader
PgCoordinatedReaderConfig
PgCoordinatedStream
PgCoordinatedSubscription