Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

5 Backend Design Patterns for Managing Threads and Sockets

Hussein Nasser via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore five essential backend design patterns for managing threads and sockets in this comprehensive 45-minute technical video. Learn how different architectural approaches handle socket listeners, connection establishment, and thread management for processing requests in backend applications. Discover the fundamentals of single-threaded versus multi-threaded designs, understand the challenges that arise with multi-threading implementations, and examine how socket listeners and connection establishment work at a technical level. Master five distinct patterns: Single Listener Single Thread Mode for simple applications, Single Listener Multiple Threads Mode for concurrent processing, Single Listener Load Balanced Threads Mode for distributed workloads, Multiple Listeners with SO_REUSEPORT for scalable architectures, and Multiple Single Threaded Backend approaches for high-performance systems. Gain practical insights into when to apply each pattern based on your application's requirements, performance needs, and scalability goals, with detailed explanations of how threads and connections are managed in each approach.

Syllabus

Intro
Single Thread
Multiple Threads
The problem with multi threading
Socket Listener
connection establishment
Single Listener Single Thread Mode
Single Listener Multiple Threads Mode
Single Listener Load Balanced Threads Mode
Multiple Listeners SO_REUSEPORT
Multiple Single Threaded Backend

Taught by

Hussein Nasser

Reviews

Start your review of 5 Backend Design Patterns for Managing Threads and Sockets

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.