{"$schema":"https://opencanviz.com/schema/v1.json","title":"Consistent hashing","artboard":{"x":-960,"y":-540,"width":1920,"height":1080,"background":"#0f172a"},"sceneNames":["Title","Modulo","Ring","Add a server","Results"],"transitions":[{"kind":"crossfade","durationMs":300},{"kind":"crossfade","durationMs":300},{"kind":"crossfade","durationMs":300},{"kind":"crossfade","durationMs":300}],"diagrams":[{"nodes":[{"id":"s1_ltr_h","kind":"text","x":-434.5,"y":-318.4,"w":195.8,"h":255,"text":"H","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":1,"opacity":1},{"id":"s1_ltr_a","kind":"text","x":-312.1,"y":-318.4,"w":195.8,"h":255,"text":"A","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":2,"opacity":1},{"id":"s1_ltr_s","kind":"text","x":-189.7,"y":-318.4,"w":195.8,"h":255,"text":"S","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":3,"opacity":1},{"id":"s1_ltr_h_2","kind":"text","x":-67.3,"y":-318.4,"w":195.8,"h":255,"text":"H","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":4,"opacity":1},{"id":"s1_ltr_i","kind":"text","x":45.9,"y":-318.4,"w":153,"h":255,"text":"I","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":1},{"id":"s1_ltr_n","kind":"text","x":116.3,"y":-318.4,"w":195.8,"h":255,"text":"N","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":6,"opacity":1},{"id":"s1_ltr_g","kind":"text","x":238.7,"y":-318.4,"w":195.8,"h":255,"text":"G","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":7,"opacity":1},{"id":"s1_consistent_hashing_expla","kind":"text","x":-840,"y":-3.7,"w":1680,"h":90,"text":"Consistent hashing, explained","fontWeight":400,"color":"#94a3b8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":48,"zIndex":8,"opacity":0}],"edges":[],"steps":[{"id":"s1_step0","durationMs":2000,"caption":"Consistent hashing.","easing":"ease","nodes":[{"id":"s1_ltr_h","kind":"text","x":-434.5,"y":-318.4,"w":195.8,"h":255,"text":"H","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":1,"opacity":1},{"id":"s1_ltr_a","kind":"text","x":-312.1,"y":-318.4,"w":195.8,"h":255,"text":"A","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":2,"opacity":1},{"id":"s1_ltr_s","kind":"text","x":-189.7,"y":-318.4,"w":195.8,"h":255,"text":"S","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":3,"opacity":1},{"id":"s1_ltr_h_2","kind":"text","x":-67.3,"y":-318.4,"w":195.8,"h":255,"text":"H","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":4,"opacity":1},{"id":"s1_ltr_i","kind":"text","x":45.9,"y":-318.4,"w":153,"h":255,"text":"I","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":1},{"id":"s1_ltr_n","kind":"text","x":116.3,"y":-318.4,"w":195.8,"h":255,"text":"N","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":6,"opacity":1},{"id":"s1_ltr_g","kind":"text","x":238.7,"y":-318.4,"w":195.8,"h":255,"text":"G","fontWeight":800,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","noGlow":true,"fontSize":170,"scaleX":1,"scaleY":1,"zIndex":7,"opacity":1},{"id":"s1_consistent_hashing_expla","kind":"text","x":-840,"y":-3.7,"w":1680,"h":90,"text":"Consistent hashing, explained","fontWeight":400,"color":"#94a3b8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":48,"zIndex":8,"opacity":0}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s1_ltr_h"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_a"},"mode":"fadeIn","durationMs":225,"offsetMs":170},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_a"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":45},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_s"},"mode":"fadeIn","durationMs":225,"offsetMs":215},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_s"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":90},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_h_2"},"mode":"fadeIn","durationMs":225,"offsetMs":260},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h_2"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":135},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_i"},"mode":"fadeIn","durationMs":225,"offsetMs":305},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_i"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":180},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_n"},"mode":"fadeIn","durationMs":225,"offsetMs":350},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_n"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":225},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_g"},"mode":"fadeIn","durationMs":225,"offsetMs":395},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_g"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":270}]},{"id":"s1_step1","delta":true,"durationMs":3300,"caption":"How caches spread keys without reshuffling everything.","easing":"ease","nodes":[{"id":"s1_consistent_hashing_expla","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s1_consistent_hashing_expla"},"mode":"fadeIn","durationMs":300,"offsetMs":198},{"type":"transformTween","target":{"kind":"node","id":"s1_consistent_hashing_expla"},"to":{},"ease":"ease-out","isRelative":true,"dx":0,"dy":-50,"durationMs":450}]},{"id":"s1_step2","delta":true,"durationMs":2900,"caption":"Let's start with the simple way.","easing":"ease","nodes":[{"id":"s1_ltr_h","opacity":0},{"id":"s1_ltr_a","opacity":0},{"id":"s1_ltr_s","opacity":0},{"id":"s1_ltr_h_2","opacity":0},{"id":"s1_ltr_i","opacity":0},{"id":"s1_ltr_n","opacity":0},{"id":"s1_ltr_g","opacity":0},{"id":"s1_consistent_hashing_expla","opacity":0}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s1_ltr_h"},"mode":"fadeOut","durationMs":380,"offsetMs":1801},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h"},"to":{"x":-554.3,"y":-273.3,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1801},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h"},"to":{"x":-434.5,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2181},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_a"},"mode":"fadeOut","durationMs":380,"offsetMs":1829},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_a"},"to":{"x":-455.1,"y":-301.2,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1829},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_a"},"to":{"x":-312.1,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2209},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_s"},"mode":"fadeOut","durationMs":380,"offsetMs":1857},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_s"},"to":{"x":-348.5,"y":-337.6,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1857},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_s"},"to":{"x":-189.7,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2237},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_h_2"},"mode":"fadeOut","durationMs":380,"offsetMs":1885},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h_2"},"to":{"x":97.4,"y":-256.4,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1885},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_h_2"},"to":{"x":-67.3,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2265},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_i"},"mode":"fadeOut","durationMs":380,"offsetMs":1913},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_i"},"to":{"x":232.4,"y":-364,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1913},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_i"},"to":{"x":45.9,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2293},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_n"},"mode":"fadeOut","durationMs":380,"offsetMs":1941},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_n"},"to":{"x":244.3,"y":-318.4,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1941},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_n"},"to":{"x":116.3,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2321},{"type":"visibility","target":{"kind":"node","id":"s1_ltr_g"},"mode":"fadeOut","durationMs":380,"offsetMs":1969},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_g"},"to":{"x":378.6,"y":-284.2,"scaleX":0.3,"scaleY":0.3},"ease":"ease-in","durationMs":380,"offsetMs":1969},{"type":"transformTween","target":{"kind":"node","id":"s1_ltr_g"},"to":{"x":238.7,"y":-318.4,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2349},{"type":"visibility","target":{"kind":"node","id":"s1_consistent_hashing_expla"},"mode":"fadeOut","durationMs":400,"offsetMs":2350}]}],"narration":[{"id":"s1_n0","text":"Consistent hashing.","stepIndex":0,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s1_n1","text":"How caches spread keys without reshuffling everything.","stepIndex":1,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s1_n2","text":"Let's start with the simple way.","stepIndex":2,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}}]},{"nodes":[{"id":"s2_server_hash_key_mod_n","kind":"text","x":-840,"y":-480,"w":1680,"h":120,"text":"server = hash(key) mod N","fontWeight":700,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":60,"zIndex":1,"opacity":1,"typeProgress":1},{"id":"s2_tbl_r0c0","kind":"rect","x":-800,"y":-270,"w":211.1,"h":104,"label":"key","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","zIndex":2,"opacity":0},{"id":"s2_tbl_r0c1","kind":"rect","x":-582.9,"y":-270,"w":211.1,"h":104,"label":"hash","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","zIndex":3,"opacity":0},{"id":"s2_tbl_r0c2","kind":"rect","x":-365.8,"y":-270,"w":211.1,"h":104,"label":"mod 3","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","scaleX":1,"scaleY":1,"zIndex":4,"opacity":0},{"id":"s2_tbl_r0c3","kind":"rect","x":-148.7,"y":-270,"w":211.1,"h":104,"label":"mod 4","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s2_tbl_r1c0","kind":"rect","x":-800,"y":-160,"w":211.1,"h":104,"label":"k1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":6,"opacity":0},{"id":"s2_tbl_r1c1","kind":"rect","x":-582.9,"y":-160,"w":211.1,"h":104,"label":"9","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":7,"opacity":0},{"id":"s2_tbl_r1c2","kind":"rect","x":-365.8,"y":-160,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0},{"id":"s2_tbl_r1c3","kind":"rect","x":-148.7,"y":-160,"w":211.1,"h":104,"label":"1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":9,"opacity":0},{"id":"s2_tbl_r2c0","kind":"rect","x":-800,"y":-50,"w":211.1,"h":104,"label":"k2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":10,"opacity":0},{"id":"s2_tbl_r2c1","kind":"rect","x":-582.9,"y":-50,"w":211.1,"h":104,"label":"10","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":11,"opacity":0},{"id":"s2_tbl_r2c2","kind":"rect","x":-365.8,"y":-50,"w":211.1,"h":104,"label":"1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":12,"opacity":0},{"id":"s2_tbl_r2c3","kind":"rect","x":-148.7,"y":-50,"w":211.1,"h":104,"label":"2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":13,"opacity":0},{"id":"s2_tbl_r3c0","kind":"rect","x":-800,"y":60,"w":211.1,"h":104,"label":"k3","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":14,"opacity":0},{"id":"s2_tbl_r3c1","kind":"rect","x":-582.9,"y":60,"w":211.1,"h":104,"label":"11","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":15,"opacity":0},{"id":"s2_tbl_r3c2","kind":"rect","x":-365.8,"y":60,"w":211.1,"h":104,"label":"2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":16,"opacity":0},{"id":"s2_tbl_r3c3","kind":"rect","x":-148.7,"y":60,"w":211.1,"h":104,"label":"3","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":17,"opacity":0},{"id":"s2_tbl_r4c0","kind":"rect","x":-800,"y":170,"w":211.1,"h":104,"label":"k4","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":18,"opacity":0},{"id":"s2_tbl_r4c1","kind":"rect","x":-582.9,"y":170,"w":211.1,"h":104,"label":"12","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":19,"opacity":0},{"id":"s2_tbl_r4c2","kind":"rect","x":-365.8,"y":170,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":20,"opacity":0},{"id":"s2_tbl_r4c3","kind":"rect","x":-148.7,"y":170,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":21,"opacity":0},{"id":"s2_cmp_lbl0","kind":"text","x":132.4,"y":-240,"w":657.6,"h":59,"text":"Keys that move","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":22,"opacity":0},{"id":"s2_cmp_bar0","kind":"rect","x":132.4,"y":-164.8,"w":480.8,"h":62.7,"fill":"#ef4444","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":23,"opacity":0},{"id":"s2_cmp_num0","kind":"text","x":629.2,"y":-177,"w":176.8,"h":87,"text":"75%","fontWeight":800,"color":"#ef4444","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":24,"opacity":0},{"id":"s2_cmp_lbl1","kind":"text","x":132.4,"y":17,"w":657.6,"h":59,"text":"Keys that stay","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":25,"opacity":0},{"id":"s2_cmp_bar1","kind":"rect","x":132.4,"y":92.2,"w":160.3,"h":62.7,"fill":"#64748b","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":26,"opacity":0},{"id":"s2_cmp_num1","kind":"text","x":308.7,"y":80,"w":176.8,"h":87,"text":"25%","fontWeight":800,"color":"#64748b","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":27,"opacity":0}],"edges":[],"steps":[{"id":"s2_step0","durationMs":4400,"caption":"The simple way: hash the key, mod the server count.","easing":"ease","nodes":[{"id":"s2_server_hash_key_mod_n","kind":"text","x":-840,"y":-480,"w":1680,"h":120,"text":"server = hash(key) mod N","fontWeight":700,"color":"#f8fafc","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":60,"zIndex":1,"opacity":1,"typeProgress":1},{"id":"s2_tbl_r0c0","kind":"rect","x":-800,"y":-270,"w":211.1,"h":104,"label":"key","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","zIndex":2,"opacity":0},{"id":"s2_tbl_r0c1","kind":"rect","x":-582.9,"y":-270,"w":211.1,"h":104,"label":"hash","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","zIndex":3,"opacity":0},{"id":"s2_tbl_r0c2","kind":"rect","x":-365.8,"y":-270,"w":211.1,"h":104,"label":"mod 3","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","scaleX":1,"scaleY":1,"zIndex":4,"opacity":0},{"id":"s2_tbl_r0c3","kind":"rect","x":-148.7,"y":-270,"w":211.1,"h":104,"label":"mod 4","labelColor":"#f8fafc","fill":"#1e3a5f","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"labelFontWeight":"bold","scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s2_tbl_r1c0","kind":"rect","x":-800,"y":-160,"w":211.1,"h":104,"label":"k1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":6,"opacity":0},{"id":"s2_tbl_r1c1","kind":"rect","x":-582.9,"y":-160,"w":211.1,"h":104,"label":"9","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":7,"opacity":0},{"id":"s2_tbl_r1c2","kind":"rect","x":-365.8,"y":-160,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0},{"id":"s2_tbl_r1c3","kind":"rect","x":-148.7,"y":-160,"w":211.1,"h":104,"label":"1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":9,"opacity":0},{"id":"s2_tbl_r2c0","kind":"rect","x":-800,"y":-50,"w":211.1,"h":104,"label":"k2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":10,"opacity":0},{"id":"s2_tbl_r2c1","kind":"rect","x":-582.9,"y":-50,"w":211.1,"h":104,"label":"10","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":11,"opacity":0},{"id":"s2_tbl_r2c2","kind":"rect","x":-365.8,"y":-50,"w":211.1,"h":104,"label":"1","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":12,"opacity":0},{"id":"s2_tbl_r2c3","kind":"rect","x":-148.7,"y":-50,"w":211.1,"h":104,"label":"2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":13,"opacity":0},{"id":"s2_tbl_r3c0","kind":"rect","x":-800,"y":60,"w":211.1,"h":104,"label":"k3","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":14,"opacity":0},{"id":"s2_tbl_r3c1","kind":"rect","x":-582.9,"y":60,"w":211.1,"h":104,"label":"11","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":15,"opacity":0},{"id":"s2_tbl_r3c2","kind":"rect","x":-365.8,"y":60,"w":211.1,"h":104,"label":"2","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":16,"opacity":0},{"id":"s2_tbl_r3c3","kind":"rect","x":-148.7,"y":60,"w":211.1,"h":104,"label":"3","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":17,"opacity":0},{"id":"s2_tbl_r4c0","kind":"rect","x":-800,"y":170,"w":211.1,"h":104,"label":"k4","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":18,"opacity":0},{"id":"s2_tbl_r4c1","kind":"rect","x":-582.9,"y":170,"w":211.1,"h":104,"label":"12","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"zIndex":19,"opacity":0},{"id":"s2_tbl_r4c2","kind":"rect","x":-365.8,"y":170,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":20,"opacity":0},{"id":"s2_tbl_r4c3","kind":"rect","x":-148.7,"y":170,"w":211.1,"h":104,"label":"0","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#334155","strokeWidth":2,"cornerRadius":8,"noGlow":true,"labelFontSize":40,"scaleX":1,"scaleY":1,"zIndex":21,"opacity":0},{"id":"s2_cmp_lbl0","kind":"text","x":132.4,"y":-240,"w":657.6,"h":59,"text":"Keys that move","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":22,"opacity":0},{"id":"s2_cmp_bar0","kind":"rect","x":132.4,"y":-164.8,"w":480.8,"h":62.7,"fill":"#ef4444","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":23,"opacity":0},{"id":"s2_cmp_num0","kind":"text","x":629.2,"y":-177,"w":176.8,"h":87,"text":"75%","fontWeight":800,"color":"#ef4444","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":24,"opacity":0},{"id":"s2_cmp_lbl1","kind":"text","x":132.4,"y":17,"w":657.6,"h":59,"text":"Keys that stay","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":25,"opacity":0},{"id":"s2_cmp_bar1","kind":"rect","x":132.4,"y":92.2,"w":160.3,"h":62.7,"fill":"#64748b","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":26,"opacity":0},{"id":"s2_cmp_num1","kind":"text","x":308.7,"y":80,"w":176.8,"h":87,"text":"25%","fontWeight":800,"color":"#64748b","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":27,"opacity":0}],"edges":[],"actions":[{"type":"transformTween","target":{"kind":"node","id":"s2_server_hash_key_mod_n"},"from":{"typeProgress":0},"to":{"typeProgress":1},"ease":"linear","durationMs":857}]},{"id":"s2_step1","delta":true,"durationMs":3300,"caption":"Here are four keys and their hashes.","easing":"ease","nodes":[{"id":"s2_tbl_r0c0","opacity":1},{"id":"s2_tbl_r0c1","opacity":1},{"id":"s2_tbl_r1c0","opacity":1},{"id":"s2_tbl_r1c1","opacity":1},{"id":"s2_tbl_r2c0","opacity":1},{"id":"s2_tbl_r2c1","opacity":1},{"id":"s2_tbl_r3c0","opacity":1},{"id":"s2_tbl_r3c1","opacity":1},{"id":"s2_tbl_r4c0","opacity":1},{"id":"s2_tbl_r4c1","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r0c0"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r1c0"},"mode":"fadeIn","durationMs":500,"offsetMs":180},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r2c0"},"mode":"fadeIn","durationMs":500,"offsetMs":360},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r3c0"},"mode":"fadeIn","durationMs":500,"offsetMs":540},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r4c0"},"mode":"fadeIn","durationMs":500,"offsetMs":720},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r0c1"},"mode":"fadeIn","durationMs":500,"offsetMs":300},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r1c1"},"mode":"fadeIn","durationMs":500,"offsetMs":480},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r2c1"},"mode":"fadeIn","durationMs":500,"offsetMs":660},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r3c1"},"mode":"fadeIn","durationMs":500,"offsetMs":840},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r4c1"},"mode":"fadeIn","durationMs":500,"offsetMs":1020}]},{"id":"s2_step2","delta":true,"durationMs":4400,"caption":"With three servers, each key lands on hash mod three.","easing":"ease","nodes":[{"id":"s2_tbl_r0c2","opacity":1},{"id":"s2_tbl_r1c2","opacity":1},{"id":"s2_tbl_r2c2","opacity":1},{"id":"s2_tbl_r3c2","opacity":1},{"id":"s2_tbl_r4c2","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r0c2"},"mode":"fadeIn","durationMs":250},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r0c2"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r1c2"},"mode":"fadeIn","durationMs":250,"offsetMs":120},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r1c2"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":120},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r2c2"},"mode":"fadeIn","durationMs":250,"offsetMs":240},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r2c2"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":240},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r3c2"},"mode":"fadeIn","durationMs":250,"offsetMs":360},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r3c2"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":360},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r4c2"},"mode":"fadeIn","durationMs":250,"offsetMs":480},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r4c2"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":480}]},{"id":"s2_step3","delta":true,"durationMs":2900,"caption":"Add a fourth server and recompute.","easing":"ease","nodes":[{"id":"s2_tbl_r0c3","opacity":1},{"id":"s2_tbl_r1c3","opacity":1},{"id":"s2_tbl_r2c3","opacity":1},{"id":"s2_tbl_r3c3","opacity":1},{"id":"s2_tbl_r4c3","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r0c3"},"mode":"fadeIn","durationMs":250},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r0c3"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r1c3"},"mode":"fadeIn","durationMs":250,"offsetMs":120},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r1c3"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":120},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r2c3"},"mode":"fadeIn","durationMs":250,"offsetMs":240},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r2c3"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":240},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r3c3"},"mode":"fadeIn","durationMs":250,"offsetMs":360},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r3c3"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":360},{"type":"visibility","target":{"kind":"node","id":"s2_tbl_r4c3"},"mode":"fadeIn","durationMs":250,"offsetMs":480},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r4c3"},"from":{"scaleX":0.6,"scaleY":0.6},"to":{"scaleX":1,"scaleY":1},"ease":"back","durationMs":500,"offsetMs":480}]},{"id":"s2_step4","delta":true,"durationMs":5200,"caption":"Three of the four keys moved. Every move is a cache miss.","easing":"ease","nodes":[{"id":"s2_tbl_r1c3","fill":"#ef4444"},{"id":"s2_tbl_r2c3","fill":"#ef4444"},{"id":"s2_tbl_r3c3","fill":"#ef4444"}],"edges":[],"actions":[{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r1c3"},"to":{"fill":"#ef4444"},"ease":"ease-out","durationMs":350},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r2c3"},"to":{"fill":"#ef4444"},"ease":"ease-out","durationMs":350},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r3c3"},"to":{"fill":"#ef4444"},"ease":"ease-out","durationMs":350},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r4c3"},"to":{"fill":"#946921"},"ease":"ease-out","durationMs":160,"offsetMs":600},{"type":"transformTween","target":{"kind":"node","id":"s2_tbl_r4c3"},"to":{"fill":"#1e293b"},"ease":"ease-in","durationMs":350,"offsetMs":4700}]},{"id":"s2_step5","delta":true,"durationMs":5200,"caption":"Across many keys, three quarters move. Only one in four stays put.","easing":"ease","nodes":[{"id":"s2_cmp_lbl0","opacity":1},{"id":"s2_cmp_bar0","opacity":1},{"id":"s2_cmp_num0","opacity":1},{"id":"s2_cmp_lbl1","opacity":1},{"id":"s2_cmp_bar1","opacity":1},{"id":"s2_cmp_num1","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s2_cmp_lbl0"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_cmp_lbl1"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_cmp_bar0"},"mode":"fadeIn","durationMs":60,"offsetMs":500},{"type":"transformTween","target":{"kind":"node","id":"s2_cmp_bar0"},"to":{"scaleX":1},"from":{"scaleX":0.01},"ease":"ease-out","durationMs":600,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_cmp_bar1"},"mode":"fadeIn","durationMs":60,"offsetMs":800},{"type":"transformTween","target":{"kind":"node","id":"s2_cmp_bar1"},"to":{"scaleX":1},"from":{"scaleX":0.01},"ease":"ease-out","durationMs":600,"offsetMs":800},{"type":"visibility","target":{"kind":"node","id":"s2_cmp_num0"},"mode":"fadeIn","durationMs":225,"offsetMs":625},{"type":"transformTween","target":{"kind":"node","id":"s2_cmp_num0"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s2_cmp_num1"},"mode":"fadeIn","durationMs":225,"offsetMs":925},{"type":"transformTween","target":{"kind":"node","id":"s2_cmp_num1"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":800}]}],"narration":[{"id":"s2_n0","text":"The simple way: hash the key, mod the server count.","stepIndex":0,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s2_n1","text":"Here are four keys and their hashes.","stepIndex":1,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s2_n2","text":"With three servers, each key lands on hash mod three.","stepIndex":2,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s2_n3","text":"Add a fourth server and recompute.","stepIndex":3,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s2_n4","text":"Three of the four keys moved. Every move is a cache miss.","stepIndex":4,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s2_n5","text":"Across many keys, three quarters move. Only one in four stays put.","stepIndex":5,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}}]},{"nodes":[{"id":"s3_ring","kind":"circle","x":-345,"y":-453,"w":690,"h":690,"fill":"transparent","stroke":"#334155","strokeWidth":6,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":1,"opacity":1},{"id":"s3_arca","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"startAngle":176,"endAngle":294,"innerRadius":0.9602,"noGlow":true,"zIndex":2,"opacity":0},{"id":"s3_arcb","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#22c55e","stroke":"none","strokeWidth":3,"startAngle":-54,"endAngle":54,"innerRadius":0.9602,"noGlow":true,"zIndex":3,"opacity":0},{"id":"s3_arcc","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"startAngle":66,"endAngle":164,"innerRadius":0.9602,"noGlow":true,"zIndex":4,"opacity":0},{"id":"s3_dot","kind":"circle","x":142.5,"y":-436.8,"w":60,"h":60,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s3_dot_lbl","kind":"text","x":181.3,"y":-503.5,"w":60,"h":59,"text":"A","fontWeight":700,"color":"#38bdf8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":6,"opacity":0},{"id":"s3_k1","kind":"circle","x":324.8,"y":-182.9,"w":30,"h":30,"fill":"#f472b6","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":7,"opacity":0},{"id":"s3_dot_2","kind":"circle","x":142.5,"y":160.8,"w":60,"h":60,"fill":"#22c55e","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0},{"id":"s3_dot_lbl_2","kind":"text","x":181.3,"y":228.5,"w":60,"h":59,"text":"B","fontWeight":700,"color":"#22c55e","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":9,"opacity":0},{"id":"s3_k2","kind":"circle","x":-133,"y":201.2,"w":30,"h":30,"fill":"#f472b6","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":10,"opacity":0},{"id":"s3_dot_3","kind":"circle","x":-369.8,"y":-78.1,"w":60,"h":60,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":11,"opacity":0},{"id":"s3_dot_lbl_3","kind":"text","x":-446.2,"y":-64.1,"w":60,"h":59,"text":"C","fontWeight":700,"color":"#f59e0b","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":12,"opacity":0},{"id":"s3_k1_lbl","kind":"text","x":371.4,"y":-208.3,"w":60,"h":59,"text":"k1","fontWeight":700,"color":"#f472b6","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":13,"opacity":0},{"id":"s3_k2_lbl","kind":"text","x":-169.4,"y":245.5,"w":60,"h":59,"text":"k2","fontWeight":700,"color":"#f472b6","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":14,"opacity":0}],"edges":[],"steps":[{"id":"s3_step0","durationMs":3700,"caption":"Instead, bend the hash space into a ring.","easing":"ease","nodes":[{"id":"s3_ring","kind":"circle","x":-345,"y":-453,"w":690,"h":690,"fill":"transparent","stroke":"#334155","strokeWidth":6,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":1,"opacity":1},{"id":"s3_arca","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"startAngle":176,"endAngle":294,"innerRadius":0.9602,"noGlow":true,"zIndex":2,"opacity":0},{"id":"s3_arcb","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#22c55e","stroke":"none","strokeWidth":3,"startAngle":-54,"endAngle":54,"innerRadius":0.9602,"noGlow":true,"zIndex":3,"opacity":0},{"id":"s3_arcc","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"startAngle":66,"endAngle":164,"innerRadius":0.9602,"noGlow":true,"zIndex":4,"opacity":0},{"id":"s3_dot","kind":"circle","x":142.5,"y":-436.8,"w":60,"h":60,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s3_dot_lbl","kind":"text","x":181.3,"y":-503.5,"w":60,"h":59,"text":"A","fontWeight":700,"color":"#38bdf8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":6,"opacity":0},{"id":"s3_k1","kind":"circle","x":324.8,"y":-182.9,"w":30,"h":30,"fill":"#f472b6","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":7,"opacity":0},{"id":"s3_dot_2","kind":"circle","x":142.5,"y":160.8,"w":60,"h":60,"fill":"#22c55e","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0},{"id":"s3_dot_lbl_2","kind":"text","x":181.3,"y":228.5,"w":60,"h":59,"text":"B","fontWeight":700,"color":"#22c55e","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":9,"opacity":0},{"id":"s3_k2","kind":"circle","x":-133,"y":201.2,"w":30,"h":30,"fill":"#f472b6","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":10,"opacity":0},{"id":"s3_dot_3","kind":"circle","x":-369.8,"y":-78.1,"w":60,"h":60,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":11,"opacity":0},{"id":"s3_dot_lbl_3","kind":"text","x":-446.2,"y":-64.1,"w":60,"h":59,"text":"C","fontWeight":700,"color":"#f59e0b","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":12,"opacity":0},{"id":"s3_k1_lbl","kind":"text","x":371.4,"y":-208.3,"w":60,"h":59,"text":"k1","fontWeight":700,"color":"#f472b6","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":13,"opacity":0},{"id":"s3_k2_lbl","kind":"text","x":-169.4,"y":245.5,"w":60,"h":59,"text":"k2","fontWeight":700,"color":"#f472b6","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":14,"opacity":0}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_ring"},"mode":"fadeIn","durationMs":300},{"type":"transformTween","target":{"kind":"node","id":"s3_ring"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":1.6,"scaleY":1.6},"ease":"ease-out","durationMs":500}]},{"id":"s3_step1","delta":true,"durationMs":3700,"caption":"Each server is hashed onto the ring too.","easing":"ease","nodes":[{"id":"s3_dot","opacity":1},{"id":"s3_dot_lbl","opacity":1},{"id":"s3_dot_2","opacity":1},{"id":"s3_dot_lbl_2","opacity":1},{"id":"s3_dot_3","opacity":1},{"id":"s3_dot_lbl_3","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_dot"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"visibility","target":{"kind":"node","id":"s3_dot_lbl"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"transformTween","target":{"kind":"node","id":"s3_dot"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":-79.3,"dy":148.1,"durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s3_dot_2"},"mode":"fadeIn","durationMs":225,"offsetMs":285},{"type":"visibility","target":{"kind":"node","id":"s3_dot_lbl_2"},"mode":"fadeIn","durationMs":225,"offsetMs":285},{"type":"transformTween","target":{"kind":"node","id":"s3_dot_2"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":-87.7,"dy":-143.3,"durationMs":500,"offsetMs":160},{"type":"visibility","target":{"kind":"node","id":"s3_dot_3"},"mode":"fadeIn","durationMs":225,"offsetMs":445},{"type":"visibility","target":{"kind":"node","id":"s3_dot_lbl_3"},"mode":"fadeIn","durationMs":225,"offsetMs":445},{"type":"transformTween","target":{"kind":"node","id":"s3_dot_3"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":166.9,"dy":-19.5,"durationMs":500,"offsetMs":320}]},{"id":"s3_step2","delta":true,"durationMs":4400,"caption":"A key hashes to a spot on the same ring.","easing":"ease","nodes":[{"id":"s3_k1","opacity":1},{"id":"s3_k1_lbl","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_k1"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"visibility","target":{"kind":"node","id":"s3_k1_lbl"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500}]},{"id":"s3_step3","delta":true,"durationMs":4100,"caption":"It walks clockwise to the first server it meets.","easing":"ease","nodes":[{"id":"s3_k1","x":157.5,"y":175.8,"opacity":0},{"id":"s3_k1_lbl","x":173.8,"y":215.5,"opacity":0}],"edges":[],"actions":[{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":329.9,"y":-113},"ease":"linear","durationMs":200},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":320.7,"y":-43.4},"ease":"linear","durationMs":200,"offsetMs":200},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":297.7,"y":22.8},"ease":"linear","durationMs":200,"offsetMs":400},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":261.7,"y":83},"ease":"linear","durationMs":200,"offsetMs":600},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":214.4,"y":134.7},"ease":"linear","durationMs":200,"offsetMs":800},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":157.5,"y":175.8},"ease":"linear","durationMs":200,"offsetMs":1000},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":377.4,"y":-125.6},"ease":"linear","durationMs":200},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":366.6,"y":-43.5},"ease":"linear","durationMs":200,"offsetMs":200},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":339.4,"y":34.8},"ease":"linear","durationMs":200,"offsetMs":400},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":296.9,"y":105.9},"ease":"linear","durationMs":200,"offsetMs":600},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":241,"y":167},"ease":"linear","durationMs":200,"offsetMs":800},{"type":"transformTween","target":{"kind":"node","id":"s3_k1_lbl"},"to":{"x":173.8,"y":215.5},"ease":"linear","durationMs":200,"offsetMs":1000},{"type":"visibility","target":{"kind":"node","id":"s3_k1_lbl"},"mode":"fadeOut","durationMs":300,"offsetMs":385},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":157.5,"y":175.8,"scaleX":0.4,"scaleY":0.4},"ease":"ease-in","durationMs":500,"offsetMs":1200},{"type":"visibility","target":{"kind":"node","id":"s3_k1"},"mode":"fadeOut","durationMs":200,"offsetMs":1620},{"type":"transformTween","target":{"kind":"node","id":"s3_k1"},"to":{"x":157.5,"y":175.8,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":1830}]},{"id":"s3_step4","delta":true,"durationMs":4100,"caption":"So B owns everything from A up to B.","easing":"ease","nodes":[{"id":"s3_arcb","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_arcb"},"mode":"fadeIn","durationMs":60},{"type":"transformTween","target":{"kind":"node","id":"s3_arcb"},"to":{"endAngle":54},"from":{"endAngle":-53},"ease":"ease-out","durationMs":800}]},{"id":"s3_step5","delta":true,"durationMs":3100,"caption":"A second key walks to C.","easing":"ease","nodes":[{"id":"s3_k2","x":-354.8,"y":-63.1},{"id":"s3_k2_lbl","x":-431.4,"y":-66.7}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_k2"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"visibility","target":{"kind":"node","id":"s3_k2_lbl"},"mode":"fadeIn","durationMs":225,"offsetMs":125},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-197.8,"y":169.6},"ease":"linear","durationMs":240,"offsetMs":600},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-254.7,"y":125.2},"ease":"linear","durationMs":240,"offsetMs":840},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-301,"y":69.9},"ease":"linear","durationMs":240,"offsetMs":1080},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-334.9,"y":6.2},"ease":"linear","durationMs":240,"offsetMs":1320},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-354.8,"y":-63.1},"ease":"linear","durationMs":240,"offsetMs":1560},{"type":"transformTween","target":{"kind":"node","id":"s3_k2_lbl"},"to":{"x":-246,"y":208.2},"ease":"linear","durationMs":240,"offsetMs":600},{"type":"transformTween","target":{"kind":"node","id":"s3_k2_lbl"},"to":{"x":-313.1,"y":155.7},"ease":"linear","durationMs":240,"offsetMs":840},{"type":"transformTween","target":{"kind":"node","id":"s3_k2_lbl"},"to":{"x":-367.9,"y":90.4},"ease":"linear","durationMs":240,"offsetMs":1080},{"type":"transformTween","target":{"kind":"node","id":"s3_k2_lbl"},"to":{"x":-407.9,"y":15.2},"ease":"linear","durationMs":240,"offsetMs":1320},{"type":"transformTween","target":{"kind":"node","id":"s3_k2_lbl"},"to":{"x":-431.4,"y":-66.7},"ease":"linear","durationMs":240,"offsetMs":1560},{"type":"visibility","target":{"kind":"node","id":"s3_k2_lbl"},"mode":"fadeOut","durationMs":300,"offsetMs":900},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-354.8,"y":-63.1,"scaleX":0.4,"scaleY":0.4},"ease":"ease-in","durationMs":500,"offsetMs":1800},{"type":"visibility","target":{"kind":"node","id":"s3_k2"},"mode":"fadeOut","durationMs":200,"offsetMs":2220},{"type":"transformTween","target":{"kind":"node","id":"s3_k2"},"to":{"x":-354.8,"y":-63.1,"scaleX":1,"scaleY":1},"ease":"step","durationMs":1,"offsetMs":2430}]},{"id":"s3_step6","delta":true,"durationMs":3700,"caption":"Every server owns the arc just before it.","easing":"ease","nodes":[{"id":"s3_arca","opacity":1},{"id":"s3_arcc","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s3_arcc"},"mode":"fadeIn","durationMs":60},{"type":"transformTween","target":{"kind":"node","id":"s3_arcc"},"to":{"endAngle":164},"from":{"endAngle":67},"ease":"ease-out","durationMs":800},{"type":"visibility","target":{"kind":"node","id":"s3_arca"},"mode":"fadeIn","durationMs":60,"offsetMs":300},{"type":"transformTween","target":{"kind":"node","id":"s3_arca"},"to":{"endAngle":294},"from":{"endAngle":177},"ease":"ease-out","durationMs":800,"offsetMs":300}]}],"narration":[{"id":"s3_n0","text":"Instead, bend the hash space into a ring.","stepIndex":0,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n1","text":"Each server is hashed onto the ring too.","stepIndex":1,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n2","text":"A key hashes to a spot on the same ring.","stepIndex":2,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n3","text":"It walks clockwise to the first server it meets.","stepIndex":3,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n4","text":"So B owns everything from A up to B.","stepIndex":4,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n5","text":"A second key walks to C.","stepIndex":5,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s3_n6","text":"Every server owns the arc just before it.","stepIndex":6,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}}]},{"nodes":[{"id":"s4_ring","kind":"circle","x":-345,"y":-453,"w":690,"h":690,"fill":"transparent","stroke":"#334155","strokeWidth":6,"noGlow":true,"zIndex":1,"opacity":1},{"id":"s4_arca","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"startAngle":176,"endAngle":294,"innerRadius":0.9602,"noGlow":true,"zIndex":2,"opacity":1},{"id":"s4_arcb","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#22c55e","stroke":"none","strokeWidth":3,"startAngle":-54,"endAngle":54,"innerRadius":0.9602,"noGlow":true,"zIndex":3,"opacity":1},{"id":"s4_arcc","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"startAngle":121,"endAngle":164,"innerRadius":0.9602,"noGlow":true,"zIndex":4,"opacity":1},{"id":"s4_arcd","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#a78bfa","stroke":"none","strokeWidth":3,"startAngle":66,"endAngle":109,"innerRadius":0.9602,"noGlow":true,"zIndex":5,"opacity":0},{"id":"s4_dot","kind":"circle","x":142.5,"y":-436.8,"w":60,"h":60,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":6,"opacity":1},{"id":"s4_dot_lbl","kind":"text","x":181.3,"y":-503.5,"w":60,"h":59,"text":"A","fontWeight":700,"color":"#38bdf8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":7,"opacity":1},{"id":"s4_dot_2","kind":"circle","x":142.5,"y":160.8,"w":60,"h":60,"fill":"#22c55e","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":8,"opacity":1},{"id":"s4_dot_lbl_2","kind":"text","x":181.3,"y":228.5,"w":60,"h":59,"text":"B","fontWeight":700,"color":"#22c55e","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":9,"opacity":1},{"id":"s4_dot_3","kind":"circle","x":-369.8,"y":-78.1,"w":60,"h":60,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":10,"opacity":1},{"id":"s4_dot_lbl_3","kind":"text","x":-446.2,"y":-64.1,"w":60,"h":59,"text":"C","fontWeight":700,"color":"#f59e0b","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":11,"opacity":1},{"id":"s4_srvd","kind":"circle","x":-175.8,"y":174.7,"w":60,"h":60,"fill":"#a78bfa","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":12,"opacity":1},{"id":"s4_srvd_lbl","kind":"text","x":-208.6,"y":245.5,"w":60,"h":59,"text":"D","fontWeight":700,"color":"#a78bfa","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":13,"opacity":1}],"edges":[],"steps":[{"id":"s4_step0","durationMs":3700,"caption":"Now add server D between B and C.","easing":"ease","nodes":[{"id":"s4_ring","kind":"circle","x":-345,"y":-453,"w":690,"h":690,"fill":"transparent","stroke":"#334155","strokeWidth":6,"noGlow":true,"zIndex":1,"opacity":1},{"id":"s4_arca","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"startAngle":176,"endAngle":294,"innerRadius":0.9602,"noGlow":true,"zIndex":2,"opacity":1},{"id":"s4_arcb","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#22c55e","stroke":"none","strokeWidth":3,"startAngle":-54,"endAngle":54,"innerRadius":0.9602,"noGlow":true,"zIndex":3,"opacity":1},{"id":"s4_arcc","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"startAngle":121,"endAngle":164,"innerRadius":0.9602,"noGlow":true,"zIndex":4,"opacity":1},{"id":"s4_arcd","kind":"wedge","x":-352,"y":-460,"w":704,"h":704,"fill":"#a78bfa","stroke":"none","strokeWidth":3,"startAngle":66,"endAngle":109,"innerRadius":0.9602,"noGlow":true,"zIndex":5,"opacity":0},{"id":"s4_dot","kind":"circle","x":142.5,"y":-436.8,"w":60,"h":60,"fill":"#38bdf8","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":6,"opacity":1},{"id":"s4_dot_lbl","kind":"text","x":181.3,"y":-503.5,"w":60,"h":59,"text":"A","fontWeight":700,"color":"#38bdf8","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":7,"opacity":1},{"id":"s4_dot_2","kind":"circle","x":142.5,"y":160.8,"w":60,"h":60,"fill":"#22c55e","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":8,"opacity":1},{"id":"s4_dot_lbl_2","kind":"text","x":181.3,"y":228.5,"w":60,"h":59,"text":"B","fontWeight":700,"color":"#22c55e","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":9,"opacity":1},{"id":"s4_dot_3","kind":"circle","x":-369.8,"y":-78.1,"w":60,"h":60,"fill":"#f59e0b","stroke":"none","strokeWidth":3,"noGlow":true,"zIndex":10,"opacity":1},{"id":"s4_dot_lbl_3","kind":"text","x":-446.2,"y":-64.1,"w":60,"h":59,"text":"C","fontWeight":700,"color":"#f59e0b","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":11,"opacity":1},{"id":"s4_srvd","kind":"circle","x":-175.8,"y":174.7,"w":60,"h":60,"fill":"#a78bfa","stroke":"none","strokeWidth":3,"noGlow":true,"scaleX":1,"scaleY":1,"zIndex":12,"opacity":1},{"id":"s4_srvd_lbl","kind":"text","x":-208.6,"y":245.5,"w":60,"h":59,"text":"D","fontWeight":700,"color":"#a78bfa","textAlign":"center","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":13,"opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s4_ring"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot_lbl"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot_2"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot_lbl_2"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot_3"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_dot_lbl_3"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s4_arca"},"mode":"fadeIn","durationMs":500,"offsetMs":1000},{"type":"visibility","target":{"kind":"node","id":"s4_arcb"},"mode":"fadeIn","durationMs":500,"offsetMs":1000},{"type":"visibility","target":{"kind":"node","id":"s4_arcc"},"mode":"fadeIn","durationMs":500,"offsetMs":1000},{"type":"visibility","target":{"kind":"node","id":"s4_srvd"},"mode":"fadeIn","durationMs":225,"offsetMs":1625},{"type":"visibility","target":{"kind":"node","id":"s4_srvd_lbl"},"mode":"fadeIn","durationMs":225,"offsetMs":1625},{"type":"transformTween","target":{"kind":"node","id":"s4_srvd"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":1500},{"type":"transformTween","target":{"kind":"node","id":"s4_arcc"},"to":{"startAngle":121},"ease":"ease-out","durationMs":400,"offsetMs":1625}]},{"id":"s4_step1","delta":true,"durationMs":4400,"caption":"D takes over only the keys between B and D.","easing":"ease","nodes":[{"id":"s4_arcd","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s4_arcd"},"mode":"fadeIn","durationMs":60},{"type":"transformTween","target":{"kind":"node","id":"s4_arcd"},"to":{"endAngle":109},"from":{"endAngle":67},"ease":"ease-out","durationMs":800}]},{"id":"s4_step2","delta":true,"durationMs":4100,"caption":"Only those keys move. A and B keep theirs.","easing":"ease","nodes":[],"edges":[],"actions":[{"type":"transformTween","target":{"kind":"node","id":"s4_arcd"},"to":{"fill":"#cfbffc"},"ease":"ease-out","durationMs":160},{"type":"transformTween","target":{"kind":"node","id":"s4_arcd"},"to":{"fill":"#a78bfa"},"ease":"ease-in","durationMs":350,"offsetMs":3600}]}],"narration":[{"id":"s4_n0","text":"Now add server D between B and C.","stepIndex":0,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s4_n1","text":"D takes over only the keys between B and D.","stepIndex":1,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s4_n2","text":"Only those keys move. A and B keep theirs.","stepIndex":2,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}}]},{"nodes":[{"id":"s5_clients","kind":"rect","x":-530,"y":-385,"w":320,"h":150,"label":"Clients","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#f472b6","strokeWidth":3,"cornerRadius":16,"labelFontSize":40,"zIndex":1,"opacity":1},{"id":"s5_ring_of_caches","kind":"rect","x":210,"y":-385,"w":320,"h":150,"label":"Ring of caches","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#22c55e","strokeWidth":3,"cornerRadius":16,"labelFontSize":40,"zIndex":2,"opacity":1},{"id":"s5_cmp_lbl0","kind":"text","x":-620,"y":-120,"w":1240,"h":59,"text":"Keys moved, mod N","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":3,"opacity":0},{"id":"s5_cmp_bar0","kind":"rect","x":-620,"y":-44.9,"w":1063.2,"h":62.7,"fill":"#ef4444","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":4,"opacity":0},{"id":"s5_cmp_num0","kind":"text","x":459.2,"y":-57,"w":176.8,"h":87,"text":"75%","fontWeight":800,"color":"#ef4444","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s5_cmp_lbl1","kind":"text","x":-620,"y":87,"w":1240,"h":59,"text":"Keys moved, ring","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":6,"opacity":0},{"id":"s5_cmp_bar1","kind":"rect","x":-620,"y":162.2,"w":354.4,"h":62.7,"fill":"#22c55e","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":7,"opacity":0},{"id":"s5_cmp_num1","kind":"text","x":-249.6,"y":150,"w":176.8,"h":87,"text":"25%","fontWeight":800,"color":"#22c55e","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0}],"edges":[{"id":"s5_clients_to_ring_of_cache","from":"s5_clients","to":"s5_ring_of_caches","fromPort":"E","toPort":"W","lineType":"straight","stroke":"#94a3b8","width":4,"arrow":"end","animationStyle":"none","trim":1,"opacity":1}],"steps":[{"id":"s5_step0","durationMs":3900,"caption":"Requests keep flowing while the cluster grows.","easing":"ease","nodes":[{"id":"s5_clients","kind":"rect","x":-530,"y":-385,"w":320,"h":150,"label":"Clients","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#f472b6","strokeWidth":3,"cornerRadius":16,"labelFontSize":40,"zIndex":1,"opacity":1},{"id":"s5_ring_of_caches","kind":"rect","x":210,"y":-385,"w":320,"h":150,"label":"Ring of caches","labelColor":"#f8fafc","fill":"#1e293b","stroke":"#22c55e","strokeWidth":3,"cornerRadius":16,"labelFontSize":40,"zIndex":2,"opacity":1},{"id":"s5_cmp_lbl0","kind":"text","x":-620,"y":-120,"w":1240,"h":59,"text":"Keys moved, mod N","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":3,"opacity":0},{"id":"s5_cmp_bar0","kind":"rect","x":-620,"y":-44.9,"w":1063.2,"h":62.7,"fill":"#ef4444","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":4,"opacity":0},{"id":"s5_cmp_num0","kind":"text","x":459.2,"y":-57,"w":176.8,"h":87,"text":"75%","fontWeight":800,"color":"#ef4444","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":5,"opacity":0},{"id":"s5_cmp_lbl1","kind":"text","x":-620,"y":87,"w":1240,"h":59,"text":"Keys moved, ring","fontWeight":400,"color":"#94a3b8","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":34,"zIndex":6,"opacity":0},{"id":"s5_cmp_bar1","kind":"rect","x":-620,"y":162.2,"w":354.4,"h":62.7,"fill":"#22c55e","stroke":"none","strokeWidth":3,"cornerRadius":10,"noGlow":true,"pivotX":0,"scaleX":1,"zIndex":7,"opacity":0},{"id":"s5_cmp_num1","kind":"text","x":-249.6,"y":150,"w":176.8,"h":87,"text":"25%","fontWeight":800,"color":"#22c55e","textAlign":"left","verticalAlign":"middle","fill":"transparent","stroke":"none","fontSize":57,"scaleX":1,"scaleY":1,"zIndex":8,"opacity":0}],"edges":[{"id":"s5_clients_to_ring_of_cache","from":"s5_clients","to":"s5_ring_of_caches","fromPort":"E","toPort":"W","lineType":"straight","stroke":"#94a3b8","width":4,"arrow":"end","animationStyle":"none","trim":1,"opacity":1}],"actions":[{"type":"visibility","target":{"kind":"node","id":"s5_clients"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s5_ring_of_caches"},"mode":"fadeIn","durationMs":500,"offsetMs":500},{"type":"edgeTween","target":{"kind":"edge","id":"s5_clients_to_ring_of_cache"},"from":{"trim":0,"opacity":1},"to":{"trim":1,"opacity":1},"ease":"ease-out","durationMs":700,"offsetMs":1000},{"type":"pathAnimate","id":"s5_clients_to_ring_of_cache_dot","target":{"kind":"edge","id":"s5_clients_to_ring_of_cache"},"scale":1,"opacity":1,"fadeIn":true,"fadeOut":true,"rotateWithPath":false,"ease":"linear","nodeSnapshot":{"id":"s5_clients_to_ring_of_cache_dot","kind":"circle","w":28,"h":28,"fill":"#f59e0b","stroke":"none"},"durationMs":900,"offsetMs":1700},{"type":"pathAnimate","id":"s5_clients_to_ring_of_cache_dot_2","target":{"kind":"edge","id":"s5_clients_to_ring_of_cache"},"scale":1,"opacity":1,"fadeIn":true,"fadeOut":true,"rotateWithPath":false,"ease":"linear","nodeSnapshot":{"id":"s5_clients_to_ring_of_cache_dot_2","kind":"circle","w":28,"h":28,"fill":"#f59e0b","stroke":"none"},"durationMs":900,"offsetMs":1920},{"type":"pathAnimate","id":"s5_clients_to_ring_of_cache_dot_3","target":{"kind":"edge","id":"s5_clients_to_ring_of_cache"},"scale":1,"opacity":1,"fadeIn":true,"fadeOut":true,"rotateWithPath":false,"ease":"linear","nodeSnapshot":{"id":"s5_clients_to_ring_of_cache_dot_3","kind":"circle","w":28,"h":28,"fill":"#f59e0b","stroke":"none"},"durationMs":900,"offsetMs":2140},{"type":"pathAnimate","id":"s5_clients_to_ring_of_cache_dot_4","target":{"kind":"edge","id":"s5_clients_to_ring_of_cache"},"scale":1,"opacity":1,"fadeIn":true,"fadeOut":true,"rotateWithPath":false,"ease":"linear","nodeSnapshot":{"id":"s5_clients_to_ring_of_cache_dot_4","kind":"circle","w":28,"h":28,"fill":"#f59e0b","stroke":"none"},"durationMs":900,"offsetMs":2360}]},{"id":"s5_step1","delta":true,"durationMs":3700,"caption":"Mod N moved three quarters of the keys.","easing":"ease","nodes":[{"id":"s5_cmp_lbl0","opacity":1},{"id":"s5_cmp_bar0","opacity":1},{"id":"s5_cmp_num0","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s5_cmp_lbl0"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s5_cmp_bar0"},"mode":"fadeIn","durationMs":60,"offsetMs":500},{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_bar0"},"to":{"scaleX":1},"from":{"scaleX":0.01},"ease":"ease-out","durationMs":600,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s5_cmp_num0"},"mode":"fadeIn","durationMs":225,"offsetMs":625},{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_num0"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":500}]},{"id":"s5_step2","delta":true,"durationMs":6300,"caption":"The ring moved only one key in four. Grow the cluster, keep the cache warm.","easing":"ease","nodes":[{"id":"s5_cmp_lbl1","opacity":1},{"id":"s5_cmp_bar1","opacity":1},{"id":"s5_cmp_num1","opacity":1}],"edges":[],"actions":[{"type":"visibility","target":{"kind":"node","id":"s5_cmp_lbl1"},"mode":"fadeIn","durationMs":500},{"type":"visibility","target":{"kind":"node","id":"s5_cmp_bar1"},"mode":"fadeIn","durationMs":60,"offsetMs":500},{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_bar1"},"to":{"scaleX":1},"from":{"scaleX":0.01},"ease":"ease-out","durationMs":600,"offsetMs":500},{"type":"visibility","target":{"kind":"node","id":"s5_cmp_num1"},"mode":"fadeIn","durationMs":225,"offsetMs":625},{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_num1"},"to":{"scaleX":1,"scaleY":1},"from":{"scaleX":0.35,"scaleY":0.35},"ease":"back","isRelative":true,"dx":0,"dy":-120,"durationMs":500,"offsetMs":500}]},{"id":"s5_step3","delta":true,"durationMs":2200,"caption":"That is consistent hashing.","easing":"ease","nodes":[],"edges":[],"actions":[{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_num1"},"to":{"scaleX":1.15,"scaleY":1.15},"ease":"ease-out","durationMs":220},{"type":"transformTween","target":{"kind":"node","id":"s5_cmp_num1"},"to":{"scaleX":1,"scaleY":1},"ease":"ease-in","durationMs":220,"offsetMs":220}]}],"narration":[{"id":"s5_n0","text":"Requests keep flowing while the cluster grows.","stepIndex":0,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s5_n1","text":"Mod N moved three quarters of the keys.","stepIndex":1,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s5_n2","text":"The ring moved only one key in four. Grow the cluster, keep the cache warm.","stepIndex":2,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}},{"id":"s5_n3","text":"That is consistent hashing.","stepIndex":3,"voice":{"provider":"openai","voiceId":"alloy","voiceName":"Alloy"}}]}],"showCaptions":true,"sfxPack":"soft"}
