Skip to main content

280 posts tagged with "C#"

C# Programming Language

View All Tags

How to Test a Race Condition in a Web API from the Terminal

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

A race condition doesn't show up when you send one request at a time. You need several at the same moment, and you don't need a load-testing tool: curl with xargs does it on macOS and Linux, and ForEach-Object -Parallel does it in PowerShell. Then check what's in the database, because the status codes alone can look fine.