Interview practice question
Storing shopping carts in Redis
Backend Engineering · NoSQL and Redis · Beginner
Would you store shopping carts in Redis? How would you design it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Hash per cart: product_id → quantity.
- TTL for abandoned guest carts.
- Persistence/replication for durability.
- Merge guest cart on login.
- Or durable DB for logged-in users.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.