|
|
|
|
|
by jasonwatkinspdx
632 days ago
|
|
My experience with Redis is similar, where it often becomes a trap because people misunderstand it's strengths and weaknesses. I think it's best to consider Redis a cache with richer primitives. It excels at this and used appropriately will be both fast and solid. But then people start wanting to use it for things that don't fit into the primary rdbms. Soon you have a job queue, locks of various sorts, etc. And then it just becomes a matter of time until performance crosses a cliff, or the thing falls down for some other reason, and you're left with a pretty ugly mess to restore things, usually resulting in just accepting some data loss. It takes some discipline to avoid this, because it happens easily by increments. As for SQLite's performance, besides avoiding network overhead, a lot of people underestimate serialization and deserialization costs. Even though Redis uses a pretty minimalist protocol it adds up. With SQLite a lot of things boil down to an in process memcopy. |
|