StaffCoder
.NET
.NET.NET 10
12 modules · 48 challengesSign up
Modules12 modules · 48 challenges
Learn how every request passes through a pipeline before and after your endpoint: measuring and logging a call, answering one yourself without going further, putting the stages in an order that works, and carrying one id through all of them.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Request Timing Logger

Sign up to unlock
0%0 of 1 solvedeasy
About this challenge

This problem covers timing every request as it passes through the application and leaving one log entry for it, recording the method, the path, the status it ended with and how long it took, without changing the answer itself.

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

Maintenance Mode Switch

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers putting a switch in front of the whole application, so that while it is on every request is turned away with the same notice and told when to come back, and while it is off nothing about the normal answers changes.

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

Pipeline Order Repair

Sign up to unlock
—No data yeteasy
About this challenge

This problem covers putting the stages a request passes through into the right order, so failures anywhere are caught and turned into a proper answer, and a protected endpoint is guarded before it ever runs.

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

Correlation ID Pipeline

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

This problem covers giving every request one id that follows it all the way through the application, so each stage and each log line reports the same one, and it comes back on the response whatever happened to the request.

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.