Class: Deimos::Backends::Kafka
- Defined in:
- lib/deimos/backends/kafka.rb
Overview
Default backend to produce to Kafka.
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.execute(producer_class:, messages:) ⇒ Object
:nodoc:
8 9 10 11 12 13 14 15 |
# File 'lib/deimos/backends/kafka.rb', line 8 def self.execute(producer_class:, messages:) Karafka.producer.produce_many_sync() Deimos.config.metrics&.increment( 'publish', tags: %W(status:success topic:#{.first[:topic]}), by: .size ) end |