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.
最新文章
- OS X故障不断 苹果MAC被爆Wifi故障
- c++ - Why is my OpenGL application rendering a 3D model with unexpected transparency? - Stack Overflow
- Youtube APi Fetching Gender Percentage of my channel - Stack Overflow
- swiftui - Ambiguous Init warning that doesn't make sense - Stack Overflow
- TypeScript Error (ts2345) when trying to collect property names in array - Stack Overflow
- filename has 'netboxlabs-diode-netbox-plugin', but metadata has 'unknown' - Stack Overflow
- exception - codeceptjs 3 run-workers with 11 worker threads encounter session out or time out problem - Stack Overflow
- reactjs - Next.js - I need static error page template in non-static app router based app - Stack Overflow
- flutter - Uber category selection animation - Stack Overflow
- html - Disable scrolling. Overflow:hidden not working - Stack Overflow
- javascript - How can you use a React hook conditionally in a function component - Stack Overflow
- android - How to setImageCaptureResolutionSelector() in CameraController? - Stack Overflow
- typescript - How to keep autosuggestion with generics when working with keyof? - Stack Overflow
- python - Why do I get AttributeError: module 'tensorflow.keras.backend' has no attribute 'placeholder&am
- python - pickle port? loading a pickle with data when I've redefined the object code - Stack Overflow
- I can't receive messages through my webhook with Whatsapp Cloud API - Stack Overflow
- angularjs - how to display a pdf in angular? - Stack Overflow