我將要開始一個項目,該項目的讀寫操作非常頻繁且頻繁.因此,環顧四周,我發現內存數據庫正是為此目的而創建的.經過更多調查后,我進入了redis.
Redis看起來很酷(雖然剛開始閱讀,但是對此有很多了解).但是我主要只看過關系數據庫,并且以元組和關系的方式來考慮數據(我認為我可以隨著時間的流逝而學習).
我現在有以下問題:
>我可以僅使用Redis來存儲數據嗎?
>我問的原因是,我所看到的每篇文章都將Redis / memcached用作緩存的中間層.
>我可以僅依靠Redis持久保存數據嗎?
>在哪里托管/運行Redis數據庫?
>由于Redis是內存數據庫,因此它對主機的要求肯定與需要更多處理的應用程序不同.擁有更多RAM的主機肯定會在這里更好.
>那么人們通常會在哪里托管數據庫?
> AWS的Elasticcaching,可用于托管Redis(作為主數據庫,而不僅僅是緩存層)
>有資源嗎?
>我總是問這個問題,我在線上找到了很多很好的文檔,但是一開始并沒有什么真正的好.如果您知道,請分享任何好的資源.
解決方法:
Can I use only redis to store my data ?
這取決于您的要求,但是有150個NoSQL數據庫可用,我懷疑redis不是您的唯一選擇.
Reason why I am asking is that every article I have seen use Redis/memcached as an intermediate layer for caching.
它比JDBC快,但是您需要更快嗎?
Can I just rely on redis to persist my data through out ?
您可以,這取決于您的可靠性要求.例如一些組織僅信任傳統的RDBMS數據庫.注意:您需要在多臺服務器上安裝Redis才能防止出現故障.
Where to host/run redis database ?
無論您在哪里.
Since Redis is an in-memory database, its requirement of host will definitely be different than applications that require more processing. Hosts which have more RAM will definitely be better here.
我通常將NoSQL實例放在同一臺計算機上.您提供的RAM量取決于所需的數據量.
So where do people normally go on to host their database ?
跨多個服務器進行冗余,可以與應用程序共享它們.
Elasticcaching from AWS, can this be used to host redis(as a primary database, not just caching layer) Any resources ?
我會問他們.
I always ask this, I found lots of good documents online, but nothing really good to start with. Please share any good resource if you are aware of.
沒有一種資源,因為沒有答案.如果有的話,將有150個NoSQL數據庫.
免責聲明:我正在研究另一個NoSQL鍵值存儲,該鍵值存儲可以持久存儲在內存中,并且速度更快(如果需要此類操作),它的使用/部署也更簡單.
https://github.com/OpenHFT/Chronicle-Map
標簽:amazon-elasticache,redis,amazon-web-services,java,database
來源: https://codeday.me/bug/20191029/1957928.html