Comments (1)
1、flyfish的设计目标就是针对游戏中最普遍的数据访问模式提供一套可靠的kv缓存系统。真正的落地数据库并不一定必须是sql数据库,例如使用tikv作为数据库也是可以的。所以如果应用涉及大量关系数据库的操作,直接选择成熟的分布式关系数据系统更合适。
2、flyfish是一个分布式缓存,事务中操作的多个kv可能被缓存在多个分片上,所以要实现事务的话就必须实现分布式事务。这一块我暂时还没有考虑好用什么方案实现。不过这块跟db事务应该没关系,因为数据回写都是异步的。只要把flyfish作为统一的数据访问接口,flyfish中的数据最终跟db上的数据将达成一致。
3、目前就是这样的设计,如果在回写过程中发生不可重试性错误,本次任务就不再尝试了,但是并没有把kv的dirty标记清除,也就是下次再触发回写时,之前变更的内容还会再次尝试回写回去。之所以这么设计是因为,如果flyfish先使用了新配置,例如增加了一个字段,而数据库还未应用新的配置,此时回写肯定会失败的。如果后面数据库更新了配置,那么之后的回写就会成功。
from flyfish.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyfish.