4 ms·
Front end: Is SEO relevant? YES: AWS Lambda generating server rendered HTML behind API Gateway. NO: Vanilla React.JS app hosted on S3 Bac
by revicon 4y ago
Front end:
Is SEO relevant?
YES:
AWS Lambda generating server rendered HTML behind API Gateway.
NO:
Vanilla React.JS app hosted on S3
Back End:
AWS Lambda behind API Gateway
Database:
AWS DynamoDB
This stack will reduce down to zero usage costs when there is no traffic and will scale up to much more than I will possibly need for anything resembling an MVP with no interference required by me.
- dtx1 4y agoCould you elaborate (or link to a framework) for doing the server generated HTML on Lambda?
- revicon 4y agoI mean I'm literally building an AWS lambda function that outputs HTML when it's called via API Gateway. So someone hits https://mydomain.com/mycoolpage https://mydomain.com/mycoolpage, then the MyCoolPage AWS Lambda function is executed, does database queries or reaches out to other lambda functions I've built as microservices and then outputs <html>whatever</html>. If you're interested, I use https://middy.js.org/ https://middy.js.org/ as a middleware engine for my AWS lambda functions which I find helpful. I use the open sourced serverless framework for doing deploys https://www.serverless.com/ https://www.serverless.com/ though I'm probably going to move to using AWS SAM in the future.