Синхронная и асинхронная обработка
DEV · 22.11.2026 · 10:54
Обработка больших CSV файлов может потребовать значительных ресурсов. При высокой нагрузке сервер может столкнуться с проблемами из-за одновременных запросов.
Оригинал
Sync VS Async Processing
Imagine you have an endpoint which processes large CSV files. How it would behave under peak concurrency and why? The Problem Processing a CSV file can be a time + memory consuming task. Which means at peak concurrency your server will be overwhelmed with resource usages Because by the time your server completes the first request, the second request will arrive and your server needs to start processing that as well concurrently. For which your server needs to spin up new threads or