Dextar

Dextar Empowering businesses through technology. We deliver innovative IT solutions, reliable support, and digital transformation that drives growth.

How Redis worksGetting a bit technical — here’s a simplified breakdown of the internal mechanics of Redis.• In-memory st...
08/11/2025

How Redis works

Getting a bit technical — here’s a simplified breakdown of the internal mechanics of Redis.

• In-memory store – Redis keeps data in RAM, so reads/writes bypass slower disk access.
• Single-threaded core (for commands) – Many operations run in a single thread but are extremely efficient; non-blocking I/O and event loop handle concurrency.
• Persistence options:

RDB (snapshotting): takes snapshots of dataset at intervals.

AOF (Append-Only File): logs each write operation; can be configured for fsync frequency.
• Data Structures: Strings, Lists, Sets, Sorted Sets, Hashes (and with modules even Streams, Graphs, JSON).
• Replication & high availability: primary/replica setups, clustering, sharding.
• Eviction/expiry policies: When memory hits max, Redis can evict keys based on policy (LRU, LFU etc).

🔍 What this means for you as a developer:
• Choose your persistence mode based on durability vs performance trade-off.
• Monitor memory usage and set appropriate maxmemory/eviction settings.
• Leverage the right data structure for your use-case: e.g., Sorted Sets for a leaderboard, Lists for a queue.

Stay tuned: next post I’ll cover common use-cases & best practices with Redis in production.

Address

Mirpur/2
Dhaka
1216

Opening Hours

Monday 09:00 - 21:00
Tuesday 09:00 - 21:00
Wednesday 09:00 - 21:00
Thursday 09:00 - 21:00
Friday 09:00 - 21:00
Saturday 09:00 - 21:00
Sunday 09:00 - 21:00

Telephone

+8801329570021

Alerts

Be the first to know and let us send you an email when Dextar posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Dextar:

Share