News for hackers. Stuff that matters.
Re:Serverless Raspberry Pi Cluster with Docker by gkya on Monday August 21, 2017 @06:51AM (#15063539)
Does anybody really use this FaaS thing? This is the weirdest of the New Things I've seen recently.
Re:Serverless Raspberry Pi Cluster with Docker by alexellisuk on Monday August 21, 2017 @08:03AM (#15063907)
Despite appearing like "magic" it's basically smaller micro-services, but with a different packaging, deployment and monitoring model. The entire Alexa skill set is driven from these functions.
Re:Serverless Raspberry Pi Cluster with Docker by tracker1 on Monday August 21, 2017 @03:40PM (#15067179)
Been using AWS Lambda for a few things... it works surprisingly well if you have intermittent processes that can fit in the memory and time constraints... for example, one of the lambdas I worked on is triggered from S3 uploads (CSV for processing from a client), the Lambda will parse the CSV into bundles of JSON objects that are then sent into SQS for processing individual items, which can take up to 2 minutes each item.

You can build pipelines from S3, SQS, SNS, Lambda to do a lot of work very quickly in parallel with less overhead than similar self-hosted or self-managed solutions. You don't have to worry about spinning up extra VMs, or dealing with overprovisioning. It all just works.

Re:Serverless Raspberry Pi Cluster with Docker by bananarepdev on Monday August 21, 2017 @07:21AM (#15063684)
Like most new tech, it has it's applicability. Depending on your needs, and the characteristics of your application load, it can save you money.
Re:Serverless Raspberry Pi Cluster with Docker by dvfjsdhgfv on Monday August 21, 2017 @08:49AM (#15064148)
Could you give an example of a scenario where it can actually save me money?
Re:Serverless Raspberry Pi Cluster with Docker by brango on Monday August 21, 2017 @12:12PM (#15065571)
Chromeless looks promising. Being able to run a load of scrapers in parallel at certain times could be useful if time sensitivity is an issue. E.g someone sends you a batch of URLs to screenshot and each site takes a while to render. You could use lambdas to run all those processes in parallel instead of wasting money keeping capacity lying around just for those spikes.
Re:Serverless Raspberry Pi Cluster with Docker by jclulow on Monday August 21, 2017 @09:57AM (#15064639)
I suspect it makes economic sense only when your workload is relatively elastic, having a relatively low duty cycle. The ability to pay less when you aren't actually using any resources is likely of more economic benefit as it becomes more fine-grained. If you aren't in that position, other models of lease or ownership of computing resources probably merit consideration.
Re:Serverless Raspberry Pi Cluster with Docker by dvfjsdhgfv on Monday August 21, 2017 @10:59AM (#15065060)
Well, to be honest I pay 40€/month for a baremetal server (i7 SkyLake, 64 GB RAM, 4TB HDD). It's a powerful machine running many services, including a few virtual machines. I consider whatever it does would qualify as low-duty. Now, I know that each month I'm paying 40€ for all this. The last time about I read about serverless was when someone directly discovered the money saving part is quite tricky: https://news.ycombinator.com/item?id=14982220.
Re:Serverless Raspberry Pi Cluster with Docker by Prefinem on Monday August 21, 2017 @10:15AM (#15064761)
When the cost of a Dev Ops or Sys Admin is more than the service.
Re:Serverless Raspberry Pi Cluster with Docker by dvfjsdhgfv on Monday August 21, 2017 @10:49AM (#15064996)
That's a general answer on how you can save by using the cloud, I specifically meant the "serverless" variant.

(Apart from that, I think this is a misconception - Amazon seems to have convinced people you don't need a sysadmin anymore, whereas in fact once you start exploring the whole AWS infrastructure and its complexity, you quickly realize you still need sysadmin's knowledge plus understanding of how their services work and all their quirks.)

Re:Serverless Raspberry Pi Cluster with Docker by Prefinem on Monday August 21, 2017 @11:01AM (#15065077)
I understand that with AWS, you need a sysadmin. That is why I was saying with serverless (in this case, AWS Lambda) you didn't need a sysadmin. I assume it's the same with Google Functions and whatever Azure has.
Re:Serverless Raspberry Pi Cluster with Docker by tracker1 on Monday August 21, 2017 @03:42PM (#15067196)
But you will need other things... you need some kind of fronting system to tie things together, you need some sort of DB/Storage. And while you can get away with fewer admins, someone will be spending part of their time in a sysadmin role. It's more a matter of how much can get done with how many admins.
Re:Serverless Raspberry Pi Cluster with Docker by Prefinem on Monday August 21, 2017 @04:40PM (#15067692)
I get the point you are trying to make, but as AWS offers many services, I don't need a sysadmin for a DB (RDS, Dynamodb, ElasticSearch, S3) or for APIGateway nor for any coordination between systems (SNS, SES)

True serverless let's me offload that cost to AWS instead of having a sysadmin

Re:Serverless Raspberry Pi Cluster with Docker by tracker1 on Monday August 21, 2017 @08:11PM (#15068804)
Who maintains the database, schema, updates? Application deployments, testing, qa, updates? There's someone doing the job, even if it's fewer people, or someone with multiple hats.
Re:Serverless Raspberry Pi Cluster with Docker by Prefinem on Monday August 21, 2017 @08:29PM (#15068869)
> database, schema, updates

Whoever created them

> Application deployments

Build pipeline

> testing, qa

QA / Customer Support

So, still no sysadmin.

Not saying it has to be this way, just saying originally that serverless can save you money.

In fact, we are in the process of moving all our APIs over to AWS Lambda w/ ES and it's going to save us 25-50% of our EC2 costs.

We might be able too do the same since we are re-writing in another language, but without AWS Lambda, we would have never gotten that shot.