---
title: "💭 Middleware Explained - YouTube"
description: "!https://www.youtube.com/watch?v=JKb_rYvdmpo"
date: 2024-03-26
published: true
tags:
  - webdev
  - thought
template: link
---


<div class="embed-card embed-card-external embed-card-provider-youtube">
  <div class="embed-card-rich">
<lite-youtube videoid="JKb_rYvdmpo" title="Middleware Explained" playlabel="Play: Middleware Explained"></lite-youtube>
  </div>
</div>


Great episode covering a seemingly simple topic.  What I really benefitted from was hearing all the different use cases, from logging, debugging, to a/b testing, caching, and auth.  I hadn't even thought of it being applied to a router.  I thought of it being applied for an entire application.  This seems very useful for things like an admin router, all routes would need to have the admin role to get in.

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
