Kaffe.Producer.produce_sync

You're seeing just the function produce_sync, go back to Kaffe.Producer module for more information.
Link to this function

produce_sync(topic, message_list)

View Source

Synchronously produce the given key/value to the first Kafka topic.

This is a simpler way to produce if you've only given Producer a single topic for production and don't want to specify the topic for each call.

Returns:

 * `:ok` on successfully producing the message
 * `{:error, reason}` for any error
Link to this function

produce_sync(topic, partition, message_list)

View Source

Synchronously produce the key/value to topic

See produce_sync/2 for returns.

Link to this function

produce_sync(topic, partition, key, value)

View Source

Synchronously produce the given key/value to the topic/partition

See produce_sync/2 for returns.