by nikita2206 · 3y ago · 0 comments
I was surprised to see that they had to cancel those ~10 queries that were in flight in the moment when they needed to switch over the query traffic. When doing this with ProxySQL, there was an option to: pause all connections such that they can’t create new transactions and queries, while not cancelling running txs/queries, and then wait for all ongoing txs/queries to finish, and then do the switch and unpause.
Just because you can wait for them to finish, doesn't mean it's better to when you look at the cutover as a whole.
Caching and optimization weren't mentioned at all, but I guess they already maxed out that path