Key value store as primary database

I am about to start a project where reading and writing will be large and frequent. So looking around I found that in-memory databases are created for exactly this purpose. Investigated me a bit more to redraw.

Redis looks pretty cool (just started reading, though be aware of it). But I first of all only saw relational databases and thought of data in terms of tuples and relationships (I think I can learn this over time).

I have the following questions right now:

  • Can I only use redis to store my data?
    • The reason I'm asking is because every article I've seen uses Redis / memcached as a caching middleware.
    • Can I just rely on redis to save my data?
  • Where to place / run the redis database?
    • Since Redis is an in-memory database, its host requirement will definitely be different from applications requiring more processing. Hosts with more RAM will definitely do better here.
    • So where do people usually continue to host their database?
    • Elasticcaching from AWS, can this be used to host redis (as a primary database, not just a caching layer).
  • Any resources?
    • I always ask this, I found a lot of good docs on the internet, but nothing good came from the beginning. Please share any good resource if you know.
+3


source to share


1 answer


Can I only use redis to store my data?

It depends on your requirements, but with 150+ NoSQL database available, I suspect redis is not the only option.

The reason I'm asking is because every article I've seen uses Redis / memcached as a caching middleware.

It's faster than JDBC, but do you need faster?

Can I just rely on redis to save my data?

You can, it depends on your reliability requirements. for example, some organizations only trust traditional RDBMS databases. Note: you need to redraw on multiple servers to oppose rejection.

Where to host / run redis database?

Wherever.

Since Redis is an in-memory database, its host requirement will definitely be different from applications requiring more processing. Hosts with more RAM will definitely do better here.



I would usually put the NoSQL instance on the same machine. The amount of RAM you give it depends on how much data you need.

So where do people usually continue to host their database?

On multiple servers, they can be shared with applications for redundancy.

Elasticcaching from AWS, can this be used to host redis (as primary database, not just caching layer) Any resources?

I would ask them.

I always ask this, I found a lot of good docs on the internet, but nothing good came from the beginning. Please share any good resource if you know.

There are no resources as there is no answer. If there were, there would be 150 NoSQL databases.

Disclaimer: I have another NoSQL value key store that is persisted as well in memory, and is significantly faster (if you need it). Also easier to use / deploy. https://github.com/OpenHFT/Chronicle-Map

+4


source







All Articles