Please stop using Any() for C# Lists and Arrays
I'm here to talk about C# performance optimization (again). And about why you should stop using the
.Any() LINQ method with Lists and Arrays and embrace the old-school
.Length instead. Don't want to point any fingers, but I see people do it all the time, even in (cough) Microsoft's own .NET source codes.
Clearing Nginx Proxy Cache for Wildcard URLs: A DIY Guide
Sometimes you find yourself in a situation where you need to clear the Nginx proxy cache for a specific set of URLs, particularly those following a wildcard pattern like
www.website.com/folder/*. Surprisingly, Nginx, in its standard offering, doesn't provide a straightforward way to do this. They probably want you to upgrade to Nginx Plus for such "advanced" features. But fear not! There's a DIY workaround that's both effective and satisfyingly rebellious.
How I learned to stop worrying and wrote my own memory-cache
Here I am, writing about performance optimization again. I'm a performance junkie. Constantly monitoring and investigating bottlenecks for our SaaS helpdesk webapp is my favorite thing ever. And I'm proud to say that with thousands of clients, even some really big ones, our app's backend process rarely goes higher than 5-6% CPU. Even during the peak load times which happen around 2-3pm UTC - the time when "Americas are waking up while Europe is still very active".