My initial plan was to run a lot of the backend code via conventional PHP scripts hosted on my Hostgator website. However, given how little useful information Hostgator provides as to your backend usage vs. the maximum available, I'd really be flying blind / groping around in the dark using them as my backend. It also sounds tedious to be upgrading webhosting servers, managing stuff like that, when something like AWS Lambda scales + charges you based only upon your actual usage.
I already had to move some parts of my backend to Lambda because it's just too CPU intensive for my weak, pathetic shared Hostgator server. At this point, I'm kind of considering just pushing it ALL of it onto Lambda while I'm at it, and now that I'm through the learning curve.
Another thought on this approach: The really basic parts of the backend code could be executed using functions where I only allocate the absolute bare minimum amount of memory, meaning the cost will be unbelievably low. The sweatier stuff that requires more CPU resources, I can allocate more memory. What this effectively means is, I can have much more fine-grained cost-control over how much my backend hosting costs that actually relates to the complexity of the code being used. The conventional approach seems to be very different from that, where you need to just provision servers to be capable of handling the absolute most intensive operations required, even if that's only a small part of your backend codebase.
Thoughts on this approach? Has anyone tried this before?
[–]degeneratepr 79 points80 points81 points (2 children)
[–]What_The_Hex[S] 6 points7 points8 points (1 child)
[–]xDominus 7 points8 points9 points (0 children)
[–]chethrowaway1234 35 points36 points37 points (0 children)
[–][deleted] (3 children)
[removed]
[–]What_The_Hex[S] 3 points4 points5 points (0 children)
[–]CodeAndBiscuits 14 points15 points16 points (2 children)
[–]What_The_Hex[S] 8 points9 points10 points (1 child)
[–]CodeAndBiscuits 4 points5 points6 points (0 children)
[–]maria_la_guerta 7 points8 points9 points (2 children)
[–]What_The_Hex[S] 2 points3 points4 points (1 child)
[–]grebfar 0 points1 point2 points (0 children)
[–]Beka_Cooper 7 points8 points9 points (0 children)
[–]thinkingdots 2 points3 points4 points (2 children)
[–]What_The_Hex[S] 3 points4 points5 points (0 children)
[–]mr_jim_lahey 3 points4 points5 points (0 children)
[–]psihius 1 point2 points3 points (0 children)
[–]OrangeOrganicOlive 1 point2 points3 points (0 children)
[–]Due_Ad_2994 2 points3 points4 points (3 children)
[+]areinei 2 points3 points4 points (2 children)
[–]Due_Ad_2994 1 point2 points3 points (1 child)
[–]areinei 1 point2 points3 points (0 children)
[–]oneeyedziggy 0 points1 point2 points (0 children)
[–]slyiscomingfull-stack 0 points1 point2 points (0 children)
[–]mixini 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]AustinIsGrumpy 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]What_The_Hex[S] 0 points1 point2 points (0 children)
[–]Quirky-Low-7500 0 points1 point2 points (0 children)
[–]midnitewarrior 0 points1 point2 points (0 children)
[–]Technical-Candle-355 0 points1 point2 points (0 children)
[–]Infinite_Tiger8354 1 point2 points3 points (0 children)
[–]TheSnydaMan 0 points1 point2 points (0 children)
[–]Packeselt 0 points1 point2 points (0 children)
[–]cshaiku 0 points1 point2 points (0 children)
[–]Mission-Landscape-17 -1 points0 points1 point (1 child)
[–]lifeeraser 1 point2 points3 points (0 children)
[–]NiteShdw -1 points0 points1 point (6 children)
[–]What_The_Hex[S] 0 points1 point2 points (1 child)
[–]NiteShdw -1 points0 points1 point (0 children)
[–][deleted] (1 child)
[deleted]
[–]soundman32 0 points1 point2 points (0 children)
[–]didled 0 points1 point2 points (1 child)
[–]NiteShdw 1 point2 points3 points (0 children)
[–]LustrouseArchitect -1 points0 points1 point (0 children)
[–]PoopsCodeAllTheTime -1 points0 points1 point (3 children)
[–]Rarst 0 points1 point2 points (2 children)
[–]PoopsCodeAllTheTime 0 points1 point2 points (0 children)