Node.js Latency Measurement and Event Loop Delay
Measure Node.js latency without fooling yourself: monotonic clocks, percentiles over averages, coordinated omission, and event loop delay and ELU.
Focused explanations and longer guides, with worked scenarios, common mistakes and interview exercises across every chapter.
Showing 145–168 of 200 articles
Measure Node.js latency without fooling yourself: monotonic clocks, percentiles over averages, coordinated omission, and event loop delay and ELU.
Why .pipe() leaks the source when a destination fails, what pipeline() destroys for you, and what a client sees when an export breaks halfway.
What write() returning false means, how ignoring it buffered 197 MB for one slow client, and why awaiting drain alone hangs on a disconnect.
Why an unawaited assert.rejects passes, how one unclosed server hung a test file, and node:test patterns that keep each test's state its own.
setTimeout promises a minimum delay, not a time. Measured drift, skipped interval ticks, and how to build a countdown that stays correct.
On Node 22 a worker cut main-thread lag from 455 ms to 1 ms, yet a new worker per tiny task was 550x slower. Build a bounded pool instead.
Build an accessible React modal: native dialog with showModal, focus on open, Escape to close, focus restoration and testing with keyboard only.
Stop syncing state with useEffect: compute filtered lists, totals and validity during render in React, and use useMemo only for real cost.
When React runs useEffect cleanup, why Strict Mode mounts twice, and how to clean up listeners, timers, sockets and fetches without leaks.
What React error boundaries catch and miss, where to place them so one failing widget does not blank the page, and how to reset after errors.
How useSyncExternalStore subscribes React to an external store without tearing, why getSnapshot must be cached, and how server snapshots work.
What causes React hydration mismatch errors: dates, random ids, window checks and bad HTML nesting, plus fixes with useId, effects and Suspense.
Why React list keys matter: how index keys attach state to the wrong row after deletes or reordering, and how to pick a stable, unique key.
When to choose useReducer over useState: model status as one field, reject impossible transitions in the reducer, and test it in plain Node.
useRef vs useState in React: refs change without re-rendering, state drives the UI. Learn which values belong where, with timer and DOM examples.
Reset a React form when the selected record changes by giving it a key: how keys control state identity and why useEffect resets go wrong.
Which Spring Boot Actuator endpoints to expose, how exposure differs from authorization, and how to lock down env, heapdump and health details.
How Spring Boot auto-configuration works: AutoConfiguration.imports, @ConditionalOnMissingBean, the conditions report, and safe overrides.
When Spring Security CSRF protection is needed: cookie sessions vs bearer tokens, SameSite, CookieCsrfTokenRepository and SPA setups in Boot 3.
Map Spring Boot exceptions to stable HTTP errors with @RestControllerAdvice and ProblemDetail, without leaking stack traces or internals.
Set connect and read timeouts on Spring RestClient and WebClient, size them from a latency budget, and stop slow calls exhausting threads.
Why Hibernate throws LazyInitializationException in Spring Boot, how open-in-view hides it, and how fetch joins, entity graphs and DTOs fix it.
How JPA @Version prevents lost updates in Spring Boot, what ObjectOptimisticLockingFailureException means, and when to retry or return 409.
What @DataJpaTest loads, why its rollback and embedded database can hide bugs, and how to test Spring Data repositories with Testcontainers.
No notes match that… try another filter.