Mixing Google Cloud Functions and Express

Mixing Google Cloud Functions and Express


Google Cloud Functions are an awesome tool, which I have already described a couple of times in other posts. If you look at the functions triggered by HTTP calls, they turn out to be regular Express handlers. There are probably some differences in the internals, but that’s not something that would drastically change how you write your functions.

So, the question is: Can you run the functions written with Cloud Functions in mind with an Express application? Or, the other way around: Can you split your Express application to separate Cloud Functions? This question may sound like a pure experiment, but I can imagine a situation where this could be useful. You may have already an application running in an App Engine instance, but you don’t want to handle that anymore — splitting into a bunch of Cloud Function makes perfect sense.


via DZone.com Feed https://dzone.com

May 19, 2017 at 05:09AM


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s