SlideShare a Scribd company logo
Bitmaps
Introduction to Redis Data Structures:
What is Redis?
Open Source, NoSQL Database
Used by: Twitter, Pinterest, GitHub
Stores Advanced Data Structures
Client Support: Java, C, Node.js etc
Introduction to Redis Data Structures: Bitmaps
What are Bitmaps?
Also called Bit Arrays/Vectors
Helps map boolean information into a compact representation
Widely used when memory space is a premium
Largest Domain Support: 232 bits
Introduction to Redis Data Structures: Bitmaps
Common Use Cases for Bitmaps
Provide extreme savings when storing
information
Real Time Analytics (GetSpool Blog)
Large size MOOC
Space Efficient, High Performance
Boolean InformationIntroduction to Redis Data Structures: Bitmaps
Bit Operations in Redis
SETBIT
GETBIT
BITOP
BITCOUNT
BITPOS
Introduction to Redis Data Structures: Bitmaps
Internal Implementation
Redis strings are implemented as Binary
Safe Strings
Internally called Simple Dynamic String
(SDS)
native char[]
More Details hereIntroduction to Redis Data Structures: Bitmaps
Redis Sets vs Redis Bitmaps
Sets are easier to manage,
program & debug
Work well for most apps
Small to medium size data
structures
> 232 Bits Domain SizeIntroduction to Redis Data Structures: Bitmaps
Bitmaps are suitable over a large
number of keys
Depends on size & performance
of keys
Summary
Redis Bitmaps provide Useful & Powerful functionality when memory space is a
premium
Not supported directly but in the form of Redis Strings
Best for platforms that need real-time analytics and huge data sets likes
MOOCs
Prefer Redis Sets for Simple ScenariosIntroduction to Redis Data Structures: Bitmaps
Sign Up for a free 30 day Trial
Thanks for reading! Full Article here
Hosting & management for MongoDB® and Redis®. NoSQL management Simplified.
Click here for more information on Redis Hosting
Ad

Recommended

TYPO3 and CMIS
TYPO3 and CMIS
Olivier Dobberkau
 
A Gentle Introduction to Big Data
A Gentle Introduction to Big Data
Mehmet Ali Akyol
 
Consent , crypto and information infrastructure systems
Consent , crypto and information infrastructure systems
Anand Venkatanarayanan
 
FIWARE Global Summit - A Multi-database Plugin for the Orion FIWARE Context B...
FIWARE Global Summit - A Multi-database Plugin for the Orion FIWARE Context B...
FIWARE
 
Build an Open Source Data Lake For Data Scientists
Build an Open Source Data Lake For Data Scientists
Shawn Zhu
 
Introduction to Data Warehousing
Introduction to Data Warehousing
Ashfaaq Mahroof
 
Data Skipping Technology
Data Skipping Technology
Big Data Value Association
 
BHL Global Infrastructure - Vision
BHL Global Infrastructure - Vision
Chris Freeland
 
BigQuery for the Big Data win
BigQuery for the Big Data win
Ken Taylor
 
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo
 
iRODS/Dataverse Project by Jonathan Crabtree
iRODS/Dataverse Project by Jonathan Crabtree
datascienceiqss
 
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Ovidiu Farauanu
 
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
HPCC Systems
 
Google BigQuery Best Practices
Google BigQuery Best Practices
Matillion
 
Martin Willcox - What is a Data Lake, Anyway?
Martin Willcox - What is a Data Lake, Anyway?
Saratoga
 
Webinar: Cloud Storage vs. On-Premises Storage
Webinar: Cloud Storage vs. On-Premises Storage
Storage Switzerland
 
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Manuela Moroncini
 
Google Bigtable
Google Bigtable
GirdhareeSaran
 
Io stack software defined object storage
Io stack software defined object storage
ieeepondy
 
Computational Storage Services (WP7 ForgetIT 1st year review)
Computational Storage Services (WP7 ForgetIT 1st year review)
ForgetIT Project
 
Physical design relational_db_devanshu
Physical design relational_db_devanshu
Devanshu Shrivastava
 
From BigTable to HBase and back again
From BigTable to HBase and back again
Leonardo Gamas
 
Prologis: How Data Virtualization Enables Data Scientists
Prologis: How Data Virtualization Enables Data Scientists
Denodo
 
iRODS: Interoperability in Data Management
iRODS: Interoperability in Data Management
The HDF-EOS Tools and Information Center
 
BDE-BDVA Webinar: BDE Technical Overview
BDE-BDVA Webinar: BDE Technical Overview
BigData_Europe
 
Quick Intro to Google Cloud Technologies
Quick Intro to Google Cloud Technologies
Chris Schalk
 
Grid
Grid
dhruvnaik1112
 
Cloud services
Cloud services
Skyspanwireless
 
Introduction to Redis Data Structures: Sets
Introduction to Redis Data Structures: Sets
ScaleGrid.io
 
Introduction to Redis Data Structures: Hashes
Introduction to Redis Data Structures: Hashes
ScaleGrid.io
 

More Related Content

What's hot (20)

BigQuery for the Big Data win
BigQuery for the Big Data win
Ken Taylor
 
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo
 
iRODS/Dataverse Project by Jonathan Crabtree
iRODS/Dataverse Project by Jonathan Crabtree
datascienceiqss
 
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Ovidiu Farauanu
 
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
HPCC Systems
 
Google BigQuery Best Practices
Google BigQuery Best Practices
Matillion
 
Martin Willcox - What is a Data Lake, Anyway?
Martin Willcox - What is a Data Lake, Anyway?
Saratoga
 
Webinar: Cloud Storage vs. On-Premises Storage
Webinar: Cloud Storage vs. On-Premises Storage
Storage Switzerland
 
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Manuela Moroncini
 
Google Bigtable
Google Bigtable
GirdhareeSaran
 
Io stack software defined object storage
Io stack software defined object storage
ieeepondy
 
Computational Storage Services (WP7 ForgetIT 1st year review)
Computational Storage Services (WP7 ForgetIT 1st year review)
ForgetIT Project
 
Physical design relational_db_devanshu
Physical design relational_db_devanshu
Devanshu Shrivastava
 
From BigTable to HBase and back again
From BigTable to HBase and back again
Leonardo Gamas
 
Prologis: How Data Virtualization Enables Data Scientists
Prologis: How Data Virtualization Enables Data Scientists
Denodo
 
iRODS: Interoperability in Data Management
iRODS: Interoperability in Data Management
The HDF-EOS Tools and Information Center
 
BDE-BDVA Webinar: BDE Technical Overview
BDE-BDVA Webinar: BDE Technical Overview
BigData_Europe
 
Quick Intro to Google Cloud Technologies
Quick Intro to Google Cloud Technologies
Chris Schalk
 
Grid
Grid
dhruvnaik1112
 
Cloud services
Cloud services
Skyspanwireless
 
BigQuery for the Big Data win
BigQuery for the Big Data win
Ken Taylor
 
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo DataFest 2017: Multi-zone Data Virtualization for Data Lakes
Denodo
 
iRODS/Dataverse Project by Jonathan Crabtree
iRODS/Dataverse Project by Jonathan Crabtree
datascienceiqss
 
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Distributed Cache, bridging C++ to new technologies (Hazelcast)
Ovidiu Farauanu
 
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
Couchbase & HPCC Systems – A complete mobile & data platform in the enterprise
HPCC Systems
 
Google BigQuery Best Practices
Google BigQuery Best Practices
Matillion
 
Martin Willcox - What is a Data Lake, Anyway?
Martin Willcox - What is a Data Lake, Anyway?
Saratoga
 
Webinar: Cloud Storage vs. On-Premises Storage
Webinar: Cloud Storage vs. On-Premises Storage
Storage Switzerland
 
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Cloud Computing 2010 - Case history - Giancarlo Gaggero - DSI Europe s.r.l.
Manuela Moroncini
 
Io stack software defined object storage
Io stack software defined object storage
ieeepondy
 
Computational Storage Services (WP7 ForgetIT 1st year review)
Computational Storage Services (WP7 ForgetIT 1st year review)
ForgetIT Project
 
Physical design relational_db_devanshu
Physical design relational_db_devanshu
Devanshu Shrivastava
 
From BigTable to HBase and back again
From BigTable to HBase and back again
Leonardo Gamas
 
Prologis: How Data Virtualization Enables Data Scientists
Prologis: How Data Virtualization Enables Data Scientists
Denodo
 
BDE-BDVA Webinar: BDE Technical Overview
BDE-BDVA Webinar: BDE Technical Overview
BigData_Europe
 
Quick Intro to Google Cloud Technologies
Quick Intro to Google Cloud Technologies
Chris Schalk
 

Similar to Introduction to Redis Data Structures (20)

Introduction to Redis Data Structures: Sets
Introduction to Redis Data Structures: Sets
ScaleGrid.io
 
Introduction to Redis Data Structures: Hashes
Introduction to Redis Data Structures: Hashes
ScaleGrid.io
 
Redis data structure and Performance Optimization
Redis data structure and Performance Optimization
Knoldus Inc.
 
Use Redis in Odd and Unusual Ways
Use Redis in Odd and Unusual Ways
Itamar Haber
 
2_Redis.pptx very useful for begginers yes
2_Redis.pptx very useful for begginers yes
soufianbouktaib1
 
Redis/Lessons learned
Redis/Lessons learned
Tit Petric
 
Redis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
 
Introduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted Sets
ScaleGrid.io
 
Redis Modules - Redis India Tour - 2017
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
An Introduction to Redis for Developers.pdf
An Introduction to Redis for Developers.pdf
Stephen Lorello
 
Redis overview
Redis overview
Ahmad El-khuja
 
10 Ways to Scale with Redis - LA Redis Meetup 2019
10 Ways to Scale with Redis - LA Redis Meetup 2019
Dave Nielsen
 
Redis — The AK-47 of Post-relational Databases
Redis — The AK-47 of Post-relational Databases
Karel Minarik
 
Redis Workshop on Data Structures, Commands, Administration
Redis Workshop on Data Structures, Commands, Administration
HashedIn Technologies
 
An Introduction to Redis for .NET Developers.pdf
An Introduction to Redis for .NET Developers.pdf
Stephen Lorello
 
Redis and it's data types
Redis and it's data types
Aniruddha Chakrabarti
 
Redis introduction
Redis introduction
Federico Daniel Colombo Gennarelli
 
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
Dave Nielsen
 
Steam Learn: An introduction to Redis
Steam Learn: An introduction to Redis
inovia
 
Redis basics
Redis basics
Arthur Shvetsov
 
Introduction to Redis Data Structures: Sets
Introduction to Redis Data Structures: Sets
ScaleGrid.io
 
Introduction to Redis Data Structures: Hashes
Introduction to Redis Data Structures: Hashes
ScaleGrid.io
 
Redis data structure and Performance Optimization
Redis data structure and Performance Optimization
Knoldus Inc.
 
Use Redis in Odd and Unusual Ways
Use Redis in Odd and Unusual Ways
Itamar Haber
 
2_Redis.pptx very useful for begginers yes
2_Redis.pptx very useful for begginers yes
soufianbouktaib1
 
Redis/Lessons learned
Redis/Lessons learned
Tit Petric
 
Redis Functions, Data Structures for Web Scale Apps
Redis Functions, Data Structures for Web Scale Apps
Dave Nielsen
 
Introduction to Redis Data Structures: Sorted Sets
Introduction to Redis Data Structures: Sorted Sets
ScaleGrid.io
 
Redis Modules - Redis India Tour - 2017
Redis Modules - Redis India Tour - 2017
HashedIn Technologies
 
An Introduction to Redis for Developers.pdf
An Introduction to Redis for Developers.pdf
Stephen Lorello
 
10 Ways to Scale with Redis - LA Redis Meetup 2019
10 Ways to Scale with Redis - LA Redis Meetup 2019
Dave Nielsen
 
Redis — The AK-47 of Post-relational Databases
Redis — The AK-47 of Post-relational Databases
Karel Minarik
 
Redis Workshop on Data Structures, Commands, Administration
Redis Workshop on Data Structures, Commands, Administration
HashedIn Technologies
 
An Introduction to Redis for .NET Developers.pdf
An Introduction to Redis for .NET Developers.pdf
Stephen Lorello
 
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
10 Ways to Scale Your Website Silicon Valley Code Camp 2019
Dave Nielsen
 
Steam Learn: An introduction to Redis
Steam Learn: An introduction to Redis
inovia
 
Ad

Recently uploaded (20)

Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Understanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A Guide
CircuitDigest
 
Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
operationg systemsdocumentmemorymanagement
operationg systemsdocumentmemorymanagement
SNIGDHAAPPANABHOTLA
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
IntroSlides-June-GDG-Cloud-Munich community [email protected]
IntroSlides-June-GDG-Cloud-Munich community [email protected]
Luiz Carneiro
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
Tree_Traversals.pptbbbbbbbbbbbbbbbbbbbbbbbbb
RATNANITINPATIL
 
Présentation_gestion[1] [Autosaved].pptx
Présentation_gestion[1] [Autosaved].pptx
KHADIJAESSAKET
 
grade 9 science q1 quiz.pptx science quiz
grade 9 science q1 quiz.pptx science quiz
norfapangolima
 
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
Center Enamel can Provide Aluminum Dome Roofs for diesel tank.docx
CenterEnamel
 
Understanding Amplitude Modulation : A Guide
Understanding Amplitude Modulation : A Guide
CircuitDigest
 
Water demand - Types , variations and WDS
Water demand - Types , variations and WDS
dhanashree78
 
Universal Human Values and professional ethics Quantum AKTU BVE401
Universal Human Values and professional ethics Quantum AKTU BVE401
Unknown
 
社内勉強会資料_Chain of Thought .
社内勉強会資料_Chain of Thought .
NABLAS株式会社
 
The first edition of the AIAG-VDA FMEA.pptx
The first edition of the AIAG-VDA FMEA.pptx
Mayank Mathur
 
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
Development of Portable Biomass Briquetting Machine (S, A & D)-1.pptx
aniket862935
 
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
Decoding Kotlin - Your Guide to Solving the Mysterious in Kotlin - Devoxx PL ...
João Esperancinha
 
operationg systemsdocumentmemorymanagement
operationg systemsdocumentmemorymanagement
SNIGDHAAPPANABHOTLA
 
NALCO Green Anode Plant,Compositions of CPC,Pitch
NALCO Green Anode Plant,Compositions of CPC,Pitch
arpitprachi123
 
ACEP Magazine Fifth Edition on 5june2025
ACEP Magazine Fifth Edition on 5june2025
Rahul
 
David Boutry - Mentors Junior Developers
David Boutry - Mentors Junior Developers
David Boutry
 
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Rigor, ethics, wellbeing and resilience in the ICT doctoral journey
Yannis
 
Fundamentals of Digital Design_Class_21st May - Copy.pptx
Fundamentals of Digital Design_Class_21st May - Copy.pptx
drdebarshi1993
 
OCS Group SG - HPHT Well Design and Operation - SN.pdf
OCS Group SG - HPHT Well Design and Operation - SN.pdf
Muanisa Waras
 
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
362 Alec Data Center Solutions-Slysium Data Center-AUH-Adaptaflex.pdf
djiceramil
 
Ad

Introduction to Redis Data Structures

  • 1. Bitmaps Introduction to Redis Data Structures:
  • 2. What is Redis? Open Source, NoSQL Database Used by: Twitter, Pinterest, GitHub Stores Advanced Data Structures Client Support: Java, C, Node.js etc Introduction to Redis Data Structures: Bitmaps
  • 3. What are Bitmaps? Also called Bit Arrays/Vectors Helps map boolean information into a compact representation Widely used when memory space is a premium Largest Domain Support: 232 bits Introduction to Redis Data Structures: Bitmaps
  • 4. Common Use Cases for Bitmaps Provide extreme savings when storing information Real Time Analytics (GetSpool Blog) Large size MOOC Space Efficient, High Performance Boolean InformationIntroduction to Redis Data Structures: Bitmaps
  • 5. Bit Operations in Redis SETBIT GETBIT BITOP BITCOUNT BITPOS Introduction to Redis Data Structures: Bitmaps
  • 6. Internal Implementation Redis strings are implemented as Binary Safe Strings Internally called Simple Dynamic String (SDS) native char[] More Details hereIntroduction to Redis Data Structures: Bitmaps
  • 7. Redis Sets vs Redis Bitmaps Sets are easier to manage, program & debug Work well for most apps Small to medium size data structures > 232 Bits Domain SizeIntroduction to Redis Data Structures: Bitmaps Bitmaps are suitable over a large number of keys Depends on size & performance of keys
  • 8. Summary Redis Bitmaps provide Useful & Powerful functionality when memory space is a premium Not supported directly but in the form of Redis Strings Best for platforms that need real-time analytics and huge data sets likes MOOCs Prefer Redis Sets for Simple ScenariosIntroduction to Redis Data Structures: Bitmaps
  • 9. Sign Up for a free 30 day Trial Thanks for reading! Full Article here Hosting & management for MongoDB® and Redis®. NoSQL management Simplified. Click here for more information on Redis Hosting