Single-threading not considered harmful
Single-threading not considered harmful
Posted May 20, 2011 19:48 UTC (Fri) by mikernet (guest, #75071)In reply to: Single-threading not considered harmful by quotemstr
Parent article: Scale Fail (part 1)
You can achieve both multi-threading and multi-process/multi-machine scalability, and should for a large application. A single thread serving many concurrent users will be very latent. Spinning up a seperate process for each user is incredibly resource heavy, processes are much heavier than threads.
Your application should be multi-threaded so that all the processor cores and idle time on any one machine are fully utilized. It should also be able to scale across machines so you can increase total processing capacity easily.
