boxlang-runtime-google-cloud-functions

Run BoxLang on Google Cloud Functions Gen 2 via the Java 21 runtime.

16|78|Updated Nov 28, 2014
One-click install
npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-runtime-google-cloud-functions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-runtime-google-cloud-functions
Source: https://github.com/ortus-docs/coldbox-docs/tree/main/.agents/skills/boxlang-runtime-google-cloud-functions
Command: npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-runtime-google-cloud-functions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

BoxLang runs on Google Cloud Functions Gen 2 via the Java 21 runtime, with FunctionRunner bridging HTTP requests to BoxLang handlers.

Core Features & Use Cases

  • Runtime entry point: FunctionRunner handles HTTP mapping and handler routing.
  • URI routing: first URI segment maps to PascalCase .bx files for deterministic resolution and efficient class caching.
  • Local development and deployment: supports GCF invoker, environment variables, and a Gradle-based workflow for testing and deployment.

Quick Start

Clone the starter project and run the Gradle wrapper to start the local Google Cloud Functions simulator for testing.

Frequently Asked Questions about boxlang-runtime-google-cloud-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy BoxLang to Google Cloud Functions?

You can deploy BoxLang to Google Cloud Functions Gen 2 using a Gradle-based deployment workflow. The runtime leverages Java 21 and a FunctionRunner to bridge HTTP requests directly to BoxLang handlers.

How does URI routing work for BoxLang on serverless platforms?

URI routing maps the first URI segment to PascalCase .bx files for deterministic handler resolution. This approach ensures efficient class caching and reliable request routing for serverless HTTP endpoints.

Can I test Google Cloud Functions locally before deploying?

Yes, you can test locally by cloning the starter project and running the Gradle wrapper. This starts the local Google Cloud Functions simulator, allowing you to validate handlers and environment variables before deployment.

Does BoxLang support the Java 21 runtime on Google Cloud Functions Gen 2?

Yes, BoxLang runs on Google Cloud Functions Gen 2 via the Java 21 runtime. A FunctionRunner bridges incoming HTTP requests to your BoxLang handlers for processing on the serverless infrastructure.

What is the best way to handle HTTP requests in a BoxLang serverless application?

The best way to handle HTTP requests is using the FunctionRunner entry point. It maps incoming HTTP traffic to BoxLang handlers by matching the first URI segment to PascalCase .bx files for deterministic routing.

Are environment variables supported when running BoxLang on GCF?

Yes, environment variables are supported during local development and deployment. You can configure them alongside the GCF invoker and Gradle workflow to manage application settings across different environments.