Creating A Highly Scalable Website Monitoring Service in half an hour using AWS Lambda

Creating A Highly Scalable Website Monitoring Service in half an hour using AWS Lambda


Related discussions:

Fun read! Quick question:

‘If you were feeling really meta you could totally serve the frontend application from a Lambda function…’

Why would you want to do this (except for maybe server-side rendering the Vue front-end)?

I guess it provides you with some of the same advantages over a dedicated EC2 instance.

If you aren’t fussed about First-time-to-byte or warm-up times for these lambdas then there is nothing stopping you serving the static vuejs frontend behind a Lambda instead of your standard S3 bucket haha.

I monitor multiple web sites from my Lightsail instance and it costs me nothing extra. Easy to do too, just Bash scripts. Plus, they worked unchanged when moving from my last ISP to Lightsail. They are 100% vendor neutral.

Is that a Wordpress plugin mixed with bash scripts or just bash scripts?

for what its worth, I built a serverless web-hosting platform / CMS system on Lambda, S3, CloudFront, API Gateway.

All of the actual web content is served through the lambda functions themselves, passed as API calls back to a javascript application / container that is on static S3 hosting.

I found that dealing with headers and things in lambda to properly serve various types of content to be a little wonky at times, but it generally does the job.

For hosting the application, there was just too much of an application that had various JS / CSS / HTML components that were working together and I decided to take the more traditional route and just treat them like a legitimate web application and host it on S3 as a static website. IMO that still counts as serverless. :slight_smile:

Just bash scripts. I don’t run Wordpress. I run Apache on the front and a variety of stuff on the back. My scripts check my web and email servers and some other system things.

Your solution works, but it isn’t “highly scalable” so it’s not a comparable solution to OP’s, nor does it come close to meeting the requirements listed in the article. Vendor neutral also shouldn’t be your priority when the solution itself only takes a half hour to deploy.

Define the requirements for “highly scalable” in the context of the OP’s question. Actually, I guess we should let the OP do that, eh? wink wink

Oh and vendor neutral is really significant when you need to switch ISP’s. I mean, unless you’re entrenched in then yeah, you put all your eggs in one basket, hope you like the menu, chef, patrons, parking, location, etc.

In the context of serverless, you don’t have to do anything, it scales efficiently on its own. Your solution, at best, scales vertically and as a staircase. OPs scales horizontally and scales as a line, or perhaps even exponentially. Not to mention that a bunch of bash scripts, even if it were deployed cleverly, is a quick-and-dirty solution as opposed to a robust serverless deployment.

As for vendor lock-in, I’m just so tired of this pedantic argument that I’m not going to address it any futher.

My solution is free (of any additional operational costs) and vendor neutral. You’re dyed in the wool AWSite or whatever they’re called, that’s cool. I on the other hand, am unbiased. Actually I have one bias, vendor neutrality.

His solution is free forever, until it scales beyond the permanent lambda free-tier… which is also true of yours. I also don’t know how you can possibly say your solution has no operational costs, when it has several obvious operational costs. Including, but not limited to, the risk of downtime for your monitoring service that is at a far higher percentage than the SLA offered by Lambda. Compare that to virtually zero operational costs for a serverless deployment.

I have deployments in multiple public clouds, not just AWS. The vendor-lock argument becomes dumb when you start skirting the best solution because you’re afraid of a non-existent case where you couldn’t pick up and move your app somewhere else. Hint: that’s not ever the case, even when you’re using a vendor-specific product.