Home Archive Web APIs, testing, and performance – .NET News Daily Issue #177 (Apr 17, 2025)

Editor's note

I curated a pretty balanced mix this time: practical API guidance, architecture patterns, and a few performance-focused reads. The MCP server piece stands out for anyone experimenting with AI tooling in .NET, while the sequential GUID and EF Core articles are immediately useful in production code.

Web APIs, testing, and performance

It's Thursday, and just like a classic muscle car, your .NET skills are built for performance and ready to roar. As we stand on the cusp of the weekend, let's channel that horsepower into mastering the latest .NET trends and tricks. Our meticulously curated articles are here to supercharge not just your knowledge but also your coding prowess. Buckle up and accelerate into a realm of insights that promise to refine your developer journey.

Today's Articles

Wage Calculator in C# — Part 2: Overtime Logic

https://medium.com/@fulton_shaun/wage-calculator-in-c-part-2-overtime-logic-3d4da28ca575

Let’s upgrade our basic wage calculator to include time-and-a-half pay for hours worked over 40.

Article preview

TOP 15 Mistakes Developers Make When Creating Web APIs

https://medium.com/c-sharp-programming/top-15-mistakes-developers-make-when-creating-web-apis-3837fcbf4b59

A Developer’s Journey into API Chaos Continue reading on .Net Programming »

Article preview

Interface Segregation Principle (ISP)

https://www.c-sharpcorner.com/article/interface-segregation-principle-isp2/

The Interface Segregation Principle (ISP) is one of the SOLID principles of object-oriented design. It promotes creating small, specific interfaces so that implementing classes don’t need to depend on...

Article preview

The Critical Importance of Unit Testing for APIs in C#.NET Development

https://medium.com/@S_Jathurshan/fae31535ff63

As a C#.NET developer, I’ve learned that building an API is only half the battle. The other half? Making sure it works correctly… Continue reading on CodeElevation »

Article preview

Vibe Coding with Latest Visual Studio Preview

https://visualstudiomagazine.com/articles/2025/03/26/vibe-coding-with-latest-visual-studio-preview.aspx

Microsoft's latest Visual Studio preview facilitates "vibe coding," where developers mainly use GitHub Copilot AI to do all the programming in accordance with spoken or typed instructions.

Article preview

11 Rules for Writing Better Code in C#

https://medium.com/c-sharp-programming/11-rules-for-writing-better-code-in-c-a6ebaf506f70

I’ve been writing C# code for over a decade now. Some days, I look back at my early work and cringe at the decisions I made. Continue reading on .Net Programming »

Article preview

Build a Model Context Protocol (MCP) server in C#

https://devblogs.microsoft.com/dotnet/build-a-model-context-protocol-mcp-server-in-csharp/

Learn how to build a Model Context Protocol (MCP) server using the C# SDK to enable seamless communication between AI models and applications.

Article preview

Why would I add vectors to a relational database?

https://www.youtube.com/watch?v=vHhKEN7Ru_k

Article preview

10 Costly HttpClient Mistakes in C#.NET (And How to Fix Them Like a Pro)

https://medium.com/@ashokreddy343/10-costly-httpclient-mistakes-in-c-net-and-how-to-fix-them-like-a-pro-96f08a38a833

Introduction: Continue reading on Towards Dev »

Article preview

How to Generate Sequential GUIDs in .NET

https://medium.com/@michaelmaurice410/how-to-generate-sequential-guids-in-net-2ee0a6a120b9

Introduction: A Story About IDs That Needed a Hero

Article preview

Building a Serverless ASP.NET Core Web API using AWS Lambda and Amazon API Gateway (REST API)

https://cloudgurupayments.medium.com/building-a-serverless-asp-net-core-web-api-using-aws-lambda-and-amazon-api-gateway-rest-api-ea86ada61943

Serverless is more than a buzzword — it’s a shift in how we build and deploy modern applications. Imagine writing your backend logic and… Continue reading on AWS Tip »

Article preview

Vertical Slice Architecture In .NET using Cortex.Mediator and Minimal APIs

https://medium.com/@eneshoxha_65350/vertical-slice-architecture-in-net-using-cortex-mediator-and-minimal-apis-dd7fe575d46a

Vertical Slice Architecture (VSA) has gained traction as an antidote to traditional layered architectures, where changes often ripple…

Article preview

Interface Contract Testing: A Reusable Test Suite for Interface-First Design in C#

https://medium.com/@asher.garland/interface-contract-testing-a-reusable-test-suite-for-interface-first-design-in-c-31ad3da331a9

Interface Contract Testing is a powerful pattern that elevates interfaces to first-class testable contracts.

Article preview

Creating Business Applications Using Blazor

https://visualstudiomagazine.com/Articles/2025/04/08/Creating-Business-Applications-Using-Blazor.aspx

Expert Blazor programmer Michael Washington' will present an upcoming developer education session on building high-performance business applications using Blazor, focusing on core concepts, integratio...

Article preview

.NET Aspire and Azure Functions integration preview

https://devblogs.microsoft.com/visualstudio/net-aspire-and-azure-functions-integration-preview/

Have you ever struggled with integrating serverless technology into your existing .NET projects? The new update in Visual Studio has got you covered. Say hello to the powerful integration of .NET Aspi...

Article preview

Entity Framework Core Tips: Reduce SQL Server Size and Improve Performance

https://medium.com/@yusufsarikaya023/entity-framework-core-tips-reduce-sql-server-size-and-improve-performance-77e650ae1ec2

In this article I’d like to show you a few different tips that help you to improve database performance and do efficient mapping. Also…

Article preview

C# String vs. StringBuilder vs. Span — What’s the Best for Performance?

https://medium.com/write-a-catalyst/c-string-vs-stringbuilder-vs-span-whats-the-best-for-performance-f1d050a6c02d

Discover which is faster in C#: String, StringBuilder, or Span. Boost your app’s performance with real benchmarks and expert insights Continue reading on Write A Catalyst »

Article preview

Jasen's take on today's picks

Wage Calculator in C# — Part 2: Overtime Logic

A hands-on follow-up on overtime logic that reminds us domain rules get tricky fast.

TOP 15 Mistakes Developers Make When Creating Web APIs

A solid roundup of API mistakes; worth skimming if you build or review public endpoints.

Interface Segregation Principle (ISP)

A clear refresher on ISP that pairs nicely with the testing-heavy articles in this issue.

The Critical Importance of Unit Testing for APIs in C#.NET Development

Strong case for API unit tests here; reliability still starts with fast feedback.

Vibe Coding with Latest Visual Studio Preview

Visual Studio’s latest preview gets some AI-flavored attention with practical implications.

11 Rules for Writing Better Code in C#

Good advice on writing cleaner C# without pretending style alone fixes design.

Build a Model Context Protocol (MCP) server in C#

Microsoft’s MCP server guide is the forward-looking read in the lineup for AI-enabled tooling.

Why would I add vectors to a relational database?

The vectors-and-relational-database discussion is the sort of architecture question teams are asking now.

10 Costly HttpClient Mistakes in C#.NET (And How to Fix Them Like a Pro)

HttpClient pitfalls remain common; this piece is a useful checklist for avoiding subtle production bugs.

How to Generate Sequential GUIDs in .NET

Sequential GUIDs are a niche topic, but they matter when indexing and insert performance start hurting.

Building a Serverless ASP.NET Core Web API using AWS Lambda and Amazon API Gateway (REST API)

A serverless ASP.NET Core API walkthrough that should help teams weighing AWS Lambda for .NET.

Vertical Slice Architecture In .NET using Cortex.Mediator and Minimal APIs

Vertical slice architecture plus Minimal APIs makes for a pragmatic modern backend pattern discussion.

Interface Contract Testing: A Reusable Test Suite for Interface-First Design in C#

Interface contract testing is a nice bridge between interface-first design and maintainable test suites.

Creating Business Applications Using Blazor

Blazor gets a business-app angle here, with a focus on real UI delivery rather than demos.

.NET Aspire and Azure Functions integration preview

The Aspire and Azure Functions preview is notable for teams building cloud-native .NET systems.

Entity Framework Core Tips: Reduce SQL Server Size and Improve Performance

EF Core tuning advice aimed at reducing SQL Server bloat and improving throughput.

C# String vs. StringBuilder vs. Span — What’s the Best for Performance?

A useful performance comparison for string-heavy code paths, especially where allocations matter.

Related issues

📬 Get daily .NET content delivered to your inbox