-
Spring to NestJS TypeORM Relations and Migrations: N+1, or Nothing →
The same loop over 20 orders: Spring counted 60 lines in 21 queries, TypeORM made one query and counted zero. Measured on both stacks, with paging a one-to-many, and generated migrations run on real rows.
-
Retries and Circuit Breakers in NestJS, for Spring Developers: One Request, Nine Calls →
One request while the payments API was down became nine calls on Spring Boot and NestJS. Measured: Spring 7 @Retryable and Resilience4j against the new @nestjs/resilience, nested retries, what gets retried, and a breaker that refused fifteen of twenty.
-
Spring to NestJS CORS, Cookies and Sessions: 10,000 Sessions, No Expiry →
A session is the same idea on both stacks: a cookie with an identifier, and state on the server. In NestJS you install that server side yourself, and inherit express-session defaults: a MemoryStore and no expiry. Measured, along with the two browser paths CORS actually takes.
-
Spring to NestJS API Docs with Swagger: 3 Fields → {} →
A typed, validated NestJS request class documents nothing in Swagger by default, while Spring documents the same three fields by itself. Measured on both stacks: why, the hand-written fix that drifts, the CLI plugin that derives it, and the file name boundary it has.
-
Testcontainers for NestJS, for Spring Developers: Fresh Database, Still Two →
A Postgres container per run gave 1 then 2 on every run, on Spring and on NestJS: clean runs, shared tests. Measured: a container per class or file against one for the whole run, and why the order starts to decide.
-
Spring to NestJS TypeORM Entities and Repositories: Changed, Not Saved →
Load an entity, change a field, commit, and never call save. Hibernate writes it; TypeORM writes nothing. Measured on both stacks, with save() against update(), a 64 bit value that loses its last digit, and a TypeORM default that changed between major versions.
-
Spring to NestJS File Uploads and Downloads: Nest Took 50 MB →
Spring Boot refuses a 2 MB multipart file by default. NestJS on Express with Multer accepts 50 MB and keeps it in memory, where heapUsed barely notices. Measured on both stacks: the defaults, the counter that sees the upload, the two-decision fix, and what four concurrent downloads cost buffered and streamed.
-
Spring to NestJS Transactions and Idempotency: Debit, No Credit →
A TypeORM transaction rolled back and the debit survived. Measured on both stacks: what actually joins a transaction, the idempotency race, the unique constraint, and an outbox event for a payment that never existed.
-
Unit Testing NestJS with Vitest for JUnit Developers: Two Calls, Not One →
A mock shared by two tests carried its calls into the second test in a project nest new created today. Measured against Mockito: mock lifecycle on Vitest 4 and 5, clearMocks against mockReset, strict stubs, and vi.mock hoisting.
-
Spring to NestJS Async: One Slow Handler, Everyone Waits →
One NestJS request ran for a second and a half, and an unrelated ping took 1.4 seconds. In Spring the same ping took 4 ms. What changed, and the one word that fixes it only when what it awaits yields.