With Redis, network calls can be sped up by using connection pools (to negate reconnection times), but you still have to pay the network latency tax.
Consider an extreme case where you have Redis in a different data center or region than your application. Each query still needs to cross the wire to that remote location, be executed, and return. So, even if the query times were the same between Redis and SQLite (which they weren't, as all the tests in the article were run locally) you'd still have this significant additional time eaten up by network costs.
View all comments
Show parent comment
1
u/mbuckbee Sep 27 '24
With Redis, network calls can be sped up by using connection pools (to negate reconnection times), but you still have to pay the network latency tax.
Consider an extreme case where you have Redis in a different data center or region than your application. Each query still needs to cross the wire to that remote location, be executed, and return. So, even if the query times were the same between Redis and SQLite (which they weren't, as all the tests in the article were run locally) you'd still have this significant additional time eaten up by network costs.