---
title: "Discussion on \"What is Middleware in Express and How It Works ?\" | Hashnode"
description: "Discussion on \"What is Middleware in Express and How It Works ?\". You have been writing Express routes for a while now. Request comes in, your handler runs, response goes out. That flow feels natural.\nBut then you start noticing patterns across your routes. Every pr"
url: "https://hashnode.com/posts/what-is-middleware-in-express-and-how-it-works/69fa346da386d7f121c31fd4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is Middleware in Express and How It Works ?](https://nodejsbeginner.hashnode.dev/what-is-middleware-in-express-and-how-it-works?utm_source=hashnode&utm_medium=feed)

You have been writing Express routes for a while now. Request comes in, your handler runs, response goes out. That flow feels natural. But then you start noticing patterns across your routes. Every pr

May 5 · 10 min read · nodejsbeginner.hashnode.dev  
Read the article

## Written by

[Bhargava Ram](https://hashnode.com/@bhargavaram)

@bhargavaram

  
[View profile](https://hashnode.com/@bhargavaram)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
