SlideShare a Scribd company logo
Redis Adaptor
Swapnil Bawaskar
@sbawaskar
(incubating)
• Redis Primer
• Need
• Implementation
• Advantages
• Roadmap
Agenda
2
Redis Primer
3
Data Structures Supported
• Strings
• List
• Hashes
• Sets
• SortedSets
• HyperLogLog
Redis Primer
4
Redis Commands
Redis Primer
5
redis>	SET	key1	"value"	
OK	
redis>	LPUSH	key2	"value"	
(integer)	1	
redis>	SADD	key3	"value"	
(integer)	1	
redis>	TYPE	key1	
string	
redis>	TYPE	key2	
list	
redis>	TYPE	key3	
set	
redis>
In Redis commands
• key refers to a data structure name
• Command determines the data structure type
Redis Cluster
6
Back in 2014
7
Y U No
8
Geode Implementation
9
Redis Adaptor
10
Redis
Client
Redis
Client
Redis
Client
Redis
Client
Redis Server
Redis Adaptor
11
Redis
Client
Redis
Client
Redis
Client
Redis
Client
Geode Server
Drop-in Replacement
Start Using GFSH
Redis Adaptor - Usage
12
gfsh>start	server	--name=server1	--redis-port=11211	
--redis-bind-address=localhost
Creates a region type PARTITION by default
• Change Using system property
gemfireredis.regiontype
gfsh>start	server	--name=server1	--redis-port=11211	
--J=-Dgemfireredis.regiontype=PARTITION_PERSISTENT
• Supports all Redis data structures
• Each data structure (except Strings) is
backed by a Geode Partitioned Region
• which is a horizontally scalable distributed
ConcurrentHashMap
• We create just one Partitioned Region for
storing all Strings
• Uses Geode’s OQL and indexes
Redis Adaptor - Implementation
13
• One Partitioned Region for
Each List
• Track “head” and “tail” position
in the Partitioned Region itself
as special entries
Future Exploration
• Embed the position in “Value”
• Place an index on the position,
should help with List Scan
Redis Adaptor - List
14
user dataposition
Key Value
• One Partitioned Region for
Each Sorted Set
• key is user data, value is user
provided score
• Index on score
Redis Adaptor - Sorted Set
15
scoreuser data
Key Value
Advantages
16
• Scalability
• Server side stored procedures
• Network Partitioning
• WAN replication
Advantages
17
• Scale Vertically
• Redis server is single threaded
• Geode server supports high concurrency
• Utilize CPUs on big boxes without having to
manage more instances
• Scale data structures - Horizontally
Scalability
18
• Redis lost 56% writes
during Network Partition*
• Geode servers fence
themselves
Network Partition
19
* Aphyr - https://aphyr.com/posts/283-jepsen-redis
• Data can be replicated to
other clusters over WAN
WAN Replication
20
WAN
Roadmap
21
• Implement “All” Commands
• String: SETRANGE (overwrites part of string)
• List: BLPOP, BRPOPLPUSH (Block/insert into another)
• Sorted Set: ZINTERSTORE (intersect multiple Sorted
Sets and store result in another)
• etc.
• Performance benchmark
• Optimize
• Geode API for these data structures?
Contribution Ideas
22
Questions?
23

More Related Content

PDF
Scaling Redis To 1M Ops/Sec: Jane Paek
PPTX
Managing 50K+ Redis Databases Over 4 Public Clouds ... with a Tiny Devops Team
PPTX
High-Volume Data Collection and Real Time Analytics Using Redis
PDF
Managing Redis with Kubernetes - Kelsey Hightower, Google
PDF
Troubleshooting redis
PPTX
Introduction to Redis
PDF
A Brief Introduction to Redis
PPT
Scaling Redis To 1M Ops/Sec: Jane Paek
Managing 50K+ Redis Databases Over 4 Public Clouds ... with a Tiny Devops Team
High-Volume Data Collection and Real Time Analytics Using Redis
Managing Redis with Kubernetes - Kelsey Hightower, Google
Troubleshooting redis
Introduction to Redis
A Brief Introduction to Redis

Viewers also liked (20)

PDF
GeoMesa LocationTech DC
PPTX
GeoMesa: Scalable Geospatial Analytics
PPTX
Архитектура Apache Ignite .NET
PDF
JBoss Community Introduction
KEY
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
PDF
Building Wall St Risk Systems with Apache Geode
PDF
Apache conbigdata2015 christiantzolov-federated sql on hadoop and beyond- lev...
PDF
Apache Geode - The First Six Months
PDF
Infinispan Servers: Beyond peer-to-peer data grids
KEY
Infinspan: In-memory data grid meets NoSQL
PDF
Infinispan from POC to Production
PDF
Hacking Infinispan: the new open source data grid meets NoSQL
PDF
Keeping Infinispan In Shape: Highly-Precise, Scalable Data Eviction
PPTX
Apache geode
PDF
Introduction to Apache Geode (Cork, Ireland)
PPTX
Apache Geode Clubhouse - WAN-based Replication
PDF
인메모리 클러스터링 아키텍처
ODP
Infinispan and Enterprise Data Grid
PDF
Building Apps with Distributed In-Memory Computing Using Apache Geode
PDF
Data Grids and Data Caching
GeoMesa LocationTech DC
GeoMesa: Scalable Geospatial Analytics
Архитектура Apache Ignite .NET
JBoss Community Introduction
Infinispan, Data Grids, NoSQL, Cloud Storage and JSR 347
Building Wall St Risk Systems with Apache Geode
Apache conbigdata2015 christiantzolov-federated sql on hadoop and beyond- lev...
Apache Geode - The First Six Months
Infinispan Servers: Beyond peer-to-peer data grids
Infinspan: In-memory data grid meets NoSQL
Infinispan from POC to Production
Hacking Infinispan: the new open source data grid meets NoSQL
Keeping Infinispan In Shape: Highly-Precise, Scalable Data Eviction
Apache geode
Introduction to Apache Geode (Cork, Ireland)
Apache Geode Clubhouse - WAN-based Replication
인메모리 클러스터링 아키텍처
Infinispan and Enterprise Data Grid
Building Apps with Distributed In-Memory Computing Using Apache Geode
Data Grids and Data Caching
Ad

Similar to Redis adaptor for Apache Geode (20)

PDF
#GeodeSummit - Redis to Geode Adaptor
PDF
Redis basics
PPTX
Redis and its Scaling and Obersvability
PPTX
10 Ways to Scale with Redis - LA Redis Meetup 2019
PPTX
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
KEY
Building Scalable, Distributed Job Queues with Redis and Redis::Client
PPT
Introduction to redis
PDF
Introduction to Redis
PPTX
PDF
Orchestrating Redis & K8s Operators
PPTX
Developing a Redis Module - Hackathon Kickoff
PDF
RedisConf18 - Active-Active Geo-Distributed Apps with Redis CRDTs (conflict f...
PPTX
REDIS327
PPTX
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
PDF
An Introduction to Redis for Developers.pdf
PDF
Redis modules 101
ODP
Redis - Your Magical superfast database
PPTX
PDF
REDIS intro and how to use redis
#GeodeSummit - Redis to Geode Adaptor
Redis basics
Redis and its Scaling and Obersvability
10 Ways to Scale with Redis - LA Redis Meetup 2019
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
Building Scalable, Distributed Job Queues with Redis and Redis::Client
Introduction to redis
Introduction to Redis
Orchestrating Redis & K8s Operators
Developing a Redis Module - Hackathon Kickoff
RedisConf18 - Active-Active Geo-Distributed Apps with Redis CRDTs (conflict f...
REDIS327
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
An Introduction to Redis for Developers.pdf
Redis modules 101
Redis - Your Magical superfast database
REDIS intro and how to use redis
Ad

More from Swapnil Bawaskar (6)

PDF
Scalable IoT platform
PDF
Geode - Day 3
PDF
Geode - Day 2
PDF
Geode - Day 1
PPTX
Geode introduction
PPTX
Geode transactions
Scalable IoT platform
Geode - Day 3
Geode - Day 2
Geode - Day 1
Geode introduction
Geode transactions

Recently uploaded (20)

PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
history of c programming in notes for students .pptx
PDF
System and Network Administration Chapter 2
PPTX
assetexplorer- product-overview - presentation
PPTX
L1 - Introduction to python Backend.pptx
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
Transform Your Business with a Software ERP System
PDF
Digital Strategies for Manufacturing Companies
PPT
Introduction Database Management System for Course Database
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Computer Software and OS of computer science of grade 11.pptx
Design an Analysis of Algorithms I-SECS-1021-03
Understanding Forklifts - TECH EHS Solution
Navsoft: AI-Powered Business Solutions & Custom Software Development
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Odoo Companies in India – Driving Business Transformation.pdf
history of c programming in notes for students .pptx
System and Network Administration Chapter 2
assetexplorer- product-overview - presentation
L1 - Introduction to python Backend.pptx
Wondershare Filmora 15 Crack With Activation Key [2025
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Transform Your Business with a Software ERP System
Digital Strategies for Manufacturing Companies
Introduction Database Management System for Course Database
2025 Textile ERP Trends: SAP, Odoo & Oracle
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool

Redis adaptor for Apache Geode