Kaffe.Producer.produce

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

produce(topic, message_list, opts \\ [])

View Source

Synchronously produce the messages_list to topic

  • messages_list must be a list of type message() or message_object()
  • opts may include the partition strategy to use, partition_strategy: :md5, or :random or a function.

Returns:

 * `:ok` on successfully producing each message
 * `{:error, reason}` for any error