Watch the explanation. Practice the skill.
HTTP, JSON, APIs, secrets, and failure handling
Handle service failures with clear retry and stop rules.
Captions appear here during playback.
HTTP, JSON, APIs, secrets, and failure handling
Handle service failures with clear retry and stop rules.
Video playback is unavailable. Read the descriptive transcript below, go directly to practice, or open the video file.
Source-based teaching example · Fictional data · Reviewed 2026-10-03. Microsoft Mark · locally synthesized. On a small screen, use fullscreen for diagram details or read the transcript.
Read the descriptive transcript
0:00 · What you will learn
Handle service failures with clear retry and stop rules.
What appears on screen
Handle service failures with clear retry and stop rules.
0:06 · The idea
Some failures may be temporary; others need a correction before another attempt. Limit both attempts and waiting time. Do not repeat a write if it might create a duplicate effect.
What appears on screen
Some failures may be temporary; others need a correction before another attempt. Limit both attempts and waiting time. Do not repeat a write if it might create a duplicate effect.
0:21 · One useful term
Retry budget. The maximum attempts and waiting time allowed for a request.
What appears on screen
The maximum attempts and waiting time allowed for a request.
0:29 · A worked example
The mock returns rate-limit and service errors, bad JSON and an authentication error. The exercise retries selected temporary failures within its budget. Bad JSON fails its format check; the authentication error stops immediately.
What appears on screen
The mock returns rate-limit and service errors, bad JSON and an authentication error. The exercise retries selected temporary failures within its budget. Bad JSON fails its format check; the authentication error stops immediately.
0:48 · Your turn to think
Should every failure be retried until it works? Pause and decide before continuing.
What appears on screen
Should every failure be retried until it works? Pause the video if you need more time.
1:05 · Why this answer works
No. Follow the declared rules. Protect repeated writes, respect the deadline and keep secrets out of logs.
What appears on screen
No. Follow the declared rules. Protect repeated writes, respect the deadline and keep secrets out of logs.
1:15 · Check 1
Use the allowed attempt and time limits.
What appears on screen
Use the allowed attempt and time limits.
1:21 · Check 2
Separate temporary and contract failures.
What appears on screen
Separate temporary and contract failures.
1:27 · Check 3
Log outcomes rather than secret-bearing content.
What appears on screen
Log outcomes rather than secret-bearing content.
1:33 · Now try a different case
Open the lesson and try its different practice case. Use every check in the full task. Watching alone does not mark the lesson complete.
What appears on screen
Open the lesson Try the new case Check and revise The full task and its requirements are in the linked lesson.
Watching explains the example. Complete the lesson practice to check what you can do. Explore all visual lessons →