Reputation: 105
I've been using Redis for a while for my project's stats. I'm using Jedis
, Redis for java, currently for the project but I also would like to use same Redis server in multiple platforms like websites, android or even IOS.
The project often uses Redis for gets and sets.
My questions
If you have any idea related the topic, I'd like to hear your idea!
Upvotes: 0
Views: 332
Reputation: 9624
First of all; for "better" and horizontal scaling your application server should not store any data. If your application server has MySQL
database or Redis
in there, then it would be difficult to scale since they are not "stateless". If you want to add second server to this design, then you can't duplicate your application server with your data. To make it "stateless" you have to move your data stores out of the application servers.
You may check replication to provide higher availability if you have some concerns about it.
Replication can be used both for
scalability
, in order to have multiple replicas for read-only queries (for example, slow O(N) operations can be offloaded to replicas), or simply for improving data safety andhigh availability
.
Upvotes: 1