Sarama is a Go client library for Apache Kafka built by Shopify. It provides a purely Go API to work with different producers, consumers, streams and connectors for Kafka. The latest Go version that supports this package is 1.13 for Apache Kafka 0.8 and later.

Apache Kafka offers a distributed streaming service for real-time data. It provides a way to store fault-tolerant real-time data which can also be operated upon in the fly.

With a lot people using Go’s powerful features for various purposes, having a package for Apache Kafka is a very helpful initiative.

Sarama provides two types of producer APIs: AsyncProducer or the SyncProducer. As the name suggests AsyncProducer is non-blocking asynchronous message provider.

Written by

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store