FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
ArticleSystems

5 Backend Design Patterns for Managing Threads and Sockets

via Hussein NasserHussein Nasser2mo ago

In this video I introduce 5 different design patterns for building backend applications. Each mode explains how a socket listener is established, a connections are established and how threads and connections are managed to read, write and process requests. 0:00 Intro 2:00 Single Thread 6:00 Multiple Threads 8:00 The problem with multi threading 12:16 Socket Listener 19:30 connection establishment 26:30 Single Listener Single Thread Mode 30:30 Single Listener Multiple Threads Mode 35:00 Single Listener Load Balanced Threads Mode 38:12 Multiple Listeners SO_REUSEPORT 41:25 Multiple Single Threaded Backend Fundamentals of Operating Systems Course https://courses.husseinnasser.com NodeJS Internals and Architecture https://node.win Backend Troubleshooting Course https://performance.husseinnasser.com Fundamentals of Backend Engineering https://backend.win Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon) https://network.husseinnasser.com Fun

Watch on Hussein Nasser

Opens in a new tab

Watch on YouTube
18 views

Related Articles

I really miss coding.
Article

I really miss coding.

Theo • 1d ago

Here's a cool and easy way to work with colors in your Three.js projects
Article

Here's a cool and easy way to work with colors in your Three.js projects

freeCodeCamp.org • 2d ago

Learn a bit about camera position in Three.js
Article

Learn a bit about camera position in Three.js

freeCodeCamp.org • 5d ago

A great novel can be written in any language - just like great programs.
Article

A great novel can be written in any language - just like great programs.

freeCodeCamp.org • 6d ago

Learn how to set a scene in Three.js
Article

Learn how to set a scene in Three.js

freeCodeCamp.org • 1w ago

Discover More Articles