Azure Functions

#DevHack: Simple caching in Node.js Azure Functions

October 12, 2020

Azure Functions do not have an out-of-the-box caching mechanism. For caching, the recommended way would be to use a distributed cache like Azure Cache or Redis. These services each come with their price tag and might be too robust for the cache you want to create or need. For Azure Function created with C#, you can use the good old memory cache.

Read more

Parse multipart/form-data in Azure Function

September 2, 2020

While working on an internal Azure Static Web Site project, I needed to upload CSV files to an Azure Function to import data to Cosmos DB. When uploading a file to your API, the multipart/form-data content-type is used. The body’s format looks a bit “special” as it requires some parsing to get each file.

Read more

Parse application/x-www-form-urlencoded in Azure Function

August 22, 2020

For a Mailchimp webhook, I had to parse the application/x-www-form-urlencoded form data to JSON. Azure Functions does not automatically do this for you, so you have to provide your parser. I knew that I had already done this, so I went on a search journey through my code. To make it easier next time, I wanted to share the code snippet with the rest of you.

Read more

Which service? Netlify vs Vercel vs Azure Static Web App

August 18, 2020

I like to use static websites. It is fun to see that so many go back to the “old” way of working, but still try to find our ways to add our content dynamically. Retro tech is hip again Last year I made my move to static with my blog, which is now running on the Azure Storage static website option and powered by Hugo and do not regret it.

Read more

How to make local Azure Static Web App development easier

August 14, 2020

Static sites are cool again (actually for a long time), and Microsoft knows that. Their new Azure Static Web App - App Service is currently in preview. At the moment, it still misses some key functionalities, but I am sure that these will get added once they put it in GA (hopefully to be announced at Ignite in September 2020).

Read more

Why does your timer trigger Azure Function run at unforeseen times?

January 21, 2020

Why does your timer trigger Azure Function run at unforeseen times? Has it ever happened that your timer triggered Azure Function was running on unforeseen times? We had it for two functions, and could not immediately find out where or why this was triggered more than once an hour. Timer function running multiple times per hour One of the functions should run once every hour, but as you can see, sometimes it runs more.

Read more