
DevOps, Logging & CI/CD
Winston, Pino, structured logging, correlation IDs, APM, GitHub Actions, GitLab CI, pipelines, automated testing, deployment automation
1What is the main difference between Winston and Pino?
What is the main difference between Winston and Pino?
Respuesta
Pino is designed to be extremely fast with low overhead (asynchronous by default), while Winston is more feature-rich but slightly slower. Pino uses structured JSON by default and avoids synchronous transformations, making it ideal for high-performance applications. Winston offers more transports and formatting options out of the box.
2What is a correlation ID in the context of logging?
What is a correlation ID in the context of logging?
Respuesta
A correlation ID is a unique identifier (UUID) associated with an HTTP request or event, allowing tracing of all related operations across different services and logs. This facilitates debugging distributed systems by grouping all logs from the same transaction. It is typically propagated via HTTP headers (X-Correlation-ID).
3What is the main advantage of structured logging?
What is the main advantage of structured logging?
Respuesta
Structured logging (logs in JSON format with key-value fields) allows easy filtering, searching, and analysis with tools like Elasticsearch, Grafana, or Datadog. Unlike plain text logs, structured logs can be indexed and queried efficiently. This greatly improves observability and debugging in production.
What are the standard log levels in Winston and Pino?
How to implement a global logger in NestJS?
+22 preguntas de entrevista
Otros temas de entrevista Node.js / NestJS
Node.js Fundamentals
Node.js Core APIs
Asynchronous Programming
Express.js Basics
NestJS Fundamentals
REST API Design
Validation & DTO
API Documentation & Contracts
Error Handling
Unit Testing
Task Scheduling
NestJS Modules & DI
Configuration & Environment Management
JWT Authentication
Authorization & RBAC
Database with TypeORM
Prisma ORM
Middleware & Interceptors
File Upload
WebSockets
GraphQL with NestJS
End-to-End Testing
Caching with Redis
Queues with Bull
Docker & Containerization
Microservices
Security Best Practices
Performance & Cloud Deployment
Domina Node.js / NestJS para tu próxima entrevista
Accede a todas las preguntas, flashcards, tests técnicos, ejercicios de code review y simuladores de entrevista.
Empieza gratis