Day 9: Login Works, but the Live Connection Keeps Dropping
Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.
Scenario
Interviewer People log in to a chat app without trouble. The live connection that carries their messages then fails to open, or drops after a short while. Why?
In plain words
The app does two different things. Logging in is one quick question and answer. Chatting needs a line that stays open for a long time, so messages can arrive the moment they are sent.
The question asks why the first can work while the second fails. You should compare the two kinds of traffic and name a few places where only the long-lasting kind can break.
Words you need
| Word | What it means |
|---|---|
| Request | One question sent to a server, which sends one answer back. Loading a page or logging in is a request. |
| WebSocket | A connection that begins as an ordinary web request and then stays open, so either side can send at any time. |
| Proxy | A program in the middle that passes traffic on. A load balancer is one kind. |
| Idle timeout | How long a proxy keeps a connection that has gone quiet before closing it. |
| Sticky session | Sending the same user to the same server each time. |
Your answer
2:00
Observe → Hypothesise → Investigate → Mitigate → Prevent. The timer is optional; your answer is not auto-submitted.
0 / 20,000 characters · Not saved