QuestionQ106

VerifiedDeploy scalable and highly available databases in Google Cloud

Your company uses a multi-region Spanner instance. The instance holds data for an application that performs many writes without reading the data. You notice substantial latency regression and want to reduce latency and improve performance. What should you do?

Explanation

For blind-write workloads in a multi-region Spanner instance, disabling leader-aware routing can reduce latency. With leader-aware routing enabled, both beginTransaction and commit can require inter-region communication to the leader-region frontend; when it is disabled, beginTransaction is processed locally and only the commit requires the inter-region round trip.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!