Přeskočit na obsah
_CORE
Cloud Pokročilý

Azure Functions Tutorial

Azure FunctionsServerlessAzure
3 min čtení

Serverless na Azure. HTTP triggers, bindings, Durable Functions.

HTTP Trigger

// src/functions/getUser.js
const { app } = require('@azure/functions');

app.http('getUser', {
    methods: ['GET'],
    route: 'users/{id}',
    handler: async (request, context) => {
        const id = request.params.id;
        const user = await db.getUser(id);
        return { jsonBody: user };
    }
});

Bindings

Azure Functions mají deklarativní bindings — input/output propojení s službami bez kódu.

  • Blob Storage, Queue Storage, Cosmos DB
  • Service Bus, Event Hub
  • Timer trigger (cron)

Shrnutí

Azure Functions = Lambda ekvivalent na Azure. Durable Functions přidávají orchestraci (workflows, fan-out/fan-in).

Potřebujete pomoct s implementací?

Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.

Nezávazná konzultace