Urgent.News

What's breaking now, across hundreds of outlets.

Tech

NestJS platform-node (12.3): The Adapter That Reorders Your Routes

A team upgrades @nestjs/core and swaps NestFactory.create(AppModule) for NestFactory.create(AppModule, new NodeAdapter()) — NestJS's brand-new, Express-free HTTP adapter, chasing the ~50% throughput bump its author measured against Express. Everything passes locally. In production, a request to /users/Me — a stray capital from an old mobile build nobody's shipped in a year — starts returning 404…

A team upgraded @nestjs/core, replacing NestFactory.create(AppModule) with NestFactory.create(AppModule, new NodeAdapter()). This new, Express-free HTTP adapter, @nestjs/platform-node, was measured to improve throughput by ~50% compared to Express. However, after the upgrade, a request to /users/Me, which was previously returning the profile, started returning 404. The issue wasn't routing or controller changes; it was the adapter enforcing a case-sensitive routing behavior Express didn't have.

@nestjs/platform-node is introduced in NestJS 12.3.0, with its own unique assumptions about routing compared to Express. This article explains how the new adapter matches routes, the case-sensitivity trap, and whether adopting it is beneficial before it becomes the default in v13.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

RoboDojo Sim, an Isaac Sim Benchmark Cited in the Fable 5.2 Model Card, Reopens the Simulation Debate

RoboDojo Sim, an Isaac Sim Benchmark Cited in the Fable 5.2 Model Card, Reopens the Simulation Debate RoboDojo sim, a robotics benchmark built on NVIDIA's Isaac Sim and cited in the model card for…

  • RoboDojo Sim, built on NVIDIA's Isaac Sim, sparks debate
  • Technical assessment claims simulator "not even wrong"
  • LLM-powered agents can generate better simulation than hand-built environments

What a published pricing formula lets you verify in five minutes

Two weeks ago a procurement lead forwarded a PDF with one number circled: a per-token rate, described as "discounted". She asked a fair question — is this good? I could not answer from the PDF.

  • Locate vendor's list price for input and output tokens on their website
  • Apply coefficient to both numbers, multiplying them together
  • Compare calculated rate against published row to verify pricing formula

OpenTelemetry Collector Kubernetes setup for Dynatrace: Helm, Operator and k8sattributes

Your pods send OpenTelemetry traces, but in Dynatrace they arrive with no pod name, no namespace and no node. You cannot tie a latency spike to a specific deployment, and MTTR grows.

  • Deploy OpenTelemetry Collector DaemonSet in Kubernetes cluster
  • Add k8sattributes processor to include pod names, namespaces, and nodes
  • Export traces, metrics, and logs to Dynatrace SaaS or Managed over OTLP

More from Friday 27 November →