Calcul sans serveur
Qu'est-ce que Functions as a Service (FaaS) ?
Qu'est-ce que le modèle des fonctions en tant que service (FaaS) ?
Functions as a Service or FaaS is a serverless computing execution model that allows developers to easily deploy and execute applications without any need to manage the servers. Estimates for the global FaaS market in 2025 vary by research firm, ranging from $7.17 billion according to Straits Research to $13.08 billion according to The Business Research Company.
Dans le FaaS, you write the code while the cloud provider automatically handles server deployment, resource allocation, and environment management.
Comment fonctionne FaaS ?
Dans le modèle FaaS, les développeurs écrivent du code sous forme de fonctions, qui sont de petits blocs indépendants conçus pour effectuer une seule opération. Ces fonctions sont déclenchées par des événements, par exemple des requêtes HTTP, des modifications de base de données ou un événement de téléchargement de fichier. Lorsqu'un événement se produit, le fournisseur de cloud alloue immédiatement les ressources nécessaires à la fonction et les libère une fois l'événement de la fonction terminé. Ce modèle informatique permet un déploiement sans serveur piloté par les événements, ce qui implique une facturation par exécution de fonction.
Some well-known FaaS providers are Amazon AWS Lambda, Microsoft Azure Functions, and Google Cloud Run functions (formerly Cloud Functions).
Quelle est la différence entre FaaS et SaaS ?
FaaS et SaaS sont both services dans le cloud computing environnement, même s'ils ont des fonctions différentes.
- FaaS : It provides a platform for executing custom code triggered by specific events. Application developers control the code, the provider takes care of the infrastructure, and scaling is handled automatically and at the most micro level. Costs are determined by the actual resources used (pay-as-you-go): With Azure Functions’ Flex Consumption plan, you pay for total executions and the memory used while your code is running (calculated in GB-seconds).
- SaaS: Provides pre-configured software solutions through a cloud infrastructure. Users work with the given interface but have limited control over the underlying infrastructure. Scaling is limited based on the subscription plan, with costs typically charged as Abonnements.
| Fonctionnalité | Fonction en tant que service (FaaS) | Logiciel en tant que service (SaaS) |
|---|---|---|
| Fonctionnalité principale | ||
| Objectif principal | Exécuter du code personnalisé déclenché par des événements spécifiques | Fournir des solutions logicielles préconfigurées |
| Contrôle de l'infrastructure | Developers control code; the provider manages infrastructure | Contrôle utilisateur limité sur l'infrastructure sous-jacente |
| Évolutivité et performances | ||
| Mécanisme de mise à l'échelle | Mise à l'échelle automatique au niveau micro | Généralement limité par les plans d'abonnement |
| l'allocation des ressources | Dynamique, basé sur l'exécution réelle des fonctions | Statique, prédéfini par le niveau d'abonnement |
| Modèle de tarification et de coûts | ||
| Structure de prix | Pay-as-you-go, charged by executions and execution time | Usually subscription-based, fixed recurring fees |
| Rentabilité | High, on-demand use is billed by executions and run time | Usually fixed costs regardless of actual usage |
Quel est le principal avantage de FaaS ?
FaaS is a type of serverless computing where developers specifically are concerned with writing code and may have very little control over the servers.The system enables the adjustment of activity levels in correlation with application demand, utilizing usage-based pricing.
Quels sont les inconvénients de FaaS ?
With FaaS, factors such as vendor lock-in, cold start occurrences, state management approaches, and debugging and monitoring processes are typical.
- Verrouillage des fournisseurs: Il peut y avoir des variations dans la manière dont FaaS est implémenté entre différents fournisseurs de cloud, ce qui peut créer des difficultés pour déplacer votre application.
- Démarrages à froid : The initial commencement time of dormant functions can be prolonged, slowing down response times for users.
- Débogage et surveillance: A distributed serverless application can be more complex to debug and monitor than a monolithic application.
- Apparence d'état : Préserver l'état dans les exécutions de la fonction est assez complexe et des efforts supplémentaires doivent être faits lors de la conception d'une application.
In spite of these disadvantages, FaaS is used with event-driven, scalable applications. In 2025, Research firms’ valued the global FaaS market range from 7.17 billion USD (Straits Research) to13.08 billion USD (The Business Research Company).
Conclusion
FaaS is a component of serverless computing where developers buildi and run applications, with server management handled independently. It manages the underlying infrastructure, with automated scaling and resource-based billing.
You can deploy FaaS in developing event-driven and scalable cloud solutions, however it is not suitable for all types of applications.