# 7 types of Redis latency and how to fix it

DevFeed: [7 types of Redis latency and how to fix it](<https://devfeed.tech/articles/7-types-of-redis-latency-and-how-to-fix-it-44866.md>)

Original publisher: [Read original article](<https://www.netdata.cloud/blog/7-types-of-redis-latency/>)

Published: 2022-10-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Netdata](<https://devfeed.tech/sources/blog-on-netdata.md>)

Topics: [Latency](<https://devfeed.tech/topics/latency.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Network](<https://devfeed.tech/topics/network.md>), [client](<https://devfeed.tech/topics/client.md>), [Server](<https://devfeed.tech/topics/server.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [Unix](<https://devfeed.tech/topics/unix.md>), [virtualization](<https://devfeed.tech/topics/virtualization.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [cases](<https://devfeed.tech/tags/cases.md>), [cli](<https://devfeed.tech/tags/cli.md>), [client](<https://devfeed.tech/tags/client.md>), [delay](<https://devfeed.tech/tags/delay.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [domain-sockets](<https://devfeed.tech/tags/domain-sockets.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [latency](<https://devfeed.tech/tags/latency.md>), [network](<https://devfeed.tech/tags/network.md>), [redis](<https://devfeed.tech/tags/redis.md>), [server](<https://devfeed.tech/tags/server.md>), [test](<https://devfeed.tech/tags/test.md>), [unix-domain-socket](<https://devfeed.tech/tags/unix-domain-socket.md>), [virtualization](<https://devfeed.tech/tags/virtualization.md>)

## AI overview

This tutorial explains seven forms of Redis latency, including intrinsic latency from the operating environment, network latency between clients and servers, and command latency caused by slow operations. It also describes ways to measure and reduce latency, such as using pipelining, Unix domain sockets, long-lived connections, and avoiding heavily loaded virtualized environments.

## Source excerpt

Redis is designed to be fast. In most cases, it is. However, there are times when Redis may be slow, due to network issues, disk latency, or other factors. When this happens, it is important to be able to detect the slow down and investigate the cause of Redis latency. Redis & latency Latency is the maximum delay between the time a client issues a command and the time the reply to the command is received by the client. Redis has strict requirements on average and worst case latency.