Spanner

hedge - A simple distributed computing library

2022-09-21

This library has been in our production for about a year already and is one of the critical components in our backend. We mainly use it for app-level orchestration between pods. It’s called hedge and you can find the code here. Maybe it will be useful to anybody out there.

Distributed-Computing · Gcp · Golang · Spanner · Spindle

1 minute

A Spanner-based distributed locking library

2020-12-26

I uploaded a yet another distributed locking library, this time, based on Cloud Spanner and TrueTime technology. It’s called spindle and you can find the code here. Maybe it will be useful to anybody out there.

Distributed-Lock · Distributed-Locking · Gcp · Golang · Spanner

1 minute

Automate Spanner backup using Kubernetes CronJob

2020-09-11

As of this writing, GCP doesn’t have an option to create Spanner backups automatically. This could be available when you’re reading this in the future. At the moment, however, if you’re using Kubernetes, you can utilize CronJob to do a scheduled backup. Here’s a sample CronJob deployment that uses gcloud to create the backups. First, you need to create a service account that has permissions to create Spanner backups. Once you have downloaded the JSON file for the service account, store it as a Kubernetes Secret.

Backup · Cronjob · Gcp · K8s · Spanner

2 minutes