How to execute different REST API requests in parallel in C# on .NET Core?

Solution 1:

What you need is concurrency (not parallelism - i.e., multiple threads).

Concurrent asynchronous code is done by using Task.WhenAll:

public async Task CallMultipleAPIs()
{
  var taskA = GetA("");
  var taskB = GetB(1);
  var taskC = GetC(1, "");
  await Task.WhenAll(taskA, taskB, taskC);
}