News for hackers. Stuff that matters.
Re:Build your own web framework by upupandup on Friday July 29, 2022 @12:29PM (#32278986)
not sure how this differs with AWS, you can do more at less cost than Vercel
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
Re:Build your own web framework by valbaca on Friday July 29, 2022 @12:39PM (#32279116)
I'd say give it a shot. Vercel has a much more reasonable Free Tier, was insanely easy to use and incredibly fast. I had my changes pushed to prod from github in <10 secs

I haven't built anything big on Vercel, but from my test drive, I'd be happy to use them in the future, and this is coming from someone who works AT the A in AWS. AWS does NOT make the easy things easy; though you are right, it does make the "more" possible, but it all depends on what you're optimizing.

Re:Build your own web framework by eins1234 on Friday July 29, 2022 @01:29PM (#32279681)
Reasonable Free Tier, yes, but "call us" Enterprise pricing starts at a team of 11 people, a fact that is hidden deep in their pricing grid behind a tooltip, which I find distasteful.

In what world does a 11 person team qualify as an Enterprise? Though pedanticism aside, my problem is more with the opaque pricing than the naming.

Re:Build your own web framework by akmittal on Friday July 29, 2022 @12:42PM (#32279153)
AWS is overwhelming for most of Developers. Also vercel is focusing on ease of deployment for front end, it is also zero config, you can just deploy nextjs, react, svelte, remix apps in matter of minutes. Which is impossible with AWS
Re:Build your own web framework by BenoitEssiambre on Friday July 29, 2022 @02:22PM (#32280213)
I've started playing with AWS App Runner (https://aws.amazon.com/apprunner/) which makes things fairly simple. You just point to a github repo, tell it the build command and the run command and it will deploy your project in containers and even load balance and scale up automatically.

Now it's not fully baked yet. DNS configuration is broken if you want to use your own domain (see https://github.com/aws/apprunner-roadmap/issues/37 and https://github.com/aws/apprunner-roadmap/issues/65 ) but you can get around that by putting cloudFront in front with just a few more clicks (and you get the benefit of having some of your files cached if you want).

Re:Build your own web framework by cloudc0de on Saturday July 30, 2022 @03:37AM (#32285038)
AWS Amplify Hosting is the direct Vercel competitor and has improved since it's initial launch quite a bit. Also has a decent free tier