Google Cloud Functions platform
- Last Updated: May 24, 2024
- 1 minute read
- Corticon.js
- Documentation
When packaging for Google Cloud Functions deployment, Corticon.js
generates the files:
decisionServiceBundle.js: Your rules, obfuscatedindex.js: Sample Google Cloud Functions wrapper
When invoked, the Google Cloud function is passed a JSON payload. This is most likely triggered by a REST call to invoke the function.
The wrapper, index.js, implements the
Google Cloud Functions API for responding to HTTP triggers. The wrapper is a complete,
ready-to-run, Google Cloud function that you can also modify to meet the specific needs
of your application as it is heavily annotated. The Google Cloud functions API has
different signatures for different triggers.
The following video is a Corticon.js Google Cloud Functions deployment walkthrough:
See the Google Cloud Functions documentation for details on deploying serverless functions.