Prisma: Improve binary downloading/distribution

Created on 17 Dec 2019  路  3Comments  路  Source: prisma/prisma

Current possible problems:

  1. ~Hardcoded S3 URL~
  2. No fallback when server unavailable
  3. ~No CDN geolocation thing~
  4. No alternative download location: https://github.com/prisma/prisma2/issues/1333

Notes:
off-site DA for S3, GH releases, CNAME

kinimprovement tectypescript binary

Most helpful comment

Most of these problems are now tackled with https://github.com/prisma/prisma2/issues/1593

  • We're using binaries.prisma.sh
  • It's a CloudFront distribution in front of the S3 bucket

All 3 comments

I think GH releases should be a good option here. Many projects like election use it for binary distribution: https://github.com/electron/electron/releases

Also, you can get download stats using it:
image

(these are enabled by refined github but you can also get them via API)

Electron also has a package for this that we can use as an inspiration: https://github.com/electron/get

Most of these problems are now tackled with https://github.com/prisma/prisma2/issues/1593

  • We're using binaries.prisma.sh
  • It's a CloudFront distribution in front of the S3 bucket
Was this page helpful?
0 / 5 - 0 ratings