DEV Community

Discussion on: Go, Kafka, gRPC and MongoDB microservice with metrics and tracing 👋

Collapse
 
trueneu profile image
Pavel Gurkov

I'm sorry I'm nitpicking, but there's no "acks==2" mode. It's "all" or "-1", and it's a bit more complex, as opposed to just leader + replica acknowledgments: it requires acks from number of brokers specified in min.insync.replicas broker-side config key, and if less are currently in sync, the produce will fail.
You may specify min.insync.replicas as low as 1 (acks==1 equivalent), or as high as your replication factor, or somewhere in between, so you can finely control the tradeoff b/w availability and consistency.

Collapse
 
aleksk1ng profile image
Alexander

Big thanks, i have edit and add right as you said 👍🙂