Local development with cloud-spanner

前端 未结 4 2099
北海茫月
北海茫月 2021-02-18 16:45

Is there any way to do local development with cloud spanner? I\'ve taken a look through the docs and the CLI tool and there doesn\'t seem to be anything there. Alternatively, ca

4条回答
  •  别跟我提以往
    2021-02-18 17:12

    There is currently no local development option for Cloud Spanner. Your current option would be to start a single node instance on GCP.

    There currently isn't another database that operates like Cloud Spanner, however CockroachDB operates on similar principles. Since they don't have access to atomic clocks and GPS units, they do make different trade-offs. In particular around reads & writes and lacking 'stale reads'. You can read more on the Jepsen blog:

    Where Spanner waits after every write to ensure linearizability, CockroachDB blocks only on contested reads. As a consequence, its consistency guarantees are slightly weaker.

提交回复
热议问题