0
0
HLDsystem_design~10 mins

Throughput, latency, and availability in HLD - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define throughput as the number of requests processed per {{BLANK_1}}.

HLD
Throughput is measured as requests per [1].
Drag options to blanks, or click blank then click option'
Ahour
Bminute
Csecond
Dday
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a longer time unit like minute or hour, which is less precise for throughput.
2fill in blank
medium

Complete the code to define latency as the time taken to process a single {{BLANK_1}}.

HLD
Latency is the time taken to process a single [1].
Drag options to blanks, or click blank then click option'
Arequest
Bbatch
Cserver
Dconnection
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing latency with throughput or availability.
3fill in blank
hard

Fix the error in the availability formula by completing the code with the correct term for downtime: {{BLANK_1}}.

HLD
Availability = Uptime / (Uptime + [1])
Drag options to blanks, or click blank then click option'
Adowntime
Bthroughput
Cresponse_time
Dlatency
Attempts:
3 left
💡 Hint
Common Mistakes
Using response time or latency instead of downtime in the formula.
4fill in blank
hard

Fill both blanks to complete the formula for average latency and throughput: average latency = total {{BLANK_1}} divided by total {{BLANK_2}}.

HLD
average_latency = total [1] / total [2]
Drag options to blanks, or click blank then click option'
Atime
Brequests
Cerrors
Dservers
Attempts:
3 left
💡 Hint
Common Mistakes
Using errors or servers instead of requests in the denominator.
5fill in blank
hard

Fill all three blanks to complete the availability formula: availability = {{BLANK_1}} / ({{BLANK_2}} + {{BLANK_3}}).

HLD
availability = [1] / ([2] + [3])
Drag options to blanks, or click blank then click option'
Auptime
Bdowntime
Ctotal_time
Dresponse_time
Attempts:
3 left
💡 Hint
Common Mistakes
Using response time instead of total time or downtime.