Skip to content

Commit 90cb4fa

Browse files
authored
chore(rabbitmq): update rabbitmq config to follow new naming convention (#486)
1 parent 3608a73 commit 90cb4fa

1 file changed

Lines changed: 40 additions & 6 deletions

File tree

config/queue.php

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@
5454
'block_for' => null,
5555
'after_commit' => false,
5656
],
57-
57+
/* SOURCE API IDP
58+
* DOMAIN EVENTS:
59+
* - PublishUserCreated ( app/Jobs/PublishUserCreated.php )
60+
* - PublishUserDeleted ( app/Jobs/PublishUserDeleted.php )
61+
* - PublishUserUpdated ( app/Jobs/PublishUserUpdated.php )
62+
*/
5863
'message_broker' => [
5964
'driver' => 'rabbitmq',
6065
'queue' => env('RABBITMQ_QUEUE', ''),
@@ -87,10 +92,17 @@
8792
],
8893
],
8994
],
90-
95+
/* SOURCE API sponsor users api
96+
* DOMAIN EVENTS:
97+
* - auth_user_added_to_group
98+
* - auth_user_removed_from_group
99+
* - auth_user_added_to_sponsor_and_summit
100+
* - auth_user_removed_from_sponsor_and_summit
101+
* - auth_user_removed_from_summit
102+
*/
91103
'sponsor_users_sync_consumer' => [
92104
'driver' => 'rabbitmq',
93-
'queue' => env('SPONSOR_USERS_QUEUE', 'sponsor-users'),
105+
'queue' => env('SPONSOR_USERS_QUEUE', 'sponsor-users-api-summit-api-badge-scans-queue'),
94106
'connection' => $rabbit_connection,
95107
'hosts' => [
96108
[
@@ -118,9 +130,15 @@
118130
],
119131
],
120132
],
133+
/* SOURCE API purchases api
134+
* DOMAIN EVENTS:
135+
* - payment_profile_created
136+
* - payment_profile_updated
137+
* - payment_profile_deleted
138+
*/
121139
'payments_sync_consumer' => [
122140
'driver' => 'rabbitmq',
123-
'queue' => env('PAYMENTS_QUEUE', 'payments'),
141+
'queue' => env('PAYMENTS_QUEUE', 'purchases-api-summit-api-payment-profiles-queue'),
124142
'connection' => $rabbit_connection,
125143
'hosts' => [
126144
[
@@ -148,7 +166,23 @@
148166
],
149167
],
150168
],
151-
169+
/*
170+
* SOURCE API Summit API
171+
* Summit Entities Domain Events
172+
* DOMAIN EVENTS:
173+
* - sponsor_created ( see app/Events/SponsorServices/SponsorDomainEvents.php )
174+
* - sponsor_updated
175+
* - sponsor_deleted
176+
* - sponsorship_created
177+
* - sponsorship_updated
178+
* - sponsorship_removed
179+
* - sponsorship_addon_created
180+
* - sponsorship_addon_updated
181+
* - sponsorship_addon_removed
182+
* - summit_created ( see app/Events/SponsorServices/SummitDomainEvents.php )
183+
* - summit_updated
184+
* - summit_deleted
185+
*/
152186
'domain_events_message_broker' => [
153187
'driver' => 'rabbitmq',
154188
'hosts' => [
@@ -162,7 +196,7 @@
162196
],
163197
'options' => [
164198
'exchange' => [
165-
'name' => env('DOMAIN_EVENTS_EXCHANGE_NAME', 'domain_events_message_broker'),
199+
'name' => env('DOMAIN_EVENTS_EXCHANGE_NAME', 'summit-api-message-broker'),
166200
'type' => env('DOMAIN_EVENTS_EXCHANGE_TYPE', 'direct'), // direct, fanout, topic, headers
167201
'passive' => false,
168202
'durable' => true,

0 commit comments

Comments
 (0)