Redis, In-memory database



Lately i have been working with a database product called Redis. Redis is a key-value database which concentrates on pure speed. Redis runs in memory, but syncs data into disc also in case of shutdown. Redis is desinged to be used with huge data masses, but it runs fine with smaller databases also. There are few strange things in Redis which are good to know.

Datatypes Redis 

contains only few datatypes (seven to be exact), but datatypes are designed to be used in a very specific way, so knowing them well is required for effective use. Strings, hashes, sets, lists and sorted sets are the most used ones.

Database design 

While working with Redis, I have noticed that database designing differs from relational databases. When working with relational databases we start designing database based on the data. What kind of data we have and what are the relations. When working with Redis the database design is driven by the software which is using database. For example if you are storing user information. You first think how you are going to be using the data. Are you searching with id only, or are you creating complex queries. All these decisions affects what kind of datatype we should use for user. I would say that relational databases are designed on the basis of the data, when again Redis databases are designed according to the software.

Combining with other databases

Redis database is usually combined with other databases, because if you run out of memory (you are having more data than allocated memory) your Redis instance will crash. That's why Redis is usually used only for caching or acting as a frontier data storage for your app.

10 comments:

  1. This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things.
    Web development Company in India Company | Web development Company Bangalore
    Web Development Company in Bangalore | Responsive Web development

    ReplyDelete
  2. Thanks For sharing nice article about database development services.
    Database Development Services in India

    ReplyDelete
  3. Thanks For sharing nice article about database development services.
    Database Development Services in India

    ReplyDelete

  4. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Online Training from India. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
    JavaScript Online Training from India

    ReplyDelete
  5. Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future.Web Design Kuala Lumpur

    ReplyDelete
  6. I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! free online marketing

    ReplyDelete