---
title: "What is routing in ASP.NET Core?"  
description: "What is routing in ASP.NET Core?"  
author: "Sanjay Goenka"  
published: 2023-03-06  
updated: 2023-06-25  
canonical: https://www.mindstick.com/forum/157462/what-is-routing-in-asp-dot-net-core  
category: "asp.net core"  
tags: ["asp.net", "asp.net core"]  
reading_time: 2 minutes  

---

# What is routing in ASP.NET Core?

What is [routing](https://www.mindstick.com/articles/11998/attribute-routing-in-asp-dot-net-mvc) in [ASP.NET Core](https://www.mindstick.com/articles/12946/get-started-with-asp-dot-net-core-mvc-and-visual-studio)?

## Replies

### Reply by Aryan Kumar

Routing in [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) Core is the process of matching incoming HTTP requests to specific controller actions. This allows you to control how users access your application's functionality.

In ASP.NET Core, routing is implemented using the `IRouter` interface. The `IRouter` interface provides a number of methods for defining routes, such as `MapRoute()` and `MapControllerRoute()`.

Routes can be defined in a variety of ways, including:

- **Convention-based routing:** Convention-based routing uses a set of conventions to automatically generate routes for your controllers and actions.
- **Attribute routing:** Attribute routing uses attributes to define routes. This is a more flexible way to define routes, but it can also be more complex.
- **Mixed routing:** Mixed routing uses a combination of convention-based routing and attribute routing.

Once you have defined your routes, the `IRouter` interface will use them to match incoming HTTP requests to specific controller actions. If a match is found, the corresponding controller action will be executed.

Routing is a powerful feature that can help you to improve the usability and scalability of your ASP.NET Core applications. By carefully defining your routes, you can ensure that users can easily access the functionality that they need, and that your application can handle a large number of concurrent requests.

Here are some of the benefits of using routing in ASP.NET Core:

- **Usability:** Routing can help to improve the usability of your application by making it easier for users to find the functionality that they need.
- **Scalability:** Routing can help to improve the scalability of your application by allowing you to distribute your application's functionality across multiple servers.
- **Flexibility:** Routing is a flexible feature that can be used to control how users access your application's functionality.


---

Original Source: https://www.mindstick.com/forum/157462/what-is-routing-in-asp-dot-net-core

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
