redis-账户-余额 - Redis存储账户余额
PHP中文网
PHP中文网 2017-04-22 09:00:40
0
1
948

Redis可否用来存储账户余额,如果直接使用Mysql当存储,那压力能不能吃得消,Redis的话又担心数据丢失,应该怎么做才好呢?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
巴扎黑

It is best not to use redis. There is an upper limit on the memory that a single redis node can use, which seems to be 10G. Moreover, it is best to use a relational database with transaction consistency for account balances. MySQL itself can also be optimized a lot. If you feel the pressure is high, you can add caching or separate reading and writing

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!