Limits how long to wait while sending data to server during requests
ReadQuiz
~2 min
⋯
Timeout Code Examples
Practical implementations of timeouts in Python, Java, and JavaScript
ReadQuizCode
~2 min
⋯
Choosing the Right Timeout Values
Guidelines for setting appropriate timeouts based on operation type and SLA
ReadQuizCode
~2 min
⋯
The Danger of No Timeout
Omitting timeouts causes thread exhaustion and permanent system hangs
ReadQuizCode
~2 min
⋯
Practice test
30 questions
~10 min
Section 1 of 16ReadQuick quiz
What Is a Distributed System?
Multiple independent computers communicating over networks as one coherent system
~2 min read
2 quick quizzes
Before we dive into failures, let us quickly set the stage. A distributed system is a collection of independent computers (called nodes) that communicate over a network and appear to the user as a single coherent system.
Examples:
A web application that has a frontend server, a backend API server, and a database
A ride-sharing app with separate services for user management, trip tracking, and payments
A news website that fetches data from a weather API, a sports stats API, and an ads server
The key insight is: every connection between components is a potential failure point.
☑ Quick check 1/2
Which of the following best describes why distributed systems are more complex than single-machine systems?
AEvery connection between components is a potential failure point
BDistributed systems require more memory than single machines