StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how an application stays responsive while it waits: awaiting work instead of blocking on it, starting several calls at once so they overlap rather than queue, passing the caller's cancellation through so giving up actually stops the work, and letting one failing source cost its own result rather than the whole answer.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Non-Blocking Report Endpoint

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers building a report out of the pieces a slow source hands back, and returning it without ever making the calling thread sit and wait.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Parallel Price Fetch

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers asking three suppliers to price the same basket at the same time instead of one after another, waiting for all of their answers together, and reporting them with the cheapest supplier named.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Cancelable Long Export

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers running a long export that stops as soon as the caller stops waiting for it, instead of carrying on to the end once nobody wants the answer.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Aggregated Dashboard Loader

STAR
Solving it completes the module
—No data yeteasy
About this challenge

This problem covers loading the three panels of a dashboard at the same time, still answering with the panels that came back when one of them fails, and stopping every load that is still running once the caller has given up.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.