News for hackers. Stuff that matters.
Re:Hosting your entire web application using S3 and CloudFront by mrweasel on Sunday July 12, 2020 @03:00AM (#23809459)
Nice, but the article leaves out the bit about where the API is hosted. It really isn’t the entire web application, just the easy part.

Still a nice guide for static website owner.

Re:Hosting your entire web application using S3 and CloudFront by root993 on Sunday July 12, 2020 @07:04AM (#23810487)
Hello, author here.

My bad for not giving a more appropriate title for the post. You re right this setup does not take the backend APIs into account. In our case we use Lambda for the backend APIs so that is also serverless but I failed to mention it in the post.

Re:Hosting your entire web application using S3 and CloudFront by shekhar101 on Sunday July 12, 2020 @04:36PM (#23814546)
Hi, also curious how you integrated WhatsApp messages to user for confirmation? Is it business api and is the pricing an issue? (I’m in India too and think WhatsApp api is a bit expensive especially for a use case where I initiated the messaging like in your case)
Re:Hosting your entire web application using S3 and CloudFront by mrweasel on Sunday July 12, 2020 @12:24PM (#23812473)
If you do a follow up on how your frontend and the Lambdas work together please post it, that would be super interesting to me.
Re:Hosting your entire web application using S3 and CloudFront by Zombieball on Sunday July 12, 2020 @03:59AM (#23809693)
You could put it in a lambda function.
Re:Hosting your entire web application using S3 and CloudFront by hmate9 on Sunday July 12, 2020 @04:38AM (#23809891)
Not sure why this is downvoted. It’s a perfectly valid “serverless” architecture.

The only downside is that it can get quite messy maintaining.

Re:Hosting your entire web application using S3 and CloudFront by root993 on Sunday July 12, 2020 @07:05AM (#23810493)
Hello, Author here.

Could you elaborate on what part of the maintenance would be messy? I was under the impression that maintaining this would be quite easy because there is no physical server present anywhere in this setup.

Re:Hosting your entire web application using S3 and CloudFront by bonestamp2 on Sunday July 12, 2020 @12:23PM (#23812461)
Not OP, but I think you should be fine. It can get messy if you're using it as a backend for an application that may at some point have different versions in the field (or dev/testing/staging) so you need to support multiple versions of your APIs. It's not impossible, but it can get messy. If anybody has some good rules/frameworks to organize that kind of thing, I'd appreciate a reply.
Re:Hosting your entire web application using S3 and CloudFront by duiker101 on Sunday July 12, 2020 @05:20AM (#23810074)
I would guess because then it's "just another serverless web app" and invalidates the title which is "Hosting your ENTIRE web app...".
Re:Hosting your entire web application using S3 and CloudFront by 0xbkt on Sunday July 12, 2020 @04:47AM (#23809924)
Where even is the downvote button?
Re:Hosting your entire web application using S3 and CloudFront by austhrow743 on Sunday July 12, 2020 @04:52AM (#23809946)
Hidden until you get more karma.