Reputation: 1071
I would like to know what is the best practice for using Redis in cloud (Google Memorystore in my case, Standard Tier) for multiple microservices/applications. From what I have researched so far following options are available:
I am leaning towards option 1., but perhaps I am missing something?
Upvotes: 0
Views: 1184
Reputation: 749
Not sure about best practices, I will tell you my experience. In general I would go with Option #2.
Each microservices gets it's own redis instance or cluster. Redis clusters follow their own microservice life. Ex they might get respawned when you redeploy or restart a service.
You might pay a bit more but you gain in resiliency and maintenance hassle.
Upvotes: 1