---
title: "Mohammad Afnan (@afnan2208) | Hashnode"
description: "developer and tech enthusiast. Read the latest articles by Mohammad Afnan on Hashnode."
url: "https://hashnode.com/@afnan2208"
---

@afnan2208

# Mohammad Afnan

@afnan2208 · Joined May 2025

developer and tech enthusiast

### [Optimizing Express Middleware: Passing Data via req to Avoid Extra DB Queries](https://nodejs-backend-tips.hashnode.dev/optimizing-express-middleware-passing-data-via-req-to-avoid-extra-db-queries?utm_source=hashnode&utm_medium=feed)

Background so i am currently working on a youtube clone backend project which i started to understand backend development and express better. i have had made the architecture in the standard form like controller in one directory , models in one direc...

2 min read · [nodejs-backend-tips.hashnode.dev](https://nodejs-backend-tips.hashnode.dev/optimizing-express-middleware-passing-data-via-req-to-avoid-extra-db-queries?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/optimizing-express-middleware-passing-data-via-req-to-avoid-extra-db-queries/6835eb2a07b1990086c5e7bc) [May 27, 2025](https://hashnode.com/posts/optimizing-express-middleware-passing-data-via-req-to-avoid-extra-db-queries/6835eb2a07b1990086c5e7bc)
