SlideShare a Scribd company logo
Redis vs Memcached Daniel Naves de Carvalho - daniel@omnilogic.com.br
OmniLogic •  Since nov/2009 •  Data-Mining •  Computational Intelligence •  Optimization •  Business Intelligence
Memcached •  Free & open source •  High-performance •  Distributed memory object caching system •  Generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. •  In-memory key-value store for small chunks of arbitrary data (strings, objects from database calls, API calls etc) •  At heart it is a simple Key-Value store
Memcached - Clients •  C / C++ •  PHP •  Java •  Python •  Ruby •  Perl •  Windows/.NET •  MySQL •  PostgreSQL •  Erlang •  Lua •  Lisp •  ColdFusion •  OCaml •  Io •  etc
Features •  Simple Key-Value Store •  Servers are disconected from each other •  Forgetting data is a feature(LRU) •  O(1)
Redis vs Memcached Redis Memcached In Memory x x Persistent x Atomic x x Consistent x x Replication x Authentication x Key / Value x x Key Enumeration x Key / Value buckets x
Redis vs Memcached Redis Memcached Maximum Key Length 2^31bytes 250 bytes Maximum String size 512m 1m Data Structures x Channel Pub/Sub x Consistent hasing x x Memory Usage 10-20% less Speed(Single Instance, Multicore) 100.000 req/s 125.000 req/s Speed(Multiple Instances, Single Thread) 200.000 req/s 200.000 req/s
Redis – Real Use Cases •  R eal-time model-prediction caching •  Page fragments caching •  Jobs Queue
Redis – Network layout
Page fragments caching •  Speedup +5x •  Low memory usage •  Faster than pre-render file caching
Jobs Queue •  Easy to maintain •  Persistent •  Multi-queue multi-workers
Resque
R eal-time model-prediction caching •  Speed-up +100x •  Faster sorting vs Lib Sorting •  Easy to maintain •  Scales horizontally
Questions???

More Related Content

What's hot (20)

PPTX
Sqlite Introduction
Praveen Nair
 
PPT
Postgres for the Future
EDB
 
PDF
美团技术沙龙04 - 高性能服务器架构设计和调优
美团点评技术团队
 
PDF
StripeEu Twistedbytes Presentation
twistedbytes
 
PDF
caching2012.pdf
KarthikS573262
 
PPTX
Kenshoo - Use Hadoop, One Week, No Coding
MapR Technologies
 
PPTX
IMC Summit 2016 Breakout - Brian Bulkowski - NVMe, Storage Class Memory and O...
In-Memory Computing Summit
 
ODP
Efficient data maintaince in GlusterFS using Databases
Joseph Elwin Fernandes
 
PPTX
Drupal performance
Piyuesh Kumar
 
PDF
OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...
mfrancis
 
PPTX
RedisConf18 - Video Experience Operational Insights in Real Time.
Redis Labs
 
PPTX
IMC Summit 2016 Breakout - Pandurang Naik - Demystifying In-Memory Data Grid,...
In-Memory Computing Summit
 
PDF
MongoDB Evenings Boston - An Update on MongoDB's WiredTiger Storage Engine
MongoDB
 
PPT
StorageArchitecturesForCloudVDI
Vinay Rao
 
PDF
Achieving Separation of Compute and Storage in a Cloud World
Alluxio, Inc.
 
PPTX
Windows Azure Caching
Pavel Revenkov
 
PPTX
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Storage Switzerland
 
PDF
Ndb cluster 80_requirements
mikaelronstrom
 
PDF
Red Hat Storage Server For AWS
Red_Hat_Storage
 
PDF
Simple cloud reference architecture
DaeMyung Kang
 
Sqlite Introduction
Praveen Nair
 
Postgres for the Future
EDB
 
美团技术沙龙04 - 高性能服务器架构设计和调优
美团点评技术团队
 
StripeEu Twistedbytes Presentation
twistedbytes
 
caching2012.pdf
KarthikS573262
 
Kenshoo - Use Hadoop, One Week, No Coding
MapR Technologies
 
IMC Summit 2016 Breakout - Brian Bulkowski - NVMe, Storage Class Memory and O...
In-Memory Computing Summit
 
Efficient data maintaince in GlusterFS using Databases
Joseph Elwin Fernandes
 
Drupal performance
Piyuesh Kumar
 
OSGi Community Event 2010 - Modular Applications on a Data Grid - A Case Stud...
mfrancis
 
RedisConf18 - Video Experience Operational Insights in Real Time.
Redis Labs
 
IMC Summit 2016 Breakout - Pandurang Naik - Demystifying In-Memory Data Grid,...
In-Memory Computing Summit
 
MongoDB Evenings Boston - An Update on MongoDB's WiredTiger Storage Engine
MongoDB
 
StorageArchitecturesForCloudVDI
Vinay Rao
 
Achieving Separation of Compute and Storage in a Cloud World
Alluxio, Inc.
 
Windows Azure Caching
Pavel Revenkov
 
Webinar: Overcoming the Storage Challenges Cassandra and Couchbase Create
Storage Switzerland
 
Ndb cluster 80_requirements
mikaelronstrom
 
Red Hat Storage Server For AWS
Red_Hat_Storage
 
Simple cloud reference architecture
DaeMyung Kang
 

Viewers also liked (20)

PPT
Xat
UNIVA
 
PPTX
Roquetas de mar ( Almería)
Hannah Botchwey
 
PPTX
Feature Writing
Rocelyn Joy Oxales
 
PDF
La herencia recibida
psoeazuqueca
 
PPTX
HDX 3D
Helmut Hauser
 
PPTX
CEC2016
Sean Murphy
 
PDF
Otra autonomia de la Ciencia. Reflexiones a la luz del pensamiento de Serguei...
Maite Pelacho
 
PDF
Catálogo de Productos Martiz Distribuciones S.A.S.
David Osorio
 
PDF
iBeacon - det nye sort? 16. april 2015
InfinIT - Innovationsnetværket for it
 
PDF
Mejorando el ambiente ecologico2
Sisters of Mercy Congregation
 
PPT
Dogan Taskent: Wirtschaftliche Brücke in die Türkei
Dialog-Institut
 
DOCX
Rúbrica bienvenidos ...
Inma Contreras
 
PDF
Обзор новых возможностей Cisco Contact Center Express 10
Cisco Russia
 
PDF
Application for vat registration uk
Keyconsulting UK
 
PDF
Listado de empresas prácticas Pastelería
SEAS, Estudios Superiores Abiertos
 
PPT
Censo de necesidades de los Colegios Publicos de Sevilla "Lo que el Gobierno ...
Juan Ignacio Zoido
 
PPTX
Casa Hogar
BigTuna Interactive
 
PPT
Ya 2o Rem Internet Eq Gibram Presentacion De Historia Final
suhuer
 
PDF
Alegorías de la Ciega y el Sordomudo - Postguión
Javier OTK
 
Xat
UNIVA
 
Roquetas de mar ( Almería)
Hannah Botchwey
 
Feature Writing
Rocelyn Joy Oxales
 
La herencia recibida
psoeazuqueca
 
CEC2016
Sean Murphy
 
Otra autonomia de la Ciencia. Reflexiones a la luz del pensamiento de Serguei...
Maite Pelacho
 
Catálogo de Productos Martiz Distribuciones S.A.S.
David Osorio
 
iBeacon - det nye sort? 16. april 2015
InfinIT - Innovationsnetværket for it
 
Mejorando el ambiente ecologico2
Sisters of Mercy Congregation
 
Dogan Taskent: Wirtschaftliche Brücke in die Türkei
Dialog-Institut
 
Rúbrica bienvenidos ...
Inma Contreras
 
Обзор новых возможностей Cisco Contact Center Express 10
Cisco Russia
 
Application for vat registration uk
Keyconsulting UK
 
Listado de empresas prácticas Pastelería
SEAS, Estudios Superiores Abiertos
 
Censo de necesidades de los Colegios Publicos de Sevilla "Lo que el Gobierno ...
Juan Ignacio Zoido
 
Ya 2o Rem Internet Eq Gibram Presentacion De Historia Final
suhuer
 
Alegorías de la Ciega y el Sordomudo - Postguión
Javier OTK
 
Ad

Similar to Redis e Memcached - Daniel Naves - Omnilogic (20)

DOCX
Redis vs Memcached
Gaurav Agrawal
 
PDF
Redis everywhere - PHP London
Ricard Clau
 
PPTX
Redis meetup
Nikhil Dole
 
PDF
Redis Everywhere - Sunshine PHP
Ricard Clau
 
PDF
Redis memcached pdf
Erin O'Neill
 
PDF
Redis - From LAMP to NoSQL (CloudTW meetup-14)
York Tsai
 
PDF
Cassandra vs. Redis
Tim Lossen
 
PPTX
Caching
Nascenia IT
 
PDF
mar07-redis.pdf
AnisSalhi3
 
PDF
Key-Value-Stores -- The Key to Scaling?
Tim Lossen
 
PPTX
Redis by-hari
Hari Bachala
 
PDF
Memcached Presentation
Asif Ali
 
PPTX
Redis Introduction
Alex Su
 
PDF
Speed up your Symfony2 application and build awesome features with Redis
Ricard Clau
 
PPTX
Redis introduction
Federico Daniel Colombo Gennarelli
 
PPTX
Introduction to Redis
Ofer Zelig
 
PPTX
Caching solutions with Redis
George Platon
 
PDF
Introduction to redis - version 2
Dvir Volk
 
KEY
Blazing Data With Redis (and LEGOS!)
Justin Carmony
 
PDF
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
Redis vs Memcached
Gaurav Agrawal
 
Redis everywhere - PHP London
Ricard Clau
 
Redis meetup
Nikhil Dole
 
Redis Everywhere - Sunshine PHP
Ricard Clau
 
Redis memcached pdf
Erin O'Neill
 
Redis - From LAMP to NoSQL (CloudTW meetup-14)
York Tsai
 
Cassandra vs. Redis
Tim Lossen
 
Caching
Nascenia IT
 
mar07-redis.pdf
AnisSalhi3
 
Key-Value-Stores -- The Key to Scaling?
Tim Lossen
 
Redis by-hari
Hari Bachala
 
Memcached Presentation
Asif Ali
 
Redis Introduction
Alex Su
 
Speed up your Symfony2 application and build awesome features with Redis
Ricard Clau
 
Introduction to Redis
Ofer Zelig
 
Caching solutions with Redis
George Platon
 
Introduction to redis - version 2
Dvir Volk
 
Blazing Data With Redis (and LEGOS!)
Justin Carmony
 
Redis - The Universal NoSQL Tool
Eberhard Wolff
 
Ad

Recently uploaded (20)

PDF
introduction to computer hardware and sofeware
chauhanshraddha2007
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PPTX
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
introduction to computer hardware and sofeware
chauhanshraddha2007
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
Agentic AI in Healthcare Driving the Next Wave of Digital Transformation
danielle hunter
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 

Redis e Memcached - Daniel Naves - Omnilogic

  • 1. Redis vs Memcached Daniel Naves de Carvalho - [email protected]
  • 2. OmniLogic • Since nov/2009 • Data-Mining • Computational Intelligence • Optimization • Business Intelligence
  • 3. Memcached • Free & open source • High-performance • Distributed memory object caching system • Generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. • In-memory key-value store for small chunks of arbitrary data (strings, objects from database calls, API calls etc) • At heart it is a simple Key-Value store
  • 4. Memcached - Clients • C / C++ • PHP • Java • Python • Ruby • Perl • Windows/.NET • MySQL • PostgreSQL • Erlang • Lua • Lisp • ColdFusion • OCaml • Io • etc
  • 5. Features • Simple Key-Value Store • Servers are disconected from each other • Forgetting data is a feature(LRU) • O(1)
  • 6. Redis vs Memcached Redis Memcached In Memory x x Persistent x Atomic x x Consistent x x Replication x Authentication x Key / Value x x Key Enumeration x Key / Value buckets x
  • 7. Redis vs Memcached Redis Memcached Maximum Key Length 2^31bytes 250 bytes Maximum String size 512m 1m Data Structures x Channel Pub/Sub x Consistent hasing x x Memory Usage 10-20% less Speed(Single Instance, Multicore) 100.000 req/s 125.000 req/s Speed(Multiple Instances, Single Thread) 200.000 req/s 200.000 req/s
  • 8. Redis – Real Use Cases • R eal-time model-prediction caching • Page fragments caching • Jobs Queue
  • 10. Page fragments caching • Speedup +5x • Low memory usage • Faster than pre-render file caching
  • 11. Jobs Queue • Easy to maintain • Persistent • Multi-queue multi-workers
  • 13. R eal-time model-prediction caching • Speed-up +100x • Faster sorting vs Lib Sorting • Easy to maintain • Scales horizontally