11684 shaares
392 private links
392 private links
5 results
tagged
redis
Why? Costs, operational complexity, data consistency
- Caching with UNLOGGED table (that I've also found in other posts)
- Pub/Sub with LISTEN/NOTIFY
- Job Queues with SKIP LOCKED
- Rate Limiting is also possible
- Sessions with JSONB
PostgresSQL ist nearly 2 times slower compared to Redis, but is it worth it?
When to keep Redis?
- extreme performance needed
- using redis-specific data structures
Migration strategy:
- Side by side
- Read from Postgres
- Write to Postgres only
- Remove Redis
and Prisma provide for example typedSQL to have a smooth integration with Typescript.
Redis is faster, but they have the same order of magnitude. Maybe +1 order for Postgres in same examples.
The comparison of a lot of data does not made though.
A basic reimplementation of Redis. I like to use SQLite for it.
A description of a modern website architecture. It uses a bunch of modern technologies, and the author explains why they are useful in its case.
Antirez bequeaths the Yossi and Oran