亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Redis cluster相比Twemproxy有什么優(yōu)勢?
PHPz
PHPz 2017-04-22 08:59:57
0
3
1129

Redis 3.0.0 stable發(fā)布了,最引入注目的特性可能就是cluster了。

對很多早已使用Twemproxy的項目,這個特性有什么特殊意義嗎?
或者說,Redis cluster相比Twemproxy有什么優(yōu)勢?

PHPz
PHPz

學(xué)習(xí)是最好的投資!

reply all(3)
阿神

They are all solutions for Redis distributed clusters. I just saw an article pushed by InfoQ through WeChat at noon - "Best Practices for Efficient Operation and Maintenance (03): Redis Cluster Technology and Codis Practice", which is quite detailed. Targetedly, it improves the "heavy" nature of Redis Cluster and also points out the shortcomings of twemproxy. Unfortunately, this article was not found on the InfoQ website. I don’t know if it was not updated in time, so I cannot post the link. You can follow it.

左手右手慢動作

Let’s talk about a few problems with twemproxy, and you will know the advantages of redis cluster

(1) Fully asynchronous implementation, more complicated to understand
(2) The cheating auto_eject_hosts
(3) Dynamic addition of server is not supported
(4) mget will be automatically split, affecting performance

Ty80

Redis cluster updates the client's node routing rules through communication between the client and the server, and between the server and the server, ensuring that the client's requests are always sent to the correct server node. In most cases, the client to the server only needs One communication.

And Twemproxy acts as a proxy to distribute requests to nodes, with an additional layer of communication in the middle.

Theoretically speaking, redis cluster performance is efficient.
Of course, the implementation is much more complicated and needs to be tested in practice.

Personally, I think the redis cluster method will be the mainstream in the future.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template