SlideShare a Scribd company logo
Redis
Diego Pacheco
Redis
Redis
❏ FOSS
❏ In Memory K/V Store written in C
❏ Create for: Caching, Session Store, Queue, Analytics
❏ Specific Commands per Data Structures: Strings, Hash, sets
❏ Keys TTL
❏ Bring your own Data Structure
❏ Fast, Low Latency, Battle tested everybody. :D
❏ Single Thread :(
V5
Redis - Data Structures
Redis >= 4.x
❏ Redis-Modules
❏ It's not Lua Scripting
❏ Built in C
❏ Low Latency | Embedded in Redis
❏ Use cases: Extends Redis / New Capabilities DSs
Redis >= 5.x
Redis: make ; src/redis-server
https://redis.io/download
Redis: src/redis-cli
https://redis.io/download
Redis: src/redis-cli
https://redis.io/commands/
Redis & Java: Lettuce
Redis & Java: Spring Data + Lettuce
Redis & Java: Spring Data + Lettuce
Redis & Java: Spring Data + Lettuce
Redis & Java: Spring Data + Lettuce
Redis & Java: Spring Data + Lettuce
Redis & Java: Spring Data + Lettuce : Hash Mapping
Redis & Java: Spring Data + Lettuce : Hash Mapping
Redis & Java: Spring Data + Lettuce : Hash Mapping
Redis & Java: Spring Data + Lettuce : Hash Mapping
In-memory Persistence - Redis as Source of Truth = Dynomite
https://github.com/Netflix/dynomite
http://diego-pacheco.blogspot.com/2016/05/june-1st-2016-i-will-be-speaking-about.html
https://www.youtube.com/watch?v=Z4_rzsZd70o&feature=youtu.be
http://diego-pacheco.blogspot.com/search?q=dynomite
Q & A
Exercises
Constraints
You MUST code this exercises with Java.
You can use any framework you like. UI is not required.
You need to run Redis 5.x (nativily, docker, does not matter).
Tip: Think about data structures first, test on the CLI them code in Java,
1. Run redis-cli and play with the commands: SET, GET, HSET, HGET, HGETALL, STRLEN
2. Create a Service that count how many times a Movie was watched.
3. Create a simple Cache Service where you have the operations: GET and SET and you receive an
string as key and String as value. Serialize the value using Jackson.
4. Create a User Profile Service, where the user should have: name, address, dateOfBirth,
twitterHandler, email and operations to change any of this fields based on the email as key.
5. Create a News Feed Service where you will have a Timeline per user and the links of news
prioritized by relevance(tip sorted sets). You should have multiple data Structures in Redis.
https://github.com/diegopacheco/redis-training.git
Redis
Diego Pacheco

More Related Content

What's hot (20)

PDF
Cassandra Day SV 2014: Beyond Read-Modify-Write with Apache Cassandra
DataStax Academy
 
PDF
Redis for horizontally scaled data processing at jFrog bintray
Redis Labs
 
ODP
MySQL HA
Kris Buytaert
 
PPTX
Apache Cassandra Lunch #70: Basics of Apache Cassandra
Anant Corporation
 
PDF
Using ZFS file system with MySQL
Mydbops
 
PPTX
Cassandra
Pooja GV
 
PDF
Scylla db@sf data meetup, dec 1 2015
Dor Laor
 
PDF
Using Redis at Facebook
Redis Labs
 
PDF
ScyllaDB: NoSQL at Ludicrous Speed
J On The Beach
 
PDF
Cassandra Day Atlanta 2015: Diagnosing Problems in Production
DataStax Academy
 
PDF
Seattle Cassandra Meetup - HasOffers
btoddb
 
PDF
Scylla db deck, july 2017
Dor Laor
 
PDF
HIgh Performance Redis- Tague Griffith, GoPro
Redis Labs
 
PPTX
Scylla Summit 2018: Consensus in Eventually Consistent Databases
ScyllaDB
 
PDF
Introduction to Apache Cassandra
Intan Marselly
 
PDF
Exoscale: Pithos: your personal S3 object store on cassandra
DataStax Academy
 
PDF
Cassandra@Coursera: AWS deploy and MySQL transition
Daniel Jin Hao Chia
 
PDF
Elassandra
Diego Pacheco
 
PDF
Edge performance with in memory nosql
Liviu Costea
 
PPTX
Cassandra vs Databases
Anant Corporation
 
Cassandra Day SV 2014: Beyond Read-Modify-Write with Apache Cassandra
DataStax Academy
 
Redis for horizontally scaled data processing at jFrog bintray
Redis Labs
 
MySQL HA
Kris Buytaert
 
Apache Cassandra Lunch #70: Basics of Apache Cassandra
Anant Corporation
 
Using ZFS file system with MySQL
Mydbops
 
Cassandra
Pooja GV
 
Scylla db@sf data meetup, dec 1 2015
Dor Laor
 
Using Redis at Facebook
Redis Labs
 
ScyllaDB: NoSQL at Ludicrous Speed
J On The Beach
 
Cassandra Day Atlanta 2015: Diagnosing Problems in Production
DataStax Academy
 
Seattle Cassandra Meetup - HasOffers
btoddb
 
Scylla db deck, july 2017
Dor Laor
 
HIgh Performance Redis- Tague Griffith, GoPro
Redis Labs
 
Scylla Summit 2018: Consensus in Eventually Consistent Databases
ScyllaDB
 
Introduction to Apache Cassandra
Intan Marselly
 
Exoscale: Pithos: your personal S3 object store on cassandra
DataStax Academy
 
Cassandra@Coursera: AWS deploy and MySQL transition
Daniel Jin Hao Chia
 
Elassandra
Diego Pacheco
 
Edge performance with in memory nosql
Liviu Costea
 
Cassandra vs Databases
Anant Corporation
 

Similar to Redis (20)

PDF
Redispresentation apac2012
Ankur Gupta
 
PPTX
Tips, Tricks & Best Practices for large scale HDInsight Deployments
Ashish Thapliyal
 
PDF
NodeJS for Beginner
Apaichon Punopas
 
PDF
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
PPTX
Reusable, composable, battle-tested Terraform modules
Yevgeniy Brikman
 
ODP
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 
PDF
Scaling PHP apps
Matteo Moretti
 
PDF
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
PPT
Performance and Scalability
Mediacurrent
 
ODP
phptek13 - Caching and tuning fun tutorial
Wim Godden
 
PPTX
Develop PHP Applications with MySQL X DevAPI
Dave Stokes
 
PDF
dba_lounge_Iasi: Everybody likes redis
Liviu Costea
 
PPTX
TIAD 2016 : Application delivery in a container world
The Incredible Automation Day
 
PDF
Experiences using CouchDB inside Microsoft's Azure team
Brian Benz
 
PDF
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
KEY
Handling Redis failover with ZooKeeper
ryanlecompte
 
DOCX
unit 2 of Full stack web development subject
JeneferAlan1
 
ODP
Caching and tuning fun for high scalability
Wim Godden
 
PPTX
Redis for Security Data : SecurityScorecard JVM Redis Usage
Timothy Spann
 
Redispresentation apac2012
Ankur Gupta
 
Tips, Tricks & Best Practices for large scale HDInsight Deployments
Ashish Thapliyal
 
NodeJS for Beginner
Apaichon Punopas
 
DrupalCampLA 2011: Drupal backend-performance
Ashok Modi
 
Reusable, composable, battle-tested Terraform modules
Yevgeniy Brikman
 
Beyond relational database - Building high performance websites using Redis a...
Dinh Pham
 
Scaling PHP apps
Matteo Moretti
 
WordPress At Scale. WordCamp Dhaka 2019
Anam Ahmed
 
Performance and Scalability
Mediacurrent
 
phptek13 - Caching and tuning fun tutorial
Wim Godden
 
Develop PHP Applications with MySQL X DevAPI
Dave Stokes
 
dba_lounge_Iasi: Everybody likes redis
Liviu Costea
 
TIAD 2016 : Application delivery in a container world
The Incredible Automation Day
 
Experiences using CouchDB inside Microsoft's Azure team
Brian Benz
 
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
Handling Redis failover with ZooKeeper
ryanlecompte
 
unit 2 of Full stack web development subject
JeneferAlan1
 
Caching and tuning fun for high scalability
Wim Godden
 
Redis for Security Data : SecurityScorecard JVM Redis Usage
Timothy Spann
 
Ad

More from Diego Pacheco (20)

PDF
Naming Things Book : Simple Book Review!
Diego Pacheco
 
PDF
Continuous Discovery Habits Book Review.pdf
Diego Pacheco
 
PDF
Thoughts about Shape Up
Diego Pacheco
 
PDF
Holacracy
Diego Pacheco
 
PDF
AWS IAM
Diego Pacheco
 
PDF
CDKs
Diego Pacheco
 
PDF
Encryption Deep Dive
Diego Pacheco
 
PDF
Sec 101
Diego Pacheco
 
PDF
Reflections on SCM
Diego Pacheco
 
PDF
Management: Doing the non-obvious! III
Diego Pacheco
 
PDF
Design is not Subjective
Diego Pacheco
 
PDF
Architecture & Engineering : Doing the non-obvious!
Diego Pacheco
 
PDF
Management doing the non-obvious II
Diego Pacheco
 
PDF
Testing in production
Diego Pacheco
 
PDF
Nine lies about work
Diego Pacheco
 
PDF
Management: doing the nonobvious!
Diego Pacheco
 
PDF
AI and the Future
Diego Pacheco
 
PDF
Dealing with dependencies
Diego Pacheco
 
PDF
Dealing with dependencies in tests
Diego Pacheco
 
PDF
Kanban 2020
Diego Pacheco
 
Naming Things Book : Simple Book Review!
Diego Pacheco
 
Continuous Discovery Habits Book Review.pdf
Diego Pacheco
 
Thoughts about Shape Up
Diego Pacheco
 
Holacracy
Diego Pacheco
 
AWS IAM
Diego Pacheco
 
Encryption Deep Dive
Diego Pacheco
 
Sec 101
Diego Pacheco
 
Reflections on SCM
Diego Pacheco
 
Management: Doing the non-obvious! III
Diego Pacheco
 
Design is not Subjective
Diego Pacheco
 
Architecture & Engineering : Doing the non-obvious!
Diego Pacheco
 
Management doing the non-obvious II
Diego Pacheco
 
Testing in production
Diego Pacheco
 
Nine lies about work
Diego Pacheco
 
Management: doing the nonobvious!
Diego Pacheco
 
AI and the Future
Diego Pacheco
 
Dealing with dependencies
Diego Pacheco
 
Dealing with dependencies in tests
Diego Pacheco
 
Kanban 2020
Diego Pacheco
 
Ad

Recently uploaded (20)

PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
TrustArc Webinar - Data Privacy Trends 2025: Mid-Year Insights & Program Stra...
TrustArc
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 

Redis

  • 3. Redis ❏ FOSS ❏ In Memory K/V Store written in C ❏ Create for: Caching, Session Store, Queue, Analytics ❏ Specific Commands per Data Structures: Strings, Hash, sets ❏ Keys TTL ❏ Bring your own Data Structure ❏ Fast, Low Latency, Battle tested everybody. :D ❏ Single Thread :(
  • 4. V5
  • 5. Redis - Data Structures
  • 6. Redis >= 4.x ❏ Redis-Modules ❏ It's not Lua Scripting ❏ Built in C ❏ Low Latency | Embedded in Redis ❏ Use cases: Extends Redis / New Capabilities DSs
  • 8. Redis: make ; src/redis-server https://redis.io/download
  • 11. Redis & Java: Lettuce
  • 12. Redis & Java: Spring Data + Lettuce
  • 13. Redis & Java: Spring Data + Lettuce
  • 14. Redis & Java: Spring Data + Lettuce
  • 15. Redis & Java: Spring Data + Lettuce
  • 16. Redis & Java: Spring Data + Lettuce
  • 17. Redis & Java: Spring Data + Lettuce : Hash Mapping
  • 18. Redis & Java: Spring Data + Lettuce : Hash Mapping
  • 19. Redis & Java: Spring Data + Lettuce : Hash Mapping
  • 20. Redis & Java: Spring Data + Lettuce : Hash Mapping
  • 21. In-memory Persistence - Redis as Source of Truth = Dynomite https://github.com/Netflix/dynomite http://diego-pacheco.blogspot.com/2016/05/june-1st-2016-i-will-be-speaking-about.html https://www.youtube.com/watch?v=Z4_rzsZd70o&feature=youtu.be http://diego-pacheco.blogspot.com/search?q=dynomite
  • 22. Q & A
  • 23. Exercises Constraints You MUST code this exercises with Java. You can use any framework you like. UI is not required. You need to run Redis 5.x (nativily, docker, does not matter). Tip: Think about data structures first, test on the CLI them code in Java, 1. Run redis-cli and play with the commands: SET, GET, HSET, HGET, HGETALL, STRLEN 2. Create a Service that count how many times a Movie was watched. 3. Create a simple Cache Service where you have the operations: GET and SET and you receive an string as key and String as value. Serialize the value using Jackson. 4. Create a User Profile Service, where the user should have: name, address, dateOfBirth, twitterHandler, email and operations to change any of this fields based on the email as key. 5. Create a News Feed Service where you will have a Timeline per user and the links of news prioritized by relevance(tip sorted sets). You should have multiple data Structures in Redis. https://github.com/diegopacheco/redis-training.git