Middle — Senior
Identification of bottlenecks in the system and optimization proposals
livecode
Task condition
Conduct a detailed analysis of the current architecture, identify potential problem areas, and formulate options for their resolution.
The diagram shows a system consisting of:
- PIM — an external source that sends data to the backend (one request every 5 seconds).
- BACKEND — processes incoming requests and sends results to the client side. NGINX is used as the web server.
- FRONTEND — displays the received data (updates occur once per second).
Consider the following:
- The API between PIM and BACKEND is single-threaded.
- There is a difference in the frequency of data transmission from PIM and their display in the FRONTEND.
- Possible issues with performance or data loss.
- Approaches to scaling and implementing asynchronous processing.