Stuart Greig

@stuartgreigdev
5 Followers
2 Following
68 Posts
Software Developer | Exploring AI & modern CMS | Building things at http://stuartgreig.dev 🦡

One forgotten form is all it takes for a bot attack to disrupt your site.

We recently caught a spam storm on a "hidden" legacy form. Audit every entry point—if it accepts input, it needs reCAPTCHA or bot protection. No exceptions.

#Optimizely #DotNet

Simple retries can make a bad situation worse. Stop DDOSing your own API.

A linear 5-retry loop holds threads too long. Use exponential backoff with jitter and a circuit breaker. Fast-fail when a service is down to keep the rest of your site responsive.

#Polly #DotNet

Mixing sync EF Core calls in async actions? You're starving your thread pool.

Blocking threads for DB I/O kills scalability. Replace FirstOrDefault() with FirstOrDefaultAsync(). Go async from repo to controller. Don't use .GetResult().

#DotNet #Performance

Is your site lagging on cache expiry? You might have a cache stampede.

If 100 threads miss the cache at once, they all hit your DB. Solve it with double-checked locking using SemaphoreSlim. Only one thread fetches; the rest wait for the result.

#DotNet

Stop using new HttpClient() inside your services!

Even with a using block, you’re prone to socket exhaustion under load. The OS can't recycle them fast enough.

The fix? Inject IHttpClientFactory. Let the factory manage the handler lifecycle for you.

#DotNet

Building custom property editors in CMS 13? Good news: you can finally drop Dojo. 🚀

Modern JS frameworks like React are now supported via the JS SDK. No more legacy UI lock-in just a massive DX win for your team.
#Optimizely

I'm going to keep going on about this until everyone I know joins =)
https://app.daily.dev/squads/optimizelytech

Please join my #Optimizely community on daily.dev great place to share articles and insights into the platform

I'm very excited to announce that I have moved from Silver to Optimizely Most Valued Professional (OMVP) Gold status this year!
It had been my goal to achieve this next year so getting it a year early is amazing.
Onwards to Platinum now!
#Optimizely #OMVP #CareerMilestone #ProfessionalGrowth

Heads up, .NET devs: ASP.NET Core 2.3 officially hits end of support on April 13, 2027.

If you’re still relying on it for .NET Framework compatibility, the clock is ticking. Start planning your migration to a modern .NET version now.

#DotNet

Staying on top of CMS updates is a full-time job. Let's make it easier. Join the Optimizely Tech Squad on daily.dev to share resources, solve DX headaches, and connect with other developers.

Join us: https://app.daily.dev/squads/optimizelytech #Optimizely #DotNet

Optimizely Squad | daily.dev

A dedicated space for Optimizely developers. From .NET implementation and Optimizely Graph integrations to headless delivery and custom block development—let’s talk shop, share code, and optimize our builds.

daily.dev