How do you correlate logs across microservices?
Use W3C Trace Context-compatible tracing, propagate trace headers through HTTP and messaging, and include trace/span identifiers in logs.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 1129–1140 of 3610 questions
Use W3C Trace Context-compatible tracing, propagate trace headers through HTTP and messaging, and include trace/span identifiers in logs.
Versioning can use URL segments, query parameters, headers, or media types. Choose a consistent approach, document supported versions, and provide a deprec
Sort by a unique stable ordering, return the last key as a cursor, and query for rows after that key. Encode and validate cursor data; protect it if it con
Enforce size limits, allowlist file types, inspect content rather than trusting extensions, generate server-side names, store outside executable web roots,
Mass assignment happens when request fields are copied onto sensitive domain/entity properties without an allowlist. Use dedicated request DTOs and explici
Server-side request forgery can occur when an API fetches a user-supplied URL. Restrict schemes and destinations, validate DNS/IP results, block private/me
Identify tenant context from a trusted authenticated claim or validated host, enforce tenant scoping in every query, and consider database-per-tenant or sh
The strangler pattern routes selected capabilities to a new implementation while the legacy system continues serving the rest. Over time, more routes move
Records are designed for value-oriented data models and provide value-based equality by default. Classes normally use reference identity unless e
Pattern matching checks an input against type, constant, relational, property, or list patterns. It can make branching more expressive and reduce
Span<T> represents a contiguous region of memory without copying. It is stack-only and cannot be stored in ordinary heap objects or cross an awai
Use await using with IAsyncDisposable when cleanup itself requires asynchronous work, such as flushing or closing an asynchronous resource.