1.
job server(转发请求)-> client -> work(真正处理请求)
mysql -> update -> trigger(触发器) -> json_map -> mysql plugin -> gearmand(job server) 调用请求-> work(php-gearman/php-redis) -> redis
2.
‘不能同步的问题’
[root@server3 ~]# mysql -uroot -predhat
MariaDB [(none)]> show databases;
MariaDB [(none)]> use test;
MariaDB [test]> select * from test;
MariaDB [test]> update test set name=‘sheena’ where id=1;
MariaDB [test]> select * from test;
[root@server2 ~]# redis-cli
127.0.0.1:6379> get 1
“test1”
127.0.0.1:6379> get 2
“test2”
浏览器输入:172.25.18.1