3 ms·
AWS offers a set of primitives, not frameworks. These low-level primitives can be combined to build anything you want. Vercel's Build Output API[1] is a level o
by leerob 4y ago
AWS offers a set of primitives, not frameworks. These low-level primitives can be combined to build anything you want. Vercel's Build Output API[1] is a level of abstraction higher.
Consider Image Optimization. In this post, there's a `/_vercel/image` URL made available to send an image and return it compressed with a format like `.webp`, if possible based on the browser.
With AWS, this would be a combination of S3 (store images), Lambda (compute the image transformations), Cloudfront (CDN), and Route53 (DNS). With the Build Output API, the entire infrastructure is defined by a JSON object (similar to Terraform). I do think the AWS CDK and Copilot[2] are making infra-as-code easier, but infra-as-filesystem[3] is an interesting twist.
[1]: https://vercel.com/blog/build-output-api https://vercel.com/blog/build-output-api
[2]: https://aws.github.io/copilot-cli/ https://aws.github.io/copilot-cli/
[3]: https://news.ycombinator.com/item?id=32192498 https://news.ycombinator.com/item?id=32192498
- syastrov 4y agoOr use imgix for that part
- CSSer 4y agoOr you could use AWS Amplify.
- upupandup 4y agodidn't you just describe AWS Amplify? It also integrates with Cognito not sure if Vercel offers Auth out of the box. also I'm not sure if I'm alone in this but I set up everything through the web console and then generate CDK or Terraform.