valkey-io / valkeymodule-rs

Rust valkey SDK for modules
BSD 3-Clause "New" or "Revised" License
32 stars 10 forks source link

[Question] Module API to get the replication stream #76

Closed hpatro closed 3 months ago

hpatro commented 3 months ago

Are there any module API which would provide the final command getting executed on a primary or any API that provide access to the replication stream?

Alternatives Command filter provides an option to get the command argument received by the server. However, it isn't sufficient in some cases like Hyperloglog, random operations like SPOP as it can undergo change before the execution.

hpatro commented 3 months ago

Starting a issue in valkey repository https://github.com/valkey-io/valkey/issues/921