Sha256: 565f12ce3c783de64f226063b43302f31209490feaa528d1c0cf5cffe1dc4a05
Contents?: true
Size: 492 Bytes
Versions: 166
Compression:
Stored size: 492 Bytes
Contents
class UserSubscriber < ActionSubscriber::Base publisher :users_hq exchange :events # When we turn on manual acknowledgements RabbitMQ will be expecting us # to send back either and acknowledgement or a rejection for each message # if we don't send anything back rabbit might stop sending us messages manual_acknowledgement! def created user_profile = UserProfile.create_for_user(payload) if user_profile.save acknowledge else reject end end end
Version data entries
166 entries across 166 versions & 1 rubygems