Module kafka

Module kafka 

Source
Expand description

Lazily-initialised Kafka producer used by the audit subsystem.

The producer is a fire-and-forget FutureProducer cached behind a OnceLock, so the first audit message pays the connection cost and subsequent messages reuse the same client. Delivery uses a zero-duration wait — the audit path never blocks the request that triggered it.

Structs§

Kafka
Kafka client configuration for audit message production.