I've seen a couple things: 1) You could use gsutil rsync instead of gsutil rm and gsutilcp, and also use the -d option. This synchronizes, rather than strictly recreates, the objects in the bucket and should be at or near zero downtime. 2) You could use Cloud CDN in front of the bucket, with a "serve while stale" configuration. This configuration serves objects from a CDN cache if they don't exist in the bucket, for a preconfigured time, so the cache can "cover the gap" when the objects are updating.
Any suggestions on how to achieve zero downtime deploy when uploading to the bucket?
I've seen a couple things:
1) You could use gsutil rsync instead of gsutil rm and gsutilcp, and also use the -d option. This synchronizes, rather than strictly recreates, the objects in the bucket and should be at or near zero downtime.
2) You could use Cloud CDN in front of the bucket, with a "serve while stale" configuration. This configuration serves objects from a CDN cache if they don't exist in the bucket, for a preconfigured time, so the cache can "cover the gap" when the objects are updating.