Přeskočit na obsah
_CORE
AI & Agentic Systems Core Informační Systémy Cloud & Platform Engineering Data Platforma & Integrace Security & Compliance QA, Testing & Observability IoT, Automatizace & Robotika Mobile & Digital Banky & Finance Pojišťovnictví Veřejná správa Obrana & Bezpečnost Zdravotnictví Energetika & Utility Telco & Média Průmysl & Výroba Logistika & E-commerce Retail & Loyalty
Reference Technologie Blog Knowledge Base O nás Spolupráce Kariéra
Pojďme to probrat

Azure Functions Tutorial

01. 01. 2024 1 min čtení intermediate

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