Alex Strizhak
02/02/2023, 3:46 PMno
, because ActiveSupport::Notification, as I understand, is using memory for a queue, but not the external requests that are expected by Pact, so probably it can be done only via some other Message Queue, like Kafka, for example:
ActiveSupport::Notifications.subscribe("my_message") do |payload|
Kafka.produce(queue: 'test-queue', message: payload)
end
where Kafka.produce
can be handled by Pact.
However, in this way there is makes sense to remove ActiveSupport::Notifications and keep using only Kafka but itβs different story.
Is anybody was trying to use Pact for ActiveSupport::Notification somehow?
Appreciate any feedback/thought πBeth (pactflow.io/Pact Broker/pact-ruby)
Beth (pactflow.io/Pact Broker/pact-ruby)
Alex Strizhak
02/03/2023, 10:34 AM