MySQL数据同步至Redis
天蓬老师
天蓬老师 2017-04-17 13:08:03
0
1
534

跟大家咨询下大家在做MySQL跟redis数据同步的时候用的是什么方式呢? 目前看到的方式一般有两种:
1.使用Gearman+MySQL UDF的组合异步实现MySQL到Redis的数据复制。
2.不使用GEM,通过MySQL的触发器然后调用UDF来直接调用API网络接口,接口里去操作redis的数据来达到数据同步。

另外,我是想在MySQL的数据在有增删改这几个操作的时候直接把变动的数据输出成json形式存入到redis.

多谢大家:)

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
PHPzhong

One is relational and the other is non-relational. They cannot be completely synchronized to redis. The data types and primary and foreign key object relationships are very troublesome.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!