Note: The Listed platform will permanently shut down December 31, 2026. Your data published on Listed will still be available in your personal Standard Notes account. Learn more

Async vs Threading for Web Servers

Consideration

Number of possible requests at the same time: 10,000

Async

  • Single thread
  • 10k requests in async mode jam processing but that is slow down instead of running out of CPU capacity

Multi-threading

  • Multiple threads
  • 10k requests make 10k threads, this is uncontrollable and isn't good for CPU thread management

Conclusion

Web server should run in async mode instead of
multi-threading mode.


You'll only receive email when they publish something new.

More from 19331933
All posts