HomeChallengesRepsProblemsLeaderboardTake a challenge

The receipt that stayed on the other pod

Order receipts arrive about half the time. The customer is connected to one pod, the order finishes on the other, and that pod has nobody to send to. Connect the pods to each other.

Intermediate15 min on the clock4 graded checks · 100 pointsWorks on One Server

AssumesThe receipt sent to the wrong phoneThis is the notifier built there, now on two pods. Sending through IHubContext to the right user comes first; reaching the pod that user is on comes second.

Graded by reading your code against the checklist below.

What you build

  • Add the Redis backplane to SignalR
  • Give its channels a prefix for this app
  • Read the Redis connection from configuration
  • Connect the browser with WebSockets and no negotiate request

Done means

SignalR has a Redis backplane with an app prefix, and the client connects with WebSockets directly.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. SignalR has a Redis backplane+40State that outlives one process
  2. The channels have an app prefix+15State that outlives one process
  3. The connection comes from configuration+15Settings, not string literals
  4. The client skips negotiation and uses WebSockets+30Pushing to one user, not the last one

What it teaches

The rest of Works on One Server