I've been going through the aspnet core 3 Rest API tutorial here (Code below)...
I want to host this in a console app. My understanding is that this uses "Kestrel" as a web server. Lets assume a request takes 10 seconds.
If two requests came in at the same time, what exactly would be different between two scenarios where one used Async Await Task , and one did not ( returned normal ActionResult) in my Console App?
[HttpGet("{id}")]
public async Task<ActionResult<TodoItem>> GetTodoItem(long id)
{
var todoItem = await _context.TodoItems.FindAsync(id);
if (todoItem == null)
{
return NotFound();
}
return todoItem;
}