asynchronous - Parallelization by threads vs Parallelization by processes on backend - Stack Overflow
I used to work with usual sync programming and the archtecture implied that if you need anything to run a parallel, you queue it in message system and you would spawn extra process on the same or other VM to consume it : quite mild resource usage spikes, especially when you limit the number of certain processes on VM.
I have seen asynchronious programming when you parallelize (potentially but) your actions/work within the process which in its way leads to less controllable bursts of usage of resources (CPU, memory).
Am I wrong? Is there any criteria/guideline to prefer 2nd over 1st?
The question is about async programming on backend side.
最新文章
- 揭秘“好奇号”火星探测器的硬件及软件
- 成本高、厂商疑 微软Surface面临十大风险
- 奇虎诉腾讯索赔1.5亿创天价 双方股价昨齐上涨
- 英特尔公布搭载其芯片的Windows 8平板电脑的硬件配置规范
- python - Adding quotes to list objects to format as a dictionary pyspark - Stack Overflow
- android - Room Database is very slow For query 20 results with limit in 25k records - Stack Overflow
- dart - Flutter - dyld: lazy symbol binding failed: Symbol not found: _os_log_create - Stack Overflow
- rust - How Can I Efficiently Render an Emulator Framebuffer in an Iced Widget at 60 FPS? - Stack Overflow
- The blender. How to combine multiple textures into one - Stack Overflow
- php - Get WooCommerce custom payment gateway values in process_payment function for Blocks checkout - Stack Overflow
- logging - C++ spdlog: How to append output to last log message? - Stack Overflow
- python - Unable to Fetch Data from PostgreSQL on Databricks - Connection Attempt Failed - Stack Overflow
- python - PEFT library installed but PEFT is not identified at runtime - Stack Overflow
- php - Add Algorithm to the XML tag generated by SOAP - Stack Overflow
- python - Newton raphson fails to approximate beyond two decimal points - Stack Overflow
- How to I get excel to look up values in the nth column based on a number in a cell? - Stack Overflow
- ios - Persist overlay view in the detail side of NavigationSplitView - Stack Overflow