Azure Functions and forbidden sockets exception

What to do, when your Azure Function/Azure Web App application, after some time running, starts failing outgoing connections (e.g. HttpClient requests) on SocketException, but after restart your app starts to work.

Featured image of post Optimize Azure CosmosDB costs

Optimize Azure CosmosDB costs

Azure CosmosDB is one of the best NoSQL databases I ever worked with. But in many use cases, this database makes your budget bleeding. This post describes this service pricing & how to optimize costs (mostly for MongoDB-styled developers).

Featured image of post Running Azure Functions in Docker container – crashes on production

Running Azure Functions in Docker container – crashes on production

One day I have deployed my Azure Function app into container to production server (.NET Core on Linux). And app started to fail after few minutes, without any reason, with exit code 137. This post describes how I debugged the problem – to my suprise, it was caused by .NET Garbage Collector.