Cloud Fortgeschritten
Azure Functions Tutorial¶
Azure FunctionsServerlessAzure 3 min Lesezeit
Serverless auf 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 haben deklarative Bindings — Input/Output-Verbindungen zu Diensten ohne Code.
- Blob Storage, Queue Storage, Cosmos DB
- Service Bus, Event Hub
- Timer Trigger (Cron)
Zusammenfassung¶
Azure Functions = Lambda-Äquivalent auf Azure. Durable Functions fügen Orchestrierung hinzu (Workflows, Fan-out/Fan-in).
Brauchen Sie Hilfe bei der Implementierung?¶
Unser Team hat Erfahrung in der Planung und Implementierung moderner Architekturen. Wir helfen Ihnen gerne.