Expand description
Fluvio StoragePort for distributed Photon delivery.
Wraps Fluvio consumer groups, checkpoint persistence, and topic sharding behind the shared
storage contract. Enable via the fluvio feature on the
photon facade.
Connection and topic options: FluvioConfig and FluvioStoragePortBuilder
(builder methods + env fallbacks documented on the builder).
Wire with PhotonBuilder::storage_port
after FluvioStoragePortBuilder::build.
§Entry points
FluvioStoragePort— Fluvio storage adapterFluvioConfig/FluvioStoragePortBuilder— connection and topic optionsfluvio_endpoint_from_env— resolve SC endpoint from environment
Performance methodology: photon-bench/PERFORMANCE_STUDY.md.
§Topic mapping (Fluvio)
- Topic:
photon-{topic}whentopic_shards = 1;photon-s-{shard}-{topic}when sharded (hyphens only). - Checkpoints: compact topic
photon-checkpoints. - Replay:
ReplayCursor::StreamSequses produce offset+1;ReplayCursor::TailOnlyusesOffset::end().
Re-exports§
pub use stream_shard::TOPIC_SHARDS_ENV;
Modules§
- stream_
shard - Fluvio topic shard routing (distinct from Photon virtual shard topic keys).
Structs§
- Fluvio
Config - Resolved Fluvio adapter settings (no env lookups at append time).
- Fluvio
Storage Port - Fluvio-backed storage port.
- Fluvio
Storage Port Builder - Builder for
super::port::FluvioStoragePort.
Enums§
- Replay
Cursor - How durable replay and checkpoints map to Fluvio offsets.
Constants§
- ENDPOINT_
ENV - Environment variable for Fluvio SC endpoint.
- MAX_
INFLIGHT_ ENV - Environment variable for max in-flight publishes per port.
- PREFIX_
ENV - Environment variable for topic name prefix.
- REPLAY_
CURSOR_ ENV - Environment variable for replay cursor mode.
- REPLICAS_
ENV - Environment variable for topic replication factor.
- RETENTION_
ENV - Environment variable for Fluvio topic retention.
- SYNC_
ACK_ ENV - Environment variable for synchronous publish ack (
1/0).
Functions§
- consumer_
group_ for - Stable group id alias (NATS deliver-subject analogue).
- durable_
consumer_ name - Build a Fluvio-safe durable consumer id for a keyed subscription.
- fluvio_
endpoint_ from_ env - Read Fluvio endpoint from the environment.