There are only two hard things in Computer Science: Cache validation and naming things
1 | { |
采用zk作为元数据的存储
mysql binlog ->gds -> GDS Kafka -> Consumer-> kafka queue -> Executor -> other db/redis
每个库一个队列
controller + zookeeper来管理,前者用来调度,后者用来存储元数据信息
利用goroutine来进行并发,同时,根据key来分发,也有一定顺序性