What is Latency in Software?
34
13-Jan-2026
Updated on 13-Jan-2026
Anubhav Kumar
13-Jan-2026Latency in software refers to the time delay between a request being made and the response being received.
In simple terms:
Interview One-Liner
Simple Example
You click a button
Formal Definition
Types of Latency in Software
1. Network Latency
Time taken for data to travel over the network.
Causes:
Example:
API call taking 120 ms due to network delay
2. Application Latency
Time spent inside the application.
Causes:
Example:
Heavy loop or synchronous I/O
3. Database Latency
Time taken to execute DB queries.
Causes:
Example:
SQL query taking 500 ms
4. Disk / I/O Latency
Time to read/write from disk.
Causes:
Example:
File read delay
5. Rendering / UI Latency
Time from data arrival to UI update.
Example:
Latency vs Throughput (Important Difference)
Real-World Analogy
Why Latency Matters
Acceptable Latency (Rule of Thumb)
How to Reduce Latency
Network
Application
Database
Latency in Real-Time Systems