Contenu connexe Similaire à Gizzard, DAL and more (20) Gizzard, DAL and more3. gizzard 2
• middle ware :
• like mysql-proxy ?
• any backends
• like mytrigger ?
• adapter ?
5. gizzard 4
• eventually consistent
• idempotent : f(f(n)) = f(n)
• commutative : f(a) + f(b) = f(b) + f(a)
• retry queue
6. gizzard 5
• gracefully failures
• read : route to remain ones
• write : make high priority to remain
replicas if any in a shard are unavailable
• retry queue
9. DAL 1
• Data Access Layer
• from iMobile
• by longker, simaliu and fulin
• Not only sharding
10. DAL 2
• data table, hash by pri id, less index
• index tables, hash by any “where field” on
demand
• front php devs : I don’t care !
11. DAL 3
• insert / update / delete : auto update index
table
• query : analyze sql, choose best index table
13. DAL 5
• any backend
• treat Lucene just like mysql : select field
from table where condition
• no replica
• backend do the job
15. more
• Discuss
• fans_all list in redis
• vary from 0 to 500w
• single hash at most 5000
• auto resharding
• async