meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

747: Middleware Explained

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 25 March 2024

⏱️ 28 minutes

🧾️ Download transcript

Summary

Join Wes and Scott for a hasty episode of Syntax as they unpack the power of middleware for developers, covering caching, authentication, A/B testing, error handling, and user redirection in a quick, punchy rundown to supercharge your backend skills! Show Notes 00:00 Welcome to Syntax! 00:41 Syntax on YouTube. 01:28 What is middleware? 05:04 Some real-world examples of middleware. 05:10 Authentication. 07:44 Redirecting users to a specific instance. 08:28 Logging + statistics. 09:41 Debugging. 10:00 Timers. 10:46 A/B testing. 11:59 Error handling + logging. 12:23 Caching. 13:02 Multi-tenant applications. 15:08 Where does it run? 18:07 What are the limitations? 21:52 Next.js middleware is one file only. NextJS Middleware 23:35 Sveltekit solution. Sveltekit Hooks 24:31 Connect style. Fastify Express Fastify Middle 25:28 One last thing, NPM Installing. Hit us up on Socials! Syntax: X Instagram Tiktok LinkedIn Threads Wes: X Instagram Tiktok LinkedIn Threads Scott:X Instagram Tiktok LinkedIn Threads Randy: X Instagram YouTube Threads

Transcript

Click on a timestamp to play from that location

0:00.0

Welcome to Syntax on this Monday, Hastie Treat.

0:04.0

We're going to be stepping into your context here.

0:06.0

We're going to be adding some information and we're going to be downloading directly into your brain.

0:09.7

That's right, we're talking about Middleware.

0:11.6

My name is Scott Tlenski.

0:12.8

I'm a developer from Denver.

0:14.5

And with me, as always, is West Boss.

0:17.6

Back from vacation.

0:18.7

West, how's it going?

0:20.1

Yeah.

0:21.1

Good. I, a little scatterbrain right now because you know you get back from vacation. There's a million little things that you got to got to get to but pretty pretty stoked and well rested. So ready to talk about middleware.

0:35.0

Yeah, it's always good to come back from a vacation and talk about middleware.

0:40.0

We talk about a lot of things on this podcast and if you want to hear

0:44.7

CJ Wes and I talk about even more head on over to our YouTube which is

0:51.0

YouTube.com

0:53.0

at syntax FM on YouTube.

0:55.0

We're posting a ton of stuff.

0:57.0

In fact, just the day we're recording this today,

1:00.0

which will slightly date this.

1:02.0

CJ released a video showing practical examples of Has

1:06.0

the actually the things that we talked about on this very show

1:09.0

and people said we want to see code.

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.