Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Serverless Google Cloud Functions #268

Open
gregorskii opened this issue Aug 29, 2019 · 4 comments
Open

Support Serverless Google Cloud Functions #268

gregorskii opened this issue Aug 29, 2019 · 4 comments
Labels
enhancement gcp Issues relating to GCP serverless Issues relating to serverless deployments of Benthos

Comments

@gregorskii
Copy link

Any plans to support Google Cloud functions similar to the way Lambda is supported?

If you have an idea of what would need to be done to do this I can potentially help with a PR.

Thanks.

@Jeffail
Copy link
Collaborator

Jeffail commented Aug 29, 2019

Hey @gregorskii,

Definitely, I haven't got much experience with Google Cloud so I was reluctant to take this on myself. The plumbing work should already be there from the lambda implementation, so it should hopefully just be a case of following the same process.

First step would be to create a package similar to https://github.com/Jeffail/benthos/tree/master/lib/serverless/lambda, which does the execution handler wrapping around the serverless library.

Then add a cmd package similar to https://github.com/Jeffail/benthos/tree/master/cmd/serverless/benthos-lambda

Finally, add the build and archive stages for the cmd package to https://github.com/Jeffail/benthos/blob/master/.goreleaser.yml and it should then get packaged in future releases.

I'm happy to help out with an unfinished PR but I'd need you to do the deployment testing.

@Jeffail Jeffail added enhancement serverless Issues relating to serverless deployments of Benthos labels Aug 29, 2019
@gregorskii
Copy link
Author

Thank you I will review these notes and see if I can help.

Appreciate the direction.

@gregorskii
Copy link
Author

An update on this. It runs quite well in Google Cloud Run as a regular docker image. Cloud Run has similar costs/complexity to Cloud Functions.

I believe Cloud Run suits my use case, up to you if it makes sense to leave this open. I do think others would benefit from it.

@Jeffail
Copy link
Collaborator

Jeffail commented Feb 14, 2020

Thanks for the update @gregorskii, I'll leave this open as it'd be cool to have as an option at some point.

@disintegrator disintegrator added the gcp Issues relating to GCP label Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement gcp Issues relating to GCP serverless Issues relating to serverless deployments of Benthos
Projects
None yet
Development

No branches or pull requests

3 participants