Redis Interview Questions 2026

Published July 22, 2026 · Updated July 22, 2026

36 Redis interview questions from Swiggy, Zomato, Razorpay, PhonePe. All difficulty levels, all roles. Upvoted by engineers who were asked them.

36 questions
Companies: Swiggy, Zomato, Razorpay, PhonePe
2087 upvotes

Redis Questions by Company

Swiggy (6)

Swiggy Hard System Design round KafkaRedisAWS

Design Swiggy's real-time order tracking system. A customer should see their delivery agent's location update every 5 seconds on a map. Cover: location ingestion from agents, WebSocket vs SSE for pushing updates to clients, data store choices, and how you scale to 100k concurrent orders during peak hours.

↑ 63 upvotes · 62 engineers asked this · SDE2
Swiggy Hard System Design round ElasticsearchRedisDistributed Systems

Design Swiggy's restaurant search and ranking system. How do you index 200k restaurants? Discuss full-text search (Elasticsearch), geospatial filtering, personalised ranking signals (past orders, ratings, delivery time), and how to refresh the index when a restaurant updates its menu.

↑ 51 upvotes · 48 engineers asked this · SDE2
Swiggy Hard System Design round RedisKafkaDistributed Systems

Design Swiggy's delivery partner assignment algorithm. When an order is placed, how do you assign the optimal nearby delivery partner within 2 minutes considering distance, current load, and restaurant prep time?

↑ 61 upvotes · 40 engineers asked this · SDE2
Swiggy Medium Technical round RedisJavaPython

Implement a rate limiter for Swiggy's API gateway using the token bucket algorithm. Handle 1000 requests/second per user. Code the solution and explain how you'd deploy it across multiple API servers with Redis.

↑ 49 upvotes · 30 engineers asked this · SDE1
Swiggy Hard System Design round KafkaRedisAWS

Design Swiggy's notification system. When an order status changes (Confirmed, Picked Up, Arriving), send push notification, SMS, and in-app notification reliably with at-least-once delivery. Cover fan-out and handling inactive devices.

↑ 53 upvotes · 33 engineers asked this · SDE2
Swiggy Medium Technical round PostgreSQLRedisJava

Design the data model for Swiggy's menu system. A restaurant has categories, items, add-ons, variants, and availability windows (breakfast/lunch/dinner). How do you model this in PostgreSQL and handle real-time menu updates?

↑ 48 upvotes · 28 engineers asked this · SDE2

Zomato (3)

Zomato Hard System Design round KafkaRedisAWS

Design Zomato's surge pricing engine. When demand spikes (rain, IPL final), delivery fees increase automatically. Cover: demand signals, pricing formula, fairness constraints, A/B testing pricing strategies, and how to avoid customer backlash.

↑ 49 upvotes · 47 engineers asked this · SDE2
Zomato Hard System Design round KafkaRedisDistributed Systems

Design Zomato's delivery time prediction system. Before placing an order, show "Delivers in 35 minutes". The estimate must account for restaurant preparation time, distance, traffic, and number of parallel orders the partner is handling.

↑ 62 upvotes · 40 engineers asked this · SDE2
Zomato Hard System Design round KafkaPostgreSQLRedis

Design Zomato Pro (subscription). Members get free delivery, discounts, and priority support. Cover: subscription lifecycle, prorated upgrades/downgrades, cohort-based analytics to measure retention, and how you handle payment failures.

↑ 50 upvotes · 31 engineers asked this · SDE2

Razorpay (3)

Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.

↑ 72 upvotes · 71 engineers asked this · SDE2
Razorpay Hard System Design round KafkaPostgreSQLRedis

Design Razorpay's payout system (RazorpayX). Businesses send bulk payouts to thousands of vendor accounts simultaneously. Cover: batching, bank API rate limits, real-time status tracking, and failure handling.

↑ 61 upvotes · 39 engineers asked this · SDE2
Razorpay Hard System Design round KafkaRedisPostgreSQL

Design Razorpay's dashboard for merchants. A merchant wants to see real-time revenue, transaction success rates, and refund trends. How do you aggregate millions of transactions into live charts with under 5-second latency?

↑ 49 upvotes · 30 engineers asked this · SDE2

PhonePe (5)

PhonePe Hard System Design round KafkaDistributed SystemsPostgreSQL

Design PhonePe's UPI transaction system to handle 1 billion transactions per day. Cover: request routing to the correct bank, NPCI integration, handling duplicate transactions, consistency vs availability trade-offs, and how you build a reliable audit trail for regulatory compliance.

↑ 89 upvotes · 89 engineers asked this · SDE2
PhonePe Hard System Design round Distributed SystemsKafkaRedis

Design PhonePe's switch - the internal routing layer that forwards UPI requests to the correct bank. It must be highly available (99.999%), handle 50k TPS, and complete each request within 30 seconds (NPCI timeout). Cover: circuit breakers, retries, and bank-specific timeouts.

↑ 66 upvotes · 43 engineers asked this · SDE2
PhonePe Hard Technical round PostgreSQLRedisJava

Explain how PhonePe handles transaction deduplication. A user taps "Pay" twice due to network lag. The same debit must not happen twice. Walk through idempotency at the API level, database level, and bank integration level.

↑ 55 upvotes · 35 engineers asked this · SDE2
PhonePe Hard System Design round KafkaPostgreSQLRedis

Design PhonePe's merchant settlement system. Thousands of merchants receive daily settlements of their collected payments minus fees. How do you compute net payables, batch into bank transfers, and provide a reconciliation report?

↑ 54 upvotes · 33 engineers asked this · SDE2
PhonePe Medium Technical round 2-5 yearsRedis

You use Redis to cache OTPs with a 5-minute TTL. How does Redis actually expire keys internally — does it scan the whole keyspace on a timer?

↑ 18 upvotes · 10 engineers asked this · SDE2

Paytm (2)

Paytm Hard System Design round MySQLRedisDistributed Systems

Design Paytm's wallet system that supports deposits, withdrawals, peer-to-peer transfers, and merchant payments. Ensure ACID properties for all transfers, discuss optimistic vs pessimistic locking, and explain how you handle a split-brain scenario where two nodes disagree on a wallet balance.

↑ 58 upvotes · 57 engineers asked this · SDE2
Paytm Hard System Design round KafkaRedisPostgreSQL

Design Paytm's cashback system. When a user completes a transaction, they may receive cashback based on complex rules (merchant, time, amount, user segment). The cashback is credited to their wallet. Cover: rule engine, deduplication, and fraud prevention.

↑ 56 upvotes · 36 engineers asked this · SDE2

Uber (5)

Uber Hard System Design round Distributed SystemsRedisKafka

Design Uber's driver-rider matching system. How do you match the nearest available driver to a rider within 200ms at global scale? Cover: geospatial indexing (H3/S2), the dispatch algorithm, how you handle supply-demand imbalances, and what happens when a matched driver rejects the trip.

↑ 99 upvotes · 98 engineers asked this · SDE2
Uber Hard System Design round KafkaRedisDistributed Systems

Design Uber's dynamic pricing (surge) system. When supply is low and demand is high in a geofenced zone, prices increase automatically. Explain the data pipeline, the pricing model, how you prevent oscillations (price going up → drivers rush in → price drops → drivers leave), and regulatory constraints.

↑ 75 upvotes · 74 engineers asked this · SDE2
Uber Hard System Design round Distributed SystemsRedisKafka

Design Uber Eats' order batching system. A single delivery partner picks up orders from multiple nearby restaurants and delivers to multiple customers in one trip. How do you optimise the route and assignment?

↑ 62 upvotes · 41 engineers asked this · SDE2
Uber Hard Technical round Distributed SystemsRedis

Uber uses H3 hexagonal geospatial indexing. Explain why hexagons are better than squares or lat/lng grids for proximity searches. How do you find all drivers within 2km of a rider using H3 resolution levels?

↑ 54 upvotes · 34 engineers asked this · SDE2
Uber Medium Technical round 2-5 yearsRedis

You need to track the top 10 most active drivers by trip count, updated in real time. Which Redis data structure fits this, and why not just a plain hash with manual sorting?

↑ 19 upvotes · 11 engineers asked this · SDE2

Airbnb (2)

Airbnb Hard System Design round ElasticsearchRedisDistributed Systems

Design Airbnb's search and availability system. A guest searches for "Paris, 3 nights, 2 guests" and sees ranked listings. Cover: availability calendar storage, real-time inventory updates (when host blocks dates), geospatial search, ranking signals (price, reviews, Superhost status), and how you handle the thundering herd on popular dates.

↑ 64 upvotes · 62 engineers asked this · SDE2
Airbnb Hard System Design round PostgreSQLKafkaRedis

Design Airbnb's review system. Guests and hosts review each other after a stay. Reviews are revealed simultaneously to prevent bias. Cover: the blind reveal mechanism, preventing fake reviews, and abuse detection.

↑ 55 upvotes · 34 engineers asked this · SDE2

Google (1)

Google Hard System Design round Distributed SystemsRedis

Design Google Search autocomplete. As a user types "wea", suggest "weather", "weather today", "weather London". Cover: trie vs inverted index, personalisation, freshness, latency budget (<100ms), and how you handle offensive query suggestions.

↑ 79 upvotes · 55 engineers asked this · SDE2

Flipkart (2)

Flipkart Hard System Design round ElasticsearchKafkaRedis

Design Flipkart's product search and ranking system. A user searches "wireless earphones under 2000". How do you retrieve, rank, and filter 10,000+ matching products in under 200ms?

↑ 63 upvotes · 41 engineers asked this · SDE2
Flipkart Hard Technical round JavaRedisPostgreSQL

Design a coupon/discount system for Flipkart Big Billion Days. The system must validate, apply, and prevent double-use of millions of coupons with high concurrency. Cover idempotency and distributed locking.

↑ 56 upvotes · 35 engineers asked this · SDE2

Meta (1)

Meta Hard System Design round Distributed SystemsKafkaRedis

Design Instagram Stories. A story disappears after 24 hours and is shown in a ring around profile pictures. Cover: upload pipeline, storage with TTL, efficient delivery to followers, and view count tracking at scale.

↑ 66 upvotes · 44 engineers asked this · SDE2

Oracle (1)

Oracle Hard System Design round Distributed SystemsRedisJava

Design Oracle Cloud's IAM (Identity and Access Management) system. Thousands of customers, each with their own users, groups, and policies. How do you evaluate a permission check in under 10ms for every API call?

↑ 56 upvotes · 34 engineers asked this · SDE2

LinkedIn (2)

LinkedIn Hard System Design round KafkaRedisDistributed Systems

Design LinkedIn's feed. Each user sees posts from their connections, pages they follow, and sponsored content. Posts must be ranked by relevance. Cover: fan-out-on-write vs fan-out-on-read, feed generation for users with 30k connections, and freshness.

↑ 67 upvotes · 44 engineers asked this · SDE2
LinkedIn Medium Technical round JavaRedis

How does LinkedIn's "Who viewed your profile" feature work? What data is stored, how long is it retained, and how do you provide the feature to free users (last 5 viewers) vs Premium (full list) without exposing premium-only data?

↑ 50 upvotes · 31 engineers asked this · SDE1

Stripe (1)

Stripe Hard System Design round 5–8 YearsSystem DesignDistributed SystemsRedis

Design a distributed rate limiter that works across 100 API servers. A user is allowed 1000 requests per minute.

↑ 127 upvotes · 101 engineers asked this · Senior SDE

LTIMindtree (1)

LTIMindtree Medium Technical round 5–8 YearsInterview ExperienceGCPRedis

How would you reduce application load and downtime using caching strategies?

↑ 13 upvotes · 2 engineers asked this · Senior SDE

Grab (1)

Grab Medium Technical round 2-5 yearsRedis

How does Redis's GEO command family (GEOADD, GEORADIUS) let you find nearby drivers efficiently, and what data structure underlies it?

↑ 18 upvotes · 9 engineers asked this · SDE2

Practice these questions with AI feedback

Get instant grading on your answers, identify your weak areas, and generate a personalised 14-day study plan — all free.

Build my study plan →

Redis questions at each company

Swiggy Redis PhonePe Redis Uber Redis

Frequently asked questions

Design Swiggy's real-time order tracking system. A customer should see their delivery agent's location update every 5 seconds on a map.
Design Swiggy's real-time order tracking system. A customer should see their delivery agent's location update every 5 seconds on a map. Cover: location ingestion from agents, WebSocket vs SSE for pushing updates to clients, data store choices, and how you scale to 100k concurrent orders during peak hours.
Design Swiggy's restaurant search and ranking system.
Design Swiggy's restaurant search and ranking system. How do you index 200k restaurants? Discuss full-text search (Elasticsearch), geospatial filtering, personalised ranking signals (past orders, ratings, delivery time), and how to refresh the index when a restaurant updates its menu.
Design Zomato's surge pricing engine.
Design Zomato's surge pricing engine. When demand spikes (rain, IPL final), delivery fees increase automatically. Cover: demand signals, pricing formula, fairness constraints, A/B testing pricing strategies, and how to avoid customer backlash.
Design Razorpay's payment retry system.
Design Razorpay's payment retry system. When a payment fails due to a transient error (bank timeout, network blip), how do you retry safely without double-charging the customer? Cover: idempotency keys, exponential backoff with jitter, dead-letter queues, and reconciliation with bank statements.
Design PhonePe's UPI transaction system to handle 1 billion transactions per day.
Design PhonePe's UPI transaction system to handle 1 billion transactions per day. Cover: request routing to the correct bank, NPCI integration, handling duplicate transactions, consistency vs availability trade-offs, and how you build a reliable audit trail for regulatory compliance.