dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
796 stars 146 forks source link

Serve client API from exported GCS bucket #8133

Open jonasfj opened 1 month ago

jonasfj commented 1 month ago

We can point GCLB at a prefix within a GCS bucket, so ideally we should be able to export responses for everything matching:

Export them into a GCS bucket, under prefixes:

Then GCLB can be pointed to /latest/ for URLs matching the above routes.

If a new deployment of pub.dev starts producing garbled output in /latest/, we can update GCLB to point to /<runtimeVersion>/ from the previous deployment. That way we still have a fallback mechanism.

To do this we'll need the following:

sigurdm commented 1 month ago

Does this mean that api responses can only be updated reliably after all old deployments are gone?