Deploy a focused handler
Give a small HTTP task its own source and configuration. Keep integration logic separate when it has a different purpose or change cycle from the rest of the application.
Runtime / Functions
Deploy focused application logic behind an HTTP endpoint. Keep webhooks, validation and integrations separate from your main application.
Execution limits, resources and billing depend on the selected offer.
Application architecture / Functions
Validate the incoming request, run the handler and return a response. Handle caller retries in your code and keep durable state in an appropriate external service.
A focused endpoint with an explicit input, response and failure path.
Where it fits
For webhooks and small HTTP tasks that fit the execution model of a published function offer.
Give a small HTTP task its own source and configuration. Keep integration logic separate when it has a different purpose or change cycle from the rest of the application.
Use the configured endpoint to call the handler from your application or an external system. Your handler owns input validation, request authentication and the response it returns.
Inspect function state and available logs to understand successful and failed calls. Exercise malformed input and unavailable dependencies as well as the expected request.
Review the selected configuration for resources, timeout behavior and billing units. Keep durable data in an appropriate external service and design effects to handle caller retries.
In practice
Choose a function for a focused HTTP task that fits the selected execution limits and can be tested independently of the rest of your application.
Receive an application event, validate the request and return a deliberate response to the sender.
Request authentication, duplicate delivery and error responses.
Expose a small transformation or validation step as a separate request-driven workload.
Input size, execution timeout and access to dependencies.
Connect two application services with focused logic and explicit failure handling.
Upstream timeouts, credentials and safe retries.
The workflow
Review supported configuration and execution constraints in the selected offer.
Provide the required function configuration through the Resource Composer.
Call the configured endpoint and verify both successful and failed requests.
Configuration checks
Responsibilities
Functions / Questions
Compare the workload with the execution model and timeout of the offer. A container or VM can be a better fit when a service needs to keep running between requests.
Design the handler to recognize duplicate events and avoid repeating side effects. The caller may retry when a response is delayed or a connection fails.
Review the actual billing unit and included quantities in the selected offer. Invocation-based pricing, scale-to-zero and automatic scaling should only be assumed when specified there.
Connected products