educative.io

Educative

What do you mean by serialization in distributed queue

Another solution is to serialize the requests using the system’s buffer at both ends of the queue so that incoming messages are placed in an order and consumer processes also receive messages in their arrival sequence.

not able to follow the above sentence

1 Like

Hi Gokul Dharumar,
We are unable to find the text in the lesson mentioned in the question. Could you please share the exact link to the lesson where you saw the paragraph?

Thank you.

sure this is the one

and it is part of “Managing concurrency”

Any updates on this?


Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: Design of a Distributed Messaging Queue: Part 1 - Grokking Modern System Design Interview for Engineers & Managers

I’m confused by this point, too. Any one can clarify?

1 Like

Hi,
Thanks for asking the question.

By serializing requests, we meant that at whatever order requests (either for putting data or extracting data) come at the server, they would be queued by the OS, and a single application thread will put them in the queue (we can assume that both kinds of requests, put and extract come to the same port) without any locking. It will be a possible lock-free solution, providing high throughput.

I hope this helps!

2 Likes