Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SST #413

Closed
wants to merge 7 commits into from
Closed

SST #413

wants to merge 7 commits into from

Conversation

oscartbeaumont
Copy link
Member

Another attempt at using SST in Mattrax.

@oscartbeaumont
Copy link
Member Author

oscartbeaumont commented Sep 10, 2024

So we have to make a compromise and they are:

SST + Cloudfront

  • Lack of permanent preview deployments (Eg. can't just preview the site 10 commits back)
  • Super slow deployments for PR's (3-5 minutes)
  • Non-atomic deployments (I am fairly certain SST doesn't handle this)

SST + Cloudflare Pages

The Cloudflare public API does not have a way to create a deployment. Technically you can pass some undocumented params to one of the endpoints but they are not exposed by Terraform and obviously not subject to continue working.

The API also requires a special auth token, and the API endpoint to get the token doesn't seem to work properly using authorised using an API key so...

SST + Cloudflare Workers

  • Lack of permanent preview deployments (Eg. can't just preview the site 10 commits back)

I assume I could figure out atomic deployments but this would all need to be manual which would add significant complexity to getting this working.

SST + Deno Deploy

  • Less POP's meaning worse performance. It would be around the same as Vercel but worse than Mattrax's current setup.

I haven't check if this can even work with SST

Cloudflare Pages Git Integration

No way to coordinate the deployment to ensure dependencies are ready before the site comes online.

Wrangler CLI in GitHub Actions

Complicated CI workflow

@oscartbeaumont
Copy link
Member Author

SST kinda sucks for the DX I want and I genuinely can't tell how much is on them and how much is on Cloudflare/AWS.

Doing preview deployments when your glueing together infrastructure across providers is basically a no-go and the hyper-scaler don't offer the complete set of services I would want for building an application so you end up needing multi-cloud stuff full-stop (Eg. Cloudflare doesn't do email and AWS Cloudfront doesn't do preview deploys at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant