Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introducing Redis at FDI UCM

Introducing Redis at FDI UCM

Quick introduction to Redis database. I gave this talk in my university for a group of around 40/50 students.

Redis is the most popular key-value NoSQL database, in this quick introduction to Redis I'll cover:
- What's Redis?
- Which companies are using Redis in production? Twitter, Github, Pinterest, Instagram...
- Why to use Redis?
- What are the main features of Redis?
- Use case in Dailyfocus.

Any questions? Reach out to me on Twitter (@jgferreiro) or on my website: https://jorgeferreiro.com/contact

- - -

on https://www.twitter.com/jgferreiro
on https://www.linkedin.com/in/jgferreiro/
on https://www.youtube.com/c/jgferreiro/

Subscribe for more! https://jorgeferreiro.com/newsletter

Jorge Ferreiro

May 23, 2017
Tweet

More Decks by Jorge Ferreiro

Other Decks in Programming

Transcript

  1. @jgferreiro - Introducing Redis What is Redis? Redis is the

    most popular(1) key-value NoSQL database. Created in 2009 [1] 22 May 2017 - https://db-engines.com/en/ranking/key-value+store It's like a big hash table en memoria
  2. @jgferreiro - Introducing Redis Why Redis? • Session storage •

    Cache Results • Real time analytics, chat apps • API throttling… More on this: http://objectrocket.com/blog/how-to/top-5-redis-use-cases Shared data
  3. @jgferreiro - Introducing Redis Main features • Easy to use

    and open source (Yay! ) • Supports complex data structure for values • Tons of languages supported! ()
 Go, JavaScript (Node.js), Ruby, Java, PhP, Python… • Redis clusters! Persiste en disco!
  4. @jgferreiro - Introducing Redis Redis in a nutshell! • SET

    name Jorge • GET name
 => Jorge • INCR NUMBER => 11 • EXPIRE NUMBER 120
  5. @jgferreiro - Introducing Redis Dailyfocus It’s a productivity application that

    integrates all your services in one place ML (experiments)
  6. @jgferreiro - Introducing Redis The Problem Feeds that refreshes fast

    Users, So store the sessions Feeds • Composed of many third party apis and Dailyfocus services. • Need to be reload each time
  7. @jgferreiro - Introducing Redis The Problem 1. Calling APIS are

    costly 2. Delays on loading time make users angry 3. High server costs $$$ and workloads increased without caching
  8. Jorge Ferreiro @jgferreiro | Introducing Redis The Solution (I) Caching

    user Sessions Requests Server parses request and gets sessions from Redis
  9. Jorge Ferreiro @jgferreiro | Introducing Redis The Solution (II) No

    cached? Update cache Call to MongoDB, external APIS, etc… to reduce latency and waiting time … Caching user Feeds