Sales order generator

Because we don't have a website with thousands of orders coming in, we'll create a new process to generate a new sales order message. Then, we'll use a tool called JMeter to call this process enough times to simulate a heavy load. Let's build our application to create new messages first; the first step is to create a new .NET Core 3 console application.

If you have decided to not use JMeter, then follow through anyway, and I'll explain which sections you should skip.

Because we're going to write to and read from a storage queue, we'll put that code inside a separate helper library. For now, we'll simply write the code as though the helper exists. Let's start with the console's main method:

static void Main(string[] ...

Get C# 8 and .NET Core 3 Projects Using Azure - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.