Live data from Hacker News

How Fast can A Single Instance of Redis be?

docs.keydb.dev

31–40 of 79 posts

Re: How Fast can A Single Instance of Redis be?

#32

I'd like to see the client code, see how it manages backpressure. (I'm probably being thick; the benchmark code is probably linked and I'm just not seeing it.) I recently maintained some nodejs & expressjs stuff. Neither the Redis clients (or the original developers of our stuff) have any concept of backpressure (throttling). In our case, HTTP request received would cause a Redis request. For whatever reason, express…

The benchmark client is memtier: https://github.com/RedisLabs/memtier_benchmark

Re: How Fast can A Single Instance of Redis be?

#33

"Redis is known as one of the fastest databases out there." Redis is not a database. Let's begin with that.

Depends on how you define database. Wikipedia starts with...

”A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques." [1]

...which makes Redis sound like a database to me. If I am not technically correct, feel to educate me.

Side note: I try to focus on what problems we're trying to solve, because it's hard enough to get people to sync up on that. I've found focusing on being right is inversely proportional to the health of my relationships.

[1] https://en.wikipedia.org/wiki/Database

Re: How Fast can A Single Instance of Redis be?

#34
post #26
post #18

Earlier quoted context omitted.

Most of the bottleneck is in the TCP stack. That's why user mode networking like this module does helps a lot.

TCP latency is on the order of dozens of us, not ms. Valid question I'd say.

TCP latency increases when you have high load and buffers in the way. Over 50% of CPU time is spent in the TCP stack for Redis, with the bulk of the rest in query parsing.

Re: How Fast can A Single Instance of Redis be?

#35

"Redis is known as one of the fastest databases out there." Redis is not a database. Let's begin with that.

Depends on how you define database. Wikipedia starts with... ”A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques." [1] ...which makes Redis sound like a database to me. If I am not technically correct, feel to educate me. Side note: I try to focus on wh…

Your filesystem then is a database. You can even stretch it to include your text editor. Redis is not a database.

Re: How Fast can A Single Instance of Redis be?

#36

Earlier quoted context omitted.

I assume the downtime is due to the HTTP server, not persistence.

That would be unusual. Most websites fall over due to a DB bottleneck long before the backends or HTTP servers see significant load.

The bulk of the CPU time is currently spent in node.js, running docusaurus.

Re: How Fast can A Single Instance of Redis be?

#38

Earlier quoted context omitted.

Depends on how you define database. Wikipedia starts with... ”A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques." [1] ...which makes Redis sound like a database to me. If I am not technically correct, feel to educate me. Side note: I try to focus on wh…

Your filesystem then is a database. You can even stretch it to include your text editor. Redis is not a database.

You could argue this endlessly from different perspectives, but it's not at all relevant to what the article actually discusses. They're comparing redis against itself, not other examples of things that might or might not be databases.

Re: How Fast can A Single Instance of Redis be?

#39

I'd like to see the client code, see how it manages backpressure. (I'm probably being thick; the benchmark code is probably linked and I'm just not seeing it.) I recently maintained some nodejs & expressjs stuff. Neither the Redis clients (or the original developers of our stuff) have any concept of backpressure (throttling). In our case, HTTP request received would cause a Redis request. For whatever reason, express…

I think maybe I've seen a similar issue and didn't know it? What's the right answer for that situation, node/express hitting redis which runs out of memory?

Re: How Fast can A Single Instance of Redis be?

#40

Earlier quoted context omitted.

Depends on how you define database. Wikipedia starts with... ”A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques." [1] ...which makes Redis sound like a database to me. If I am not technically correct, feel to educate me. Side note: I try to focus on wh…

Your filesystem then is a database. You can even stretch it to include your text editor. Redis is not a database.

If you use it as such, of course it is. Filesystem DBs been around forever. What point are you trying to make?
Post reply on HN