How manager processes distributes work among the worker processes in design of quora?

What exactly is manager processes , is it some sort of logic written in frontend microservice … and also how it will distribute work among the worker process …didn’t get this point . please explain me


Course: Grokking Modern System Design Interview for Engineers & Managers - Learn Interactively
Lesson: https://www.educative.io/courses/grokking-modern-system-design-interview-for-engineers-managers/initial-design-of-quora

Hi Ravish

Manager processes, in the context of a microservices architecture, are components responsible for coordinating and distributing work among worker processes. They are a part of the backend or server-side logic, not the frontend microservice. These manager processes are responsible for distributing tasks among worker processes and incorporate load balancing strategies to evenly distribute the load. Manager processes can be implemented as standalone microservices or components within a larger microservices architecture.

Manager processes are an elaborate way to handle uer requests, getting it fulfilled possibly by multiple application servers, and then sending the reply back. Manager processes uses routing library to know where to route the upcoming requests. Routing library also acts like a software load balancer, hence distributing load on the available application servers. Manager processes and application processes are decoupled using queues.

This design has few shortcoming such as potentially higher latency due to traversing many network hops when multiple application servers are involved. We improve on this initial design in the detailed design.

Thank you