Azure Functions

How to use complex settings in Azure Functions using Options pattern and Dependency injection

I only recently found out about this, so I had to share it immediately. I have been using the Values section in the local.settings.json in a not-recommended way for some time. Application settings in the local.settings.json has some naming restrictions which I have been ignoring as the way I used it seemed to work. The docs said: Values must be strings and not JSON objects or arrays. Setting names can't include a colon (:) or a double underline (__)....

October 22, 2021 · 2 min · 345 words
System Design

Azure functions with Swagger and OpenAPI

What is OpenAPI specification? This is a specification for machine-readable interface files for describing, producing, consuming and visualizing RESTful web services. Apparently, this was earlier part of the Swagger framework, it became a separate project sometime in 2016 overseen by the Open API initiative, an open-source collaboration project of the Linux Foundation. I am not trying to sound clever here. That’s all taken from wikipedia as I just wanted to give you an idea of what it is without having to leave this post....

September 19, 2021 · 5 min · 952 words