pdehaan / rpapabot-slack

Building a basic Slack bot for fun and profit.
Mozilla Public License 2.0
0 stars 0 forks source link

Serverless Slack bot? #2

Open pdehaan opened 4 years ago

pdehaan commented 4 years ago

https://vercel.com/docs/v2/serverless-functions/introduction

This might just be getting rediculous. Not sure if GCP also has a similar thing for serverless node functions. But this got me wondering if we could encapsulate all the logic into some serverless function that only exists when it's called.

Might be crazy enough to work. Or might be too stupid to be viable. But I was just thinking that if a basic instance on GCP is like $14/mo, but only get used for less than 30 seconds a month, that's a poor investment. Pretty sure we can do it on Vercel (formerly Zeit) for free (at the expense of yet another cloud provider and the complexity that comes with that).

This could also lead to some interesting stuff like a serverless GitHub/Bugzilla bot which in turn calls our serverless Slack bot and everything is just uber ephemeral.

pdehaan commented 4 years ago

https://cloudacademy.com/blog/google-cloud-functions-vs-aws-lambda-the-fight-for-serverless-cloud-domination/

So it sounds like GCP Cloud Functions are the same as AWS Lambda functions. :shrug:

https://cloud.google.com/functions/docs/quickstart-nodejs