Skip to main content

OpenTelemetry — See Inside the Request

· 3 min read
Roberto Pintos López
InversifyJS maintainer

You wrote a guard, two interceptors, a pipe, and a controller method. A request comes in slow, and from the outside it's one black box: HTTP GET /items, 800ms, done. Which part was slow? You don't know, so you start adding console.time() calls and hoping you remember to remove them.

gRPC — Your Handler Is a Class

· 5 min read
Roberto Pintos López
InversifyJS maintainer

You wrote the contract in a .proto file. Then the implementation turned into a function handed to server.addService(), closing over whatever it needed because a function has nowhere to put a constructor.

That function can be a class now. The container builds it. The adapter puts it on the wire.

Server-Sent Events - Real-Time Updates Made Simple

· 2 min read
Roberto Pintos López
InversifyJS maintainer

You know what's funny? We've been building real-time features with WebSockets for years, pulling in entire libraries, managing bidirectional connections, and writing custom reconnection logic. Meanwhile, there's been a simpler solution hiding in plain sight: Server-Sent Events (SSE).

And now it's ridiculously easy to use in InversifyJS.