Created
January 23, 2024 14:26
-
-
Save avikivity/6f78463fbcd84bf7b89ccb2437a70470 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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