# Functions and runtime guides

This section holds the guides and tutorials on Functions and the runtime.

- [Build a RESTful tasks API](/en/documentation/guides/application-development/functions-and-runtime/restful-tasks-api-functions.md): Create a database in SQL Database, write CRUD routes with Hono, and deploy a task API that runs as a function.
- [Run a function on a firewall](/en/documentation/guides/application-development/functions-and-runtime/firewall.md): Create a function that runs on a firewall, instantiate it, and add the Rules Engine rule that triggers it.
- [Create a function with WebAssembly](/en/documentation/guides/application-development/functions-and-runtime/webassembly-on-azion-platform.md): Compile and instantiate a WebAssembly module inside a function, from a byte array in the code or from a .wasm file the handler fetches.
- [Write and test a function](/en/documentation/guides/application-development/functions-and-runtime/first-steps.md): Write the ES Modules handler of a function in Azion Console, read its response with Preview deployment, and find its log output.
- [Build a screenshot API with Functions and Browserless](/en/documentation/guides/application-development/functions-and-runtime/browserless-functions.md): Deploy a Hono project on Functions that captures a page screenshot through the Browserless API and returns the PNG image.
- [Build an API function with ChatGPT](/en/documentation/guides/application-development/functions-and-runtime/api-builder.md): Generate the JSON payload of a function with the ChatGPT integration of the Azion Console editor, then read the response with Preview deployment.
- [Query function logs with GraphQL API](/en/documentation/guides/application-development/functions-and-runtime/debugging-functions-graphql.md): Retrieve the console and runtime log lines of your functions for a time range, and filter them by message content.
- [Build a Stripe webhook handler with Functions](/en/documentation/guides/application-development/functions-and-runtime/stripe-webhooks-functions.md): Receive Stripe payment events on a Hono app deployed as a function, verify every signature, and handle each event type.
- [Send transactional email with Resend and Functions](/en/documentation/guides/application-development/functions-and-runtime/resend-email-functions.md): Build a Hono endpoint on Azion Functions that calls the Resend API, store the API key as an environment variable, and deploy it with Azion CLI.
- [Run a function on an application](/en/documentation/guides/application-development/functions-and-runtime/serverless-functions.md): Add the Rules Engine rule that runs a function instance on an application, from Azion Console or the Azion API, then verify the response.
- [Set up a paywall with the JWT function](/en/documentation/guides/application-development/functions-and-runtime/paywall-function-jwt.md): Validate a JSON Web Token on each request to restricted content and control access by subscription with the JWT function from Azion Marketplace.
- [Mirror production traffic to a test origin with Functions](/en/documentation/guides/application-development/functions-and-runtime/test-origin-with-functions.md): Build a function on a firewall that sends a copy of every matched request to a test origin, then read the mirrored responses in Real-Time Events.
- [Protect a route with an ALTCHA challenge](/en/documentation/guides/application-development/functions-and-runtime/altcha.md): Run the ALTCHA challenge on a firewall, then add the application rule that sends unverified requests to it.
- [Implement file upload with Functions](/en/documentation/guides/application-development/functions-and-runtime/file-upload-functions.md): Build a Hono endpoint that checks an uploaded file and writes it to an Object Storage bucket from a function.
- [Migrate handler patterns in Functions](/en/documentation/guides/application-development/functions-and-runtime/migrate-handler-patterns.md): Move a function from the legacy Service Worker handler to the ES Modules handler, with the before and after for fetch and firewall.
- [Deploy a function with Azion CLI](/en/documentation/guides/application-development/functions-and-runtime/deploy-function-with-cli.md): Create a function project from the terminal with Azion CLI, run it on your machine, and deploy it to a live domain.
- [Use Node.js APIs through polyfills](/en/documentation/guides/application-development/functions-and-runtime/use-polyfills.md): Import a Node.js API such as node:buffer in a function, build it with polyfills through the Azion CLI, run it locally, and deploy it.
- [Cache a function's response with the Cache API](/en/documentation/guides/application-development/functions-and-runtime/cache-a-function-response-with-the-cache-api.md): Store a response a function builds with the runtime Cache API, return it on later requests, and delete it when the data behind it changes.
- [Run a function on one path, and roll it back](/en/documentation/guides/application-development/functions-and-runtime/run-a-function-on-one-path-and-roll-it-back.md): Run a function instance on one path and one method with a Run Function rule, and roll the path back by turning the rule off.
- [Resolve tenants by hostname in a function](/en/documentation/guides/application-development/functions-and-runtime/resolve-tenants-by-hostname-in-a-function.md): Serve every tenant from one function that reads the hostname, loads the tenant from KV Store, and reads only its rows in SQL Database.
