From Hours to Minutes: Listing S3 and GCS Buckets Faster in Go
While cleaning up a large GCS bucket, I tried to speed things up by deleting files concurrently, only to discover that listing them had become the bottleneck. Parallelizing the listing is less straightforward, but it can turn hours of scanning into minutes with surprisingly little Go code. Examples cover both GCS and S3.
destel.dev