Latency vs. Throughput Flashcards

(14 cards)

1
Q

What is latency?

A

The delay or time it takes a request to complete (from start to finish).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are two characteristics of latency (measurement, as an indicator)?

A

It’s generally measured in time, typically seconds or milliseconds and low-latency can typically be indicative of a reliable system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is latency important?

A

Latency becomes more important in real-time or near real-time systems. Online gaming, financial trading, and video conferencing are all examples of systems where latency matters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s an example of latency?

A

Clicking on a link and being presented with the associated content immediately (latency would be how long it would take the content to appear).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is throughput?

A

The amount of traffic sent in a system over a period of time. It’s a measure of how much work or processing a system is doing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are two characteristics of throughput (measurement, as an indicator)?

A

Throughput is measured in units of data over time (e.g. Mb/second, etc.) and higher throughput generally indicates a higher processing capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is throughput important?

A

Throughput is critical in large-scale systems that work with significant amounts of data to ensure the system can function. Systems like backup, or video streaming generally require high throughput.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What’s a real-world example of the impact of throughput?

A

The rate of a user streaming video to their device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How does the focus differ from latency to throughput?

A

Latency focuses on speed whereas throughput focuses on volume and capacity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does latency affect user experience? What about throughput?

A

High-latency can make an experience feel sluggish, likewise when throughput is low, it can have the same effect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does the relationship of latency go hand-in-hand with throughput in systems?

A

Typically they can be at odds with each other (e.g. increasing throughput may also introduce higher latency).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some common ways to improve latency?

A
  • CDNs (reduce geographic distance)
  • Caching
  • Hardware/Resources
  • Better Protocols (HTTP/2 etc.)
  • DB Optimization
  • Load Balancing
  • Code Optimization
  • Reduce External Calls
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some common ways to improve throughput?

A
  • Horizontal Scaling
  • Caching
  • Parallelization
  • Batching
  • DB Optimization
  • Asynchronous Processing
  • Network Bandwidth
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When would you choose latency over throughput? And vice-versa?

A

Latency would be preferred in real-time system where instant feedback matters, similarly throughput would be more important in systems working with significant volumes of data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly