ViewTube

ViewTube
Sign inSign upSubscriptions
Filters

Upload date

Type

Duration

Sort by

Features

Reset

50 results

Code with Sam
Your NestJS role guard does not protect the service 🔥

Roles with a RolesGuard: user 403, admin 200 through the route. Called directly, the service still ran. This guard protects entry ...

0:40
Your NestJS role guard does not protect the service 🔥

23 views

19h ago

Code with Sam
Same wait. One of them stops everyone 🔥

In Spring MVC the ping took 4 ms. In NestJS, with a busy handler, 1402 ms. Same wait, very different cost. Full video, with the ...

0:41
Same wait. One of them stops everyone 🔥

816 views

2d ago

Code with Sam
The NestJS route you added last is public 🔥

A guard on the payments controller, and a refunds controller added later: anonymous refunds answered 200 in NestJS, 401 in ...

0:41
The NestJS route you added last is public 🔥

36 views

19h ago

Michael Guay
NestJS on Bun, natively

A NestJS Bun adapter that runs your app straight on Bun.serve(). Swap one line, keep every controller, pipe, guard and filter, and ...

1:00
NestJS on Bun, natively

834 views

5d ago

Code with Sam
NestJS can start broken 🔥

A missing setting starts cleanly as undefined, and the first payment fails. A Zod schema makes Nest refuse at startup, with the key ...

0:46
NestJS can start broken 🔥

198 views

2d ago

Code with Sam
A promise is not another thread 🔥

A NestJS handler awaited a real timer for 1.5 seconds and a ping sent meanwhile took 2 ms. The handler suspended, and control ...

0:39
A promise is not another thread 🔥

222 views

2d ago

Simon Tamene sima
Learn Prisma + NestJS | Build an API with PostgreSQL 🚀

Welcome to my Prisma + NestJS tutorial series! In this tutorial, we'll learn how to build a real backend API using NestJS, Prisma ...

1:02:13
Learn Prisma + NestJS | Build an API with PostgreSQL 🚀

17 views

5d ago

Code with Sam
Trust proxy true lets clients skip your rate limit 🔥

With trust proxy true (Express) or the framework strategy (Spring), the key was the leftmost X-Forwarded-For entry, which the client ...

0:37
Trust proxy true lets clients skip your rate limit 🔥

7 views

18h ago

Code with Sam
Your domain exception became three generic words 🔥

Insufficient funds, short by 250, reached the client as "Internal server error". The safer default for an unknown error, but this one ...

0:42
Your domain exception became three generic words 🔥

361 views

1d ago

Code with Sam
Your PUT request was sent three times 🔥

The new @nestjs/http-client retries by default: GET and PUT were sent three times, POST once. RestClient and axios sent each ...

0:38
Your PUT request was sent three times 🔥

0 views

8h ago

Code with Sam
Max retries three is four attempts 🔥

Spring 7's @Retryable counts retries after the first call; with no settings it made four calls a second apart. Nest's @Retry counts ...

0:44
Max retries three is four attempts 🔥

0 views

7h ago

Code with Sam
chain.doFilter() is not next() 🔥

A try block around chain.doFilter catches what the handler throws. The same try block around next() in NestJS middleware ...

0:41
chain.doFilter() is not next() 🔥

238 views

1d ago

Code with Sam
Your HTTP client has no timeout 🔥

RestClient, @nestjs/axios and the new @nestjs/http-client all waited the full ten seconds by default. With a timeout each gave up, ...

0:37
Your HTTP client has no timeout 🔥

15 views

8h ago

Code with Jay
Build an Orders API in NestJS: Nested Prisma Writes and Server-Side Totals E-10

A store is not a store until someone can buy something. This episode builds orders, and it puts the money math where it belongs: ...

24:19
Build an Orders API in NestJS: Nested Prisma Writes and Server-Side Totals E-10

456 views

4d ago

Code with Sam
401 or 403? Your NestJS guard picks one 🔥

A Nest guard that returns false sends 403. A missing or invalid token is a 401, so throw UnauthorizedException for it and keep 403 ...

0:38
401 or 403? Your NestJS guard picks one 🔥

17 views

19h ago

Code with Sam
This warning disappears in development 🔥

The same NestJS server with express-session prints nothing under NODE_ENV=development, and warns about its MemoryStore ...

0:38
This warning disappears in development 🔥

3 views

1d ago

Solution Architect
Decorator Pattern

You need logging, retry and caching on a class you are not allowed to touch. Subclassing gives you one class per combination; ...

1:17
Decorator Pattern

42 views

5d ago

Code with Sam
One request, nine calls to the payments API 🔥

A Nest @Retry handler over the new HTTP client's own retries: one request, nine calls. Spring's @Retryable over @Retryable: ...

0:37
One request, nine calls to the payments API 🔥

0 views

7h ago

Code with Sam
Your API docs are an empty object 🔥

A NestJS request class with three typed, validated fields, and the Swagger docs show {}. The types are still known at runtime; ...

0:43
Your API docs are an empty object 🔥

996 views

1d ago

CodeWise
Kafka vs RabbitMQ: the real difference #shorts

RabbitMQ deletes a message once it's consumed. Kafka keeps an ordered log you can replay. Here's when to use each.

0:43
Kafka vs RabbitMQ: the real difference #shorts

779 views

2d ago