Read Aloud the Text Content
This audio was created by Woord's Text to Speech service by content creators from all around the world.
Text Content or SSML code:
speak p Hi everyone. break time400ms Today, I’m going to walk through the latency issue we were seeing with the emphasis levelmoderateDocLibraryAdd RabbitMQ queueemphasis. p p This problem had been around for quite some time, and clients consistently reported that after completing a task, the document didn’t appear right away. break time300ms In some cases, the delay was emphasis levelmoderateone hour… two hours… even threeplus hoursemphasis. p p emphasis levelstrongThe good news is we’ve fixed it.emphasis break time400ms We performed a spike to investigate the root cause and explore multiple solutions. We identified the main issue, evaluated emphasis levelmoderatethree different approachesemphasis, and implemented the one that provided the best results. break time300ms I’ll share the full documentation in the chat. p p Now, if you look at the queue, you’ll see that the emphasis levelstrongReady message count is zero.emphasis break time400ms Earlier, this number used to be emphasis levelmoderatefive thousand… ten thousand… and even forty thousand messagesemphasis — basically a Black Friday checkout line. p p Since RabbitMQ processes messages in emphasis levelmoderateFIFO orderemphasis, any Doc Ack task completed by a user would be added to the emphasis levelmoderatevery endemphasis of that long queue. break time300ms That explains the significant delays everyone was experiencing. p p emphasis levelstrongWhat we didemphasis break time400ms We increased the number of consumers for this queue from emphasis levelmoderatefour to twelveemphasis. break time300ms Based on the queue metrics and current traffic patterns, we calculated that twelve consumers would allow us to process messages in near realtime. break time300ms And that’s exactly what’s happening now — no backlog, and no hourslong wait. p p emphasis levelstrongDemoemphasis break time300ms Now I’ll complete a Doc Ack task, so you can see that the document appears emphasis levelmoderatealmost immediatelyemphasis after the task is completed. p speak