Skip to content

Instantly share code, notes, and snippets.

@avikivity
Created January 23, 2024 14:26
Show Gist options
  • Save avikivity/6f78463fbcd84bf7b89ccb2437a70470 to your computer and use it in GitHub Desktop.
Save avikivity/6f78463fbcd84bf7b89ccb2437a70470 to your computer and use it in GitHub Desktop.
title Lazily learning routing information
note over Driver: Driver does not know where token T is routed
Driver->Node1:request for token T
activate Node1
Node1->Node2:read from replica
deactivate Node1
activate Node2
Node1<-Node2:data
deactivate Node2
activate Node1
Driver<-Node1:data + routing info
deactivate Node1
note over Driver: Driver now know where token T lives
Driver->Node2:request for token T
activate Node2
Node2->Node2:local read from replica
Driver<-Node2:data + routing info
deactivate Node2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment