Building a Serverless Middleware
Explore how to create a serverless middleware solution using Azure Functions written in PowerShell. This lesson guides you through setting up function apps, using PowerShell for modular coding, and deploying event-driven triggers like Azure Queue Storage. Understand how to build scalable and reusable middleware components suitable for developers and cloud administrators.
We'll cover the following...
The Function app
The Function app is written in PowerShell (Powershell Class) and uses the principles of OOP. This approach allows us to build modular, well-supported code with the flexibility to add or remove functions at any time. Why did we opt for PowerShell and not C# or JavaScript? The main reason is that a solution based on PowerShell can be used not only by developers, but also by cloud administrators and system engineers.
Our implementation
We will place our solution into a single Azure Function app container based on a consumption plan. This way, it will not use a lot of resource power, and if more CPU power or memory is required, it is possible to automatically scale it up.
Each function ...