Top Tweets for #loggingIN
Nodejs internals (#25)
I work with this every day, and I still didn’t realize this until today ~~
Express middleware and NestJS interceptors are literally built using the Proxy Pattern.
What is Proxy Pattern (in simplest words)?
Proxy Pattern = something sits in front of a real object,
intercepts the request, adds behavior, then forwards it.
1. Express Middleware → Proxy before route handler
app.use((req, res, next) => {
console.log("Intercepted");
next();
});
Middleware sits between the client and the actual handler:
It can:
modify req
add headers
block request
validate
transform
log
Exactly what a Proxy does.
2. NestJS Interceptors → Proxy around controller methods
@UseInterceptors(LoggingInterceptor)
@Get()
getUser() {
return this.userService.findAll();
}
The interceptor:
runs before the controller
runs after the controller
changes response
catches errors
measures time
injects additional logic
That is a direct implementation of the Proxy Pattern.

Last Seen Hashtags on Sotwe
Most Popular Users

Elon Musk 
@elonmusk
239.7M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.3M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.1M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers
