HTTP client rate limiting with Polly
One usually thinks of rate limiting in a server-side context, i.e., a service limits the rate of incoming requests. Well, we recently had to add client-side rate limiting to our service, i.e., limit...
View ArticleWeb API file upload with metadata
In my experience, file upload is not a very common operation in REST APIs. But when you are dealing with files, JSON requests aren't the best approach. Unless your files are text only or very small,...
View ArticleTraefik reverse proxy for Docker
When I needed a reverse proxy to publicly expose a couple of web applications running in Docker, I decided to use Traefik after doing a short research. Now that I successfully configured it, I don't...
View ArticleHTTP resilience wrapper for Polly
In response to my blog post about client rate limiting with Polly, a colleague brought Microsoft's HTTP resilience NuGet package to my attention. When I took a closer look at it, I was surprised that...
View ArticleElasticsearch log ingest config in .NET
When trying to get the logging to Elasticsearch from .NET to work in the production environment, I spent too much time configuring the logger. It was mostly due to missing and incorrect documentation....
View ArticleDebugging libraries from NuGet
As I was troubleshooting my issues with Elastic logger configuration, I couldn't get the debugging in Visual Studio 2022 to work for the Elastic.Extensions.Logging NuGet package, although it appeared...
View ArticleUsing Fast Node Manager in Windows
When I visited the official Node.js download page after a long time, I noticed fnm (Fast Node Manager) listed as the default download option. I've been successfully using NVM for Windows as the version...
View ArticleTab completions in PowerShell
While learning about Fast Node Manager, I noticed completions for PowerShell being mentioned in the documentation. I wasn't aware of completions beyond filenames and cmdlets were even supported in...
View ArticleOh My Posh update to non-module version
After my latest (not so) regular update of installed PowerShell modules, I was surprised by a breaking change in the Oh My Posh module. Fortunately, a link to an online migration guide was displayed...
View ArticleLogging to file in .NET
Nowadays, it's common to send logs to your logging platform of choice either via a dedicated logger for that platform or via an OpenTelemetry exporter. But what if the logs have to be read from a file?...
View Article