Routing and Business Logic

NUR ARIF
2 min readJun 21, 2023

In the software development process, there are two important concepts, namely routing and business logic.

I will explain with a simple analogy suppose there is a complex city, with many confusing streets and intersections. When we want to reach our destination, we need to rely on the correct route or road to get there. In the world of software development, this concept is known as routing.

Photo by Javier Allegue Barros on Unsplash

Routing in software development is akin to finding the best route in a complex city. For example, when we access a website or app, we enter the URL. At that time the system will use the routing concept to map the URL entered by the user to the appropriate action or function in the application. Similar to finding the best route, routing helps us reach our destination within the application by directing user requests to the right place.

Next, imagine that we are managers at a large company. As managers, it’s our job to make crucial decisions and ensure the smooth running of the company’s operations. We need to follow business rules and process information with the right logic to do this. This concept is known as business logic in software development.

Business logic is similar to a manager’s job of making decisions based on business rules and available information. In software development, business logic controls data processing, decision-making, and critical operations in applications. For example, when a user makes an in-app purchase, the business logic manages pricing, payment verification, and order processing.

Routing in software development plays an important role in directing user requests to the appropriate business logic. By matching URLs with predefined patterns, routing determines the action or function that must be executed based on that URL. By taking parameters from URLs and passing them to business logic, routing enables the processing of data relevant to user requests. Proper and clear routing and business logic, will make the application operate efficiently and provide accurate responses to users, by ensuring all requests are processed by the right business logic according to business requirements.

--

--

NUR ARIF

Backend | Data Scraping | Content Writer | Python Programming | Passionate Cyber Security