All jobs / Frontend / web developer

Frontend / web developer interview question · 5+ years

A trader UI keeps the whole order book in a WebSocket reducer. A blip shows an empty book.

What is the socket allowed to be?

The strongest answer

A hint to refetch or a delta on top of a REST/GraphQL snapshot — if the socket drops, the UI can still rebuild state from HTTP

Why it works

Exactly. Sockets die. Mobile radios die. The snapshot is the source of truth; the socket is freshness. Otherwise every reconnect is a product bug.

What a good answer covers

Answers that fall short

Who gets asked this

More Frontend / web developer questions