@@ -346,7 +346,8 @@ curl -X PATCH http://localhost:8080/api/collaboration/room/6724e9d892fb3e9f04c2e
346
346
## Documentation on Queue (RabbitMQ)
347
347
348
348
The collaboration service uses RabbitMQ as a message broker to facilitate communication between microservices (such as
349
- the ` matching service ` and ` collaboration service ` ) in an asynchronous manner. The system consists of a consumer and four
349
+ the ` Matching Service ` , ` Collaboration Service ` and ` Question Service ` ) in an asynchronous manner. The system consists
350
+ of a consumer and four
350
351
producers:
351
352
352
353
### Queues Used
@@ -365,9 +366,9 @@ The producer will send a message to the `COLLAB_CREATED` queue when a collaborat
365
366
366
367
- ** Queue** : ` COLLAB_CREATED `
367
368
- ** Data in the Message** :
368
- - ` requestId1 ` (Required) - The request ID of the first user.
369
- - ` requestId2 ` (Required) - The request ID of the second user.
370
- - ` collabId ` (Required) - The ID of the collaboration room.
369
+ - ` requestId1 ` (Required) - The request ID of the first user.
370
+ - ` requestId2 ` (Required) - The request ID of the second user.
371
+ - ` collabId ` (Required) - The ID of the collaboration room.
371
372
372
373
``` json
373
374
{
@@ -381,9 +382,9 @@ The producer will send a message to the `MATCH_FAILED` queue when a collaboratio
381
382
382
383
- ** Queue** : ` MATCH_FAILED `
383
384
- ** Data Produced**
384
- - ` requestId1 ` (Required) - The first request ID associated with the match failure.
385
- - ` requestId2 ` (Required) - The second request ID associated with the match failure.
386
- - ` reason ` (Required) - The error encountered.
385
+ - ` requestId1 ` (Required) - The first request ID associated with the match failure.
386
+ - ` requestId2 ` (Required) - The second request ID associated with the match failure.
387
+ - ` reason ` (Required) - The error encountered.
387
388
388
389
``` json
389
390
{
@@ -420,17 +421,19 @@ The producer will send a message to the `CREATE_HISTORY` queue when a collaborat
420
421
"topics" : [ " Algorithms" ],
421
422
"difficulty" : " Easy" ,
422
423
"_id" : " 671a0615dc63fe2d5f3bbae5"
423
- },
424
+ }
424
425
},
425
426
```
426
427
427
- The producer will send a message to the ` UPDATE_HISTORY ` queue when a user forfeits or completes a collaborative session.
428
+ The producer will send a message to the ` UPDATE_HISTORY ` queue when a user forfeits or completes a collaborative
429
+ session.
428
430
429
431
- ** Queue** : ` UPDATE_HISTORY `
430
432
- ** Data Produced**
431
433
- ` roomId ` - The ID of the collaboration room.
432
434
- ` userId ` - The user associated with the update.
433
- - ` status ` - The new status associated with the collaboration room. It may be ` "IN_PROGRESS" ` , ` "FORFEITED" ` , or ` "COMPLETED" ` .
435
+ - ` status ` - The new status associated with the collaboration room. It may be ` "IN_PROGRESS" ` , ` "FORFEITED" ` ,
436
+ or ` "COMPLETED" ` .
434
437
435
438
``` json
436
439
{
@@ -449,9 +452,9 @@ matched.
449
452
450
453
- ** Queue** : ` QUESTION_FOUND `
451
454
- ** Data in the Message** :
452
- - ` user1 ` (Required) - The details of the first user.
453
- - ` user2 ` (Required) - The details of the second user.
454
- - ` question ` (Required) - The question assigned to the users.
455
+ - ` user1 ` (Required) - The details of the first user.
456
+ - ` user2 ` (Required) - The details of the second user.
457
+ - ` question ` (Required) - The question assigned to the users.
455
458
456
459
``` json
457
460
{
0 commit comments