SlideShare a Scribd company logo
Redis to Solve Complex Scale Problems
Abhishek Jain, Prashant Kumar
Engineering, Platforms @Myntra
PRESENTED
BY
1 Why Redis?
2 Scalable Segment Service
3 Scalable Mobile Verification Platform
Agenda:
4
5
Scalable A/B Test Platform
Redis as a Managed Service
PRESENTED
BY
• Turn underutilised resources on a server (CPU/RAM) into valuable resources.
• Scale beyond a single instance of cache, if more headroom is required, while
some other caching services such as memache cannot.
• Regular backups at disk to recover and get boot-up with minimal loss of data.
• Minimal memory fragmentation, to allow better reads.
• Ability to setup a cluster which helps with data sharding.
• Setting up user defined max-memory usage.
• User defined policies to either stop or evict data based on recent usages or expiry.
Why Redis?
PRESENTED
BY
Any B2C product will have user segmentation to perform A/B Testing, Personalization
or any behavioral analysis, certain analysis leads to create new segments as well
• Support very high read throughput, RPM: ~5mil
• latency should not be more than 5ms
• Service should be scalable to support for next few years
Redis for Scalable Segment Service
PRESENTED
BY
Redis seemed to fit the bill perfectly here, as it fulfills all our requirements here.
• Challenge: During writes almost entire redis database (keys) updated. Read throughput affected
during updates.
• Solution:
⎼ Before any write could happen at redis, we put up a queue (kafka), which throttles writes
⎼ Read and Write pools of redis connections were made separate.
Redis for Scalable Segment Service
PRESENTED
BY
Mobile verification via OTP is a popular mechanism to perform authentication for
different purposes, like Sign-In, 2 Factor Auth etc.
• OTP generation, Large scale Read/Writes, Time Bound deliveries were top level challenges
• Store OTP in RDBMS for high consistency. What if RDBMS goes down?
• RPM to serve: ~100k
• What if number of request doubles, or 10 times in next 5 years?
• How do we make it 99.999% available service? Should be highly consistent and reliable.
• We also wanted to persist those OTP sent against mobile number for other purposes, but not
within the transactional flow
Redis for Scalable Mobile Verification Platform
PRESENTED
BY
We introduced Augmented Data Store system
• Used Redis as a transient store & NoSQL DB for persistence and fallback option
• OTP data must expires in 15-20 minutes, so using ephemeral memory
• Redis works in cluster mode with Master-Slave, RF=1
• Redis helps in scale due to cluster mode, much better than any schema based DB
Redis for Scalable Mobile Verification Platform
PRESENTED
BY
In any B2C product, decision making is a tricky job, So A/B Testing experimentation
helps, and performing large scale A/B is complex because of concurrency, so
distributed lock comes in picture.
• Using redis locks to serve concurrent users creating A/B experiments
• Lock prevents multiple concurrent processes stepping on each other
• Many times locking over a request is required to make it transactional
Redis for Scalable A/B Test Platform
PRESENTED
BY
For creation of experiments
• Slotting concept, each experiment is associated with certain slots with each slot
containing a part of the population set
• If multiple concurrent users try to create/update, execution happens in an orderly
fashion while acquiring read and write locks over the slots.
Redis for Scalable A/B Test Platform
PRESENTED
BY
• 1-click-deploy redis cluster ready to boot up and use within a few
minutes.
• Auto-Monitoring setup, with cluster health checks, commands
monitoring, done via Graphana.
• Auto-backups with replication can also be configured with the setup
before deploying if required.
Redis as a Managed Service
Thank You!

More Related Content

What's hot (20)

PPTX
Redis presentation
Mohamed Mergawi
 
PDF
RedisConf17 - Explosion of Data at the Edge in Equinix
Redis Labs
 
PDF
Caching for Microservices Architectures: Session I
VMware Tanzu
 
PPTX
Accelerate Business Agility with PaaS
WSO2
 
PDF
How to create custom dashboards in Elastic Search / Kibana with Performance V...
PerformanceVision (previously SecurActive)
 
PPTX
RedisConf18 - Redis Cluster Provisioning with Kubernetes Service-Catalog Exte...
Redis Labs
 
PPTX
RedisConf17 - Smartwaiver - Using Redis for Kiosk Registration Command and Co...
Redis Labs
 
PPTX
Devops Days, 2019 - Charlotte
botsplash.com
 
PPTX
Redis TimeSeries
Redis Labs
 
PPTX
Redis Streams for Event-Driven Microservices
Redis Labs
 
PDF
The Road Most Traveled: A Kafka Story | Heikki Nousiainen, Aiven
HostedbyConfluent
 
PPTX
Micro service architecture
Ayyappan Paramesh
 
PDF
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
HostedbyConfluent
 
PDF
Redis Tames The Caching Herd: Jon Hyman
Redis Labs
 
PDF
Supercharge Your Real-time Event Processing with Neo4j's Streams Kafka Connec...
HostedbyConfluent
 
PPTX
Key Performance Indicators for Managing MongoDB and Recommended Production Co...
MongoDB
 
PPTX
Azure reference architectures
Masashi Narumoto
 
PPTX
Bootstrap SaaS startup using Open Source Tools
botsplash.com
 
PDF
Building Retry Architectures in Kafka with Compacted Topics | Matthew Zhou, V...
HostedbyConfluent
 
PDF
Workshop on CIFS / SMB Protocol Performance Analysis
PerformanceVision (previously SecurActive)
 
Redis presentation
Mohamed Mergawi
 
RedisConf17 - Explosion of Data at the Edge in Equinix
Redis Labs
 
Caching for Microservices Architectures: Session I
VMware Tanzu
 
Accelerate Business Agility with PaaS
WSO2
 
How to create custom dashboards in Elastic Search / Kibana with Performance V...
PerformanceVision (previously SecurActive)
 
RedisConf18 - Redis Cluster Provisioning with Kubernetes Service-Catalog Exte...
Redis Labs
 
RedisConf17 - Smartwaiver - Using Redis for Kiosk Registration Command and Co...
Redis Labs
 
Devops Days, 2019 - Charlotte
botsplash.com
 
Redis TimeSeries
Redis Labs
 
Redis Streams for Event-Driven Microservices
Redis Labs
 
The Road Most Traveled: A Kafka Story | Heikki Nousiainen, Aiven
HostedbyConfluent
 
Micro service architecture
Ayyappan Paramesh
 
Lessons from the field: Catalog of Kafka Deployments | Joseph Niemiec, Cloudera
HostedbyConfluent
 
Redis Tames The Caching Herd: Jon Hyman
Redis Labs
 
Supercharge Your Real-time Event Processing with Neo4j's Streams Kafka Connec...
HostedbyConfluent
 
Key Performance Indicators for Managing MongoDB and Recommended Production Co...
MongoDB
 
Azure reference architectures
Masashi Narumoto
 
Bootstrap SaaS startup using Open Source Tools
botsplash.com
 
Building Retry Architectures in Kafka with Compacted Topics | Matthew Zhou, V...
HostedbyConfluent
 
Workshop on CIFS / SMB Protocol Performance Analysis
PerformanceVision (previously SecurActive)
 

Similar to Solving Complex Scaling Problems by Prashant Kumar and Abhishek Jain of Myntra - Redis Day Bangalore 2020 (20)

PDF
Redis Everywhere - Sunshine PHP
Ricard Clau
 
PPTX
Microservices - Is it time to breakup?
Dave Nielsen
 
PDF
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
PPTX
Managing 50K+ Redis Databases Over 4 Public Clouds ... with a Tiny Devops Team
Redis Labs
 
PDF
RedisConf17 - Doing More With Redis - Ofer Bengal and Yiftach Shoolman
Redis Labs
 
PPTX
Add Redis to Postgres to Make Your Microservices Go Boom!
Dave Nielsen
 
PDF
Redis as a Cache Boosting Performance and Scalability
Inexture Solutions
 
PPTX
Redis Developers Day 2014 - Redis Labs Talks
Redis Labs
 
PPTX
Redis by-hari
Hari Bachala
 
PDF
Discover some "Big Data" architectural concepts with Redis
Maturin BADO
 
PPTX
RedisConf17 - Redis Enterprise: Continuous Availability, Unlimited Scaling, S...
Redis Labs
 
PPTX
Redis Labcamp
Angelo Simone Scotto
 
PDF
Redis vs Infinispan | DevNation Tech Talk
Red Hat Developers
 
PPTX
What's new with enterprise Redis - Leena Joshi, Redis Labs
Redis Labs
 
PPTX
Get more than a cache back! - ConFoo Montreal
Maarten Balliauw
 
PDF
Secure Redis Cluster At Box: Vova Galchenko, Ravitej Sistla
Redis Labs
 
PDF
Cassandra vs. Redis
Tim Lossen
 
PPTX
Testing at scale with Redis queues
AAron EvaNS
 
PPTX
Testing at scale with redis queues
AAron EvaNS
 
PDF
dba_lounge_Iasi: Everybody likes redis
Liviu Costea
 
Redis Everywhere - Sunshine PHP
Ricard Clau
 
Microservices - Is it time to breakup?
Dave Nielsen
 
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
Managing 50K+ Redis Databases Over 4 Public Clouds ... with a Tiny Devops Team
Redis Labs
 
RedisConf17 - Doing More With Redis - Ofer Bengal and Yiftach Shoolman
Redis Labs
 
Add Redis to Postgres to Make Your Microservices Go Boom!
Dave Nielsen
 
Redis as a Cache Boosting Performance and Scalability
Inexture Solutions
 
Redis Developers Day 2014 - Redis Labs Talks
Redis Labs
 
Redis by-hari
Hari Bachala
 
Discover some "Big Data" architectural concepts with Redis
Maturin BADO
 
RedisConf17 - Redis Enterprise: Continuous Availability, Unlimited Scaling, S...
Redis Labs
 
Redis Labcamp
Angelo Simone Scotto
 
Redis vs Infinispan | DevNation Tech Talk
Red Hat Developers
 
What's new with enterprise Redis - Leena Joshi, Redis Labs
Redis Labs
 
Get more than a cache back! - ConFoo Montreal
Maarten Balliauw
 
Secure Redis Cluster At Box: Vova Galchenko, Ravitej Sistla
Redis Labs
 
Cassandra vs. Redis
Tim Lossen
 
Testing at scale with Redis queues
AAron EvaNS
 
Testing at scale with redis queues
AAron EvaNS
 
dba_lounge_Iasi: Everybody likes redis
Liviu Costea
 
Ad

More from Redis Labs (20)

PPTX
Redis Day Bangalore 2020 - Session state caching with redis
Redis Labs
 
PPTX
Protecting Your API with Redis by Jane Paek - Redis Day Seattle 2020
Redis Labs
 
PPTX
The Happy Marriage of Redis and Protobuf by Scott Haines of Twilio - Redis Da...
Redis Labs
 
PPTX
Redis for Data Science and Engineering by Dmitry Polyakovsky of Oracle
Redis Labs
 
PPTX
Anatomy of a Redis Command by Madelyn Olson of Amazon Web Services - Redis Da...
Redis Labs
 
PPTX
Building a Multi-dimensional Analytics Engine with RedisGraph by Matthew Goos...
Redis Labs
 
PPTX
RediSearch 1.6 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
PPTX
RedisGraph 2.0 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
PPTX
RedisTimeSeries 1.2 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
PPTX
RedisAI 0.9 by Sherin Thomas of Tensorwerk - Redis Day Bangalore 2020
Redis Labs
 
PPTX
Rate-Limiting 30 Million requests by Vijay Lakshminarayanan and Girish Koundi...
Redis Labs
 
PDF
Three Pillars of Observability by Rajalakshmi Raji Srinivasan of Site24x7 Zoh...
Redis Labs
 
PPTX
Redis as a High Scale Swiss Army Knife by Rahul Dagar and Abhishek Gupta of G...
Redis Labs
 
PPTX
Deploying Redis as a Sidecar in Kubernetes by Janakiram MSV - Redis Day Banga...
Redis Labs
 
PPTX
Moving Beyond Cache by Yiftach Shoolman - Redis Day Bangalore 2020
Redis Labs
 
PPTX
Real-time GeoSearching at Scale with RediSearch by Apoorva Gaurav and Ronil M...
Redis Labs
 
PPTX
Build a High-performance Partner Analytics Platform by Ashish Jadhav and Neer...
Redis Labs
 
PPTX
Build a Deep Learning App with Tensorflow & Redis by Jayesh Ahire and Sherin ...
Redis Labs
 
PPTX
Accelerating Recommendations at Viu by Amarendra Kumar and Kulbhushan Pachaur...
Redis Labs
 
PPTX
A Low-latency Logging Framework by Rajat Panwar of HolidayMe - Redis Day Bang...
Redis Labs
 
Redis Day Bangalore 2020 - Session state caching with redis
Redis Labs
 
Protecting Your API with Redis by Jane Paek - Redis Day Seattle 2020
Redis Labs
 
The Happy Marriage of Redis and Protobuf by Scott Haines of Twilio - Redis Da...
Redis Labs
 
Redis for Data Science and Engineering by Dmitry Polyakovsky of Oracle
Redis Labs
 
Anatomy of a Redis Command by Madelyn Olson of Amazon Web Services - Redis Da...
Redis Labs
 
Building a Multi-dimensional Analytics Engine with RedisGraph by Matthew Goos...
Redis Labs
 
RediSearch 1.6 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
RedisGraph 2.0 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
RedisTimeSeries 1.2 by Pieter Cailliau - Redis Day Bangalore 2020
Redis Labs
 
RedisAI 0.9 by Sherin Thomas of Tensorwerk - Redis Day Bangalore 2020
Redis Labs
 
Rate-Limiting 30 Million requests by Vijay Lakshminarayanan and Girish Koundi...
Redis Labs
 
Three Pillars of Observability by Rajalakshmi Raji Srinivasan of Site24x7 Zoh...
Redis Labs
 
Redis as a High Scale Swiss Army Knife by Rahul Dagar and Abhishek Gupta of G...
Redis Labs
 
Deploying Redis as a Sidecar in Kubernetes by Janakiram MSV - Redis Day Banga...
Redis Labs
 
Moving Beyond Cache by Yiftach Shoolman - Redis Day Bangalore 2020
Redis Labs
 
Real-time GeoSearching at Scale with RediSearch by Apoorva Gaurav and Ronil M...
Redis Labs
 
Build a High-performance Partner Analytics Platform by Ashish Jadhav and Neer...
Redis Labs
 
Build a Deep Learning App with Tensorflow & Redis by Jayesh Ahire and Sherin ...
Redis Labs
 
Accelerating Recommendations at Viu by Amarendra Kumar and Kulbhushan Pachaur...
Redis Labs
 
A Low-latency Logging Framework by Rajat Panwar of HolidayMe - Redis Day Bang...
Redis Labs
 
Ad

Recently uploaded (20)

PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PPTX
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PPTX
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
In From the Cold: Open Source as Part of Mainstream Software Asset Management
Shane Coughlan
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
Agentic Automation: Build & Deploy Your First UiPath Agent
klpathrudu
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Top Agile Project Management Tools for Teams in 2025
Orangescrum
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Help for Correlations in IBM SPSS Statistics.pptx
Version 1 Analytics
 
SAP Firmaya İade ABAB Kodları - ABAB ile yazılmıl hazır kod örneği
Salih Küçük
 

Solving Complex Scaling Problems by Prashant Kumar and Abhishek Jain of Myntra - Redis Day Bangalore 2020

  • 1. Redis to Solve Complex Scale Problems Abhishek Jain, Prashant Kumar Engineering, Platforms @Myntra
  • 2. PRESENTED BY 1 Why Redis? 2 Scalable Segment Service 3 Scalable Mobile Verification Platform Agenda: 4 5 Scalable A/B Test Platform Redis as a Managed Service
  • 3. PRESENTED BY • Turn underutilised resources on a server (CPU/RAM) into valuable resources. • Scale beyond a single instance of cache, if more headroom is required, while some other caching services such as memache cannot. • Regular backups at disk to recover and get boot-up with minimal loss of data. • Minimal memory fragmentation, to allow better reads. • Ability to setup a cluster which helps with data sharding. • Setting up user defined max-memory usage. • User defined policies to either stop or evict data based on recent usages or expiry. Why Redis?
  • 4. PRESENTED BY Any B2C product will have user segmentation to perform A/B Testing, Personalization or any behavioral analysis, certain analysis leads to create new segments as well • Support very high read throughput, RPM: ~5mil • latency should not be more than 5ms • Service should be scalable to support for next few years Redis for Scalable Segment Service
  • 5. PRESENTED BY Redis seemed to fit the bill perfectly here, as it fulfills all our requirements here. • Challenge: During writes almost entire redis database (keys) updated. Read throughput affected during updates. • Solution: ⎼ Before any write could happen at redis, we put up a queue (kafka), which throttles writes ⎼ Read and Write pools of redis connections were made separate. Redis for Scalable Segment Service
  • 6. PRESENTED BY Mobile verification via OTP is a popular mechanism to perform authentication for different purposes, like Sign-In, 2 Factor Auth etc. • OTP generation, Large scale Read/Writes, Time Bound deliveries were top level challenges • Store OTP in RDBMS for high consistency. What if RDBMS goes down? • RPM to serve: ~100k • What if number of request doubles, or 10 times in next 5 years? • How do we make it 99.999% available service? Should be highly consistent and reliable. • We also wanted to persist those OTP sent against mobile number for other purposes, but not within the transactional flow Redis for Scalable Mobile Verification Platform
  • 7. PRESENTED BY We introduced Augmented Data Store system • Used Redis as a transient store & NoSQL DB for persistence and fallback option • OTP data must expires in 15-20 minutes, so using ephemeral memory • Redis works in cluster mode with Master-Slave, RF=1 • Redis helps in scale due to cluster mode, much better than any schema based DB Redis for Scalable Mobile Verification Platform
  • 8. PRESENTED BY In any B2C product, decision making is a tricky job, So A/B Testing experimentation helps, and performing large scale A/B is complex because of concurrency, so distributed lock comes in picture. • Using redis locks to serve concurrent users creating A/B experiments • Lock prevents multiple concurrent processes stepping on each other • Many times locking over a request is required to make it transactional Redis for Scalable A/B Test Platform
  • 9. PRESENTED BY For creation of experiments • Slotting concept, each experiment is associated with certain slots with each slot containing a part of the population set • If multiple concurrent users try to create/update, execution happens in an orderly fashion while acquiring read and write locks over the slots. Redis for Scalable A/B Test Platform
  • 10. PRESENTED BY • 1-click-deploy redis cluster ready to boot up and use within a few minutes. • Auto-Monitoring setup, with cluster health checks, commands monitoring, done via Graphana. • Auto-backups with replication can also be configured with the setup before deploying if required. Redis as a Managed Service