Q31. What is the difference between Redis Pub/Sub and Streams?
Pub/Sub is fire-and-forget messaging. Publishers send to a channel and subscribers receive in real time, but messages are not stored. An offline subscriber misses them, a...
Technical Question Bank · Peer-Reviewed
Search and filter frequently asked interview questions across technical, programming, and behavioral domains. Tailor your interview preparation by difficulty for freshers or experienced developers (104 available).
Pub/Sub is fire-and-forget messaging. Publishers send to a channel and subscribers receive in real time, but messages are not stored. An offline subscriber misses them, a...
Sharding horizontally partitions a collection across mongos routers and shards. You choose a shard key, and MongoDB splits the key space into chunks distributed and balan...
A saga replaces a single ACID transaction across services with a sequence of local transactions, each publishing an event or invoking the next step. If a step fails, prev...
Lazy loading defers work until it is needed. For images, loading="lazy" and decoding="async" defer off-screen loads, but never lazy-load the LCP image because it delays t...
A trait defines shared behaviour: a set of method signatures a type can implement. Implementations can be written for types you did not define, as long as you own the tra...
Redis Cluster shards data across nodes using 16384 hash slots. Each key maps to a slot via CRC16(key) mod 16384, and slots are assigned to masters. Clients may query any ...
`IDisposable` provides deterministic release of unmanaged resources through `Dispose()`. The `using` statement or declaration guarantees `Dispose` runs even if an excepti...
My starting point is that a discount is a trade, never a gift. When a buyer asks for a lower price I first understand the reason. Is it budget reality, a competing quote,...
A lexer converts a character stream into tokens. A hand-written tokenizer scans one character at a time and skips whitespace. ```python def tokenize(src): tokens, i = [],...
Averages hide the shape of a distribution. Percentiles describe typical and extreme behaviour, which matters for user experience and capacity planning. For example, avera...
HireXTech uses essential storage to remember your study preferences and third-party advertising cookies via Google AdSense in compliance with GDPR. You can choose to enable essential cookies only or accept all cookies. Read our Privacy Policy.