In Azure, the basic building block for microservices architecture is an Azure Function. Functions are event driven, serverless, and can handle a variety of tasks. Functions can either be hosted on a Consumption plan or an Azure App Service plan.
Are functions microservices?
A function is a relatively small bit of code that performs only one action in response to an event. Depending on how developers have divided up an application, a microservice may be equivalent to a function (meaning it performs only one action), or it may be made up of multiple functions.
Is a serverless function a Microservice?
Microservices is a way to design an application, while serverless is a way to run an application (or a part of an application). … Not only are they both common technologies within cloud-based environments, but serverless functions are one way to host microservices.