News for hackers. Stuff that matters.
Re:Build your own web framework by leerob on Friday July 29, 2022 @12:51PM (#32279245)
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

[2]: https://aws.github.io/copilot-cli/

[3]: https://news.ycombinator.com/item?id=32192498

Re:Build your own web framework by upupandup on Friday July 29, 2022 @03:49PM (#32281064)
didn'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.

Re:Build your own web framework by CSSer on Friday July 29, 2022 @03:06PM (#32280637)
Or you could use AWS Amplify.
Re:Build your own web framework by syastrov on Friday July 29, 2022 @01:20PM (#32279586)
Or use imgix for that part