EDDYMENS

Published a year ago

What Is Routing?

Table of contents

Definition

A Web router is part of a web system that is responsible for mapping URLs [→] to content or pages.

Routing is the process of doing so.

Use Cases and Examples

Most Content Management Systems [↗] come with routing systems that dynamically match URLs to their content.

This mapping in most systems is done by converting the title of the article into a URL slug [→].

Routers in web apps are used to move a user to different pages as they navigate their way. Routers in web apps, however, do a lot more than just move the user around. They can also carry data and send this back to be processed by the app.

This can take the form of a query parameter [→] or path parameter [→].

Summary

If moving across the web is using roads, routers are the maps that guide us towards our destination.

Here is another article you might like 😊 What Is Semantic?