Skip to content

How to cached your Database and Redis with Ez way | part 1

What is cached, and use case

Application developers must balance time between coding features and improving performance and scalability. Most believe that focusing on functionality and features is the priority, but features and application response times go hand-in-hand. Slow performance can adversely affect revenue.

//i travel in internet and looking from other expert IT guy… and they give to me with 2 technology memcached and redis…
#so what is memcached:

From memached org: Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

#and redis

From redis.io: redis is in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams

so, both of them using RAM (Randome Access Memory).

first question and important: why they used RAM inserted for Solid Memory (other case is Hard Disk Driver)

simpless: the speed of RAM allways more than speed of HDD, but any technology have weakpoint, and Memcached and Redis not exceptions: “when lost of power, the data in RAM will lost also”.

In this tutorial, i not talking detail of them, just forcusing about how to cached database and redis.

summary
 cached is mechanism help your application can save time for responding, it maybe is database or load file content and give good feeling for end user
Published inOperation

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *