|
|
|
|
|
by 66fm472tjy7
1442 days ago
|
|
In the first iteration of using confirms, we did not have the outbox but only logged how long it took to get the confirmation. After 3 seconds, we would throw out the expected confirmation. If a confirmation took longer than that, we would log that we received an unknown confirmation. We hoped it would be fast enough that we can just wait for the confirmation before committing the transaction. The official documentation says > This means that under a constant load, latency for basic.ack can reach a few hundred milliseconds I never did statistics, just looked at the log. IIRC most were acceptable but > 3s occurred frequently enough (and we even had instances of messages never being confirmed, IIRC) that we abandoned that plan. We considered using Debezium[0], but decided on the current solution as it could be solved entirely with the current services and infrastructure whereas Debezium would have required us to deploy (writing this from memory so this might be inaccurate/incomplete) Kafka, Zookeeper, and a connector service. [0] https://debezium.io/ |
|