Latency
Latency is the time delay between a user's action and the resulting response in a computer system or network. It's often measured in milliseconds and can be thought of as the "lag" between sending a request for data and receiving the response, with lower latency indicating a faster, more responsive experience. This delay is affected by factors like distance, network congestion, and processing time, and it is critical for real-time applications like online gaming and video calls.
What it is
Delay: Latency is the time lag that occurs between a request being initiated and a response being received.
Round-trip time: It is also defined as the total time it takes for a packet of data to travel from its source to its destination and back again.
Examples: In networking, it's the time it takes for data to travel from your device to a server and back. For a database, it can be the time it takes to write data.