ExStorageService.Replication.Hooks (ex_storage_service v0.6.3)

Copy Markdown View Source

Compatibility facade for eventual cross-cluster replication hooks.

New object-service writes create events inside the object metadata transaction through ExStorageService.CrossClusterReplication.Hooks. These post-commit functions remain for legacy callers such as the cloud backend and create a standalone durable outbox operation.

Summary

Functions

Called after a successful DeleteObject operation.

Called after a successful PutObject operation.

Functions

after_delete(bucket, key)

@spec after_delete(String.t(), String.t()) :: :ok

Called after a successful DeleteObject operation.

Legacy compatibility entry point. Prefer transactionally attaching events_for_delete/3 to the object commit.

after_put(bucket, key)

@spec after_put(String.t(), String.t()) :: :ok

Called after a successful PutObject operation.

Legacy compatibility entry point. Prefer transactionally attaching events_for_put/4 to the object commit.