PulsarEx.produce
You're seeing just the function
produce
, go back to PulsarEx module for more information.
Link to this function
produce(topic, payload, message_opts \\ [])
Synchronously produce message to pulsar, with default producer options
Being able to asynchronously send messages to pulsar is awesome, but being not able to catch the
errors sucks. So this sync version uses the async send, but wait for the batched/async sends to return
with result, pretty much like a future.
#
Example Producer Configs:
config :pulserl,
producer_opts: [
properties: [test: true, env: staging],
batch_enable: true
]
Examples
iex> PulsarEx.produce("test-topic", "test-payload", event_time: :os.system_time(:millisecond))