Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DynamoDB Applied Design Patterns

You're reading from   DynamoDB Applied Design Patterns Apply efficient DynamoDB design patterns for high performance of applications

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781783551897
Length 202 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Uchit Hamendra Vyas Uchit Hamendra Vyas
Author Profile Icon Uchit Hamendra Vyas
Uchit Hamendra Vyas
Arrow right icon
View More author details
Toc

DynamoDB versus Redis

Both DynamoDB and Redis are NoSQL databases that store the data in key-value format. But Redis is an open source database provided by BSD. Redis means Remote Dictionary Server. It is often called a data structure server as its key contains many data types, such as string hashes, in which the key and values are string, sorted sets of strings, stored sets, and lists of strings. We can perform atomic operations in Redis. Redis stores the whole dataset in memory, so we can persist it by dumping the data to disk, because Redis synchronizes data to the disk every 2 seconds. So if the system fails, we lose the data for only a few seconds. Another way to persist it is by appending each command to the log.

Redis supports master-slave replication, which allows the slave Redis server to be the same copy of the master Redis server with non-blocking replication. On the master-side server, it will handle queries when one or more slaves perform initial synchronization. On the other...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image