Перейти к содержимому

One Slow Service Took Everything Down | Microservices | Node.js | Spring Boot Explained

SuperUzer

0:00 / 0:00

One Slow Service Took Everything Down | Microservices | Node.js | Spring Boot Explained

21 просмотр · 10 дней назад
SuperUzer
65 подписчиков
21 просмотр · 10 дней назад
Sale day. The payment service starts answering in thirty seconds instead of three hundred milliseconds, the order service keeps waiting, and soon the whole platform is down even though only one service is slow. If you know Spring Boot, you already know the fix. This interview-prep deep dive maps every microservices idea from Spring Boot to Node.js: service discovery (Eureka and Consul vs Kubernetes DNS), Spring Cloud Gateway vs a Node gateway, configuration, Resilience4j vs opossum, sync vs async communication, sagas, the outbox pattern, observability with OpenTelemetry, and shipping with Docker and Kubernetes. It ends with a rapid-fire round. ⏱️ Chapters 0:00 One slow service took everything down 0:37 When microservices are worth it (database per service) 1:36 Service discovery: Eureka, Consul, Kubernetes DNS 2:16 API gateway: Spring Cloud Gateway vs Node 3:13 Configuration: Spring Cloud Config vs env vars 3:51 Resilience: timeouts, retries, Resilience4j vs opossum 4:58 Halftime recap: Spring to Node map 5:25 Sync vs async: REST, gRPC, Kafka, RabbitMQ 6:28 Sagas: choreography vs orchestration 7:19 The outbox pattern and idempotent consumers 8:08 Observability: logs, metrics, traces 9:11 Docker and Kubernetes: probes and graceful shutdown 10:05 Rapid-fire interview questions 10:55 Wrap-up 📌 In this video • When a modular monolith beats microservices, and why each service owns its database • Eureka and Consul registries vs Kubernetes Services with stable DNS names • Gateway duties (routing, token validation, rate limits, TLS) and keeping the gateway thin • Spring profiles and Spring Cloud Config vs twelve-factor env vars validated at startup • Timeouts, retries with exponential backoff and jitter, circuit breaker states (closed, open, half open), bulkheads • Resilience4j in Spring Boot vs opossum in Node: timeout, errorThresholdPercentage, resetTimeout, fallback • REST and gRPC vs Kafka and RabbitMQ events, Spring Cloud Stream vs kafkajs • Sagas with compensations, choreography vs orchestration, and the outbox pattern with CDC (Debezium) • Trace IDs in the traceparent header, Micrometer Tracing vs the OpenTelemetry SDK, RED metrics with Prometheus • Multi-stage Dockerfiles, liveness vs readiness probes, SIGTERM and graceful shutdown 💻 Try it tonight npm i opossum const breaker = new CircuitBreaker(callPayments, { timeout: 3000, errorThresholdPercentage: 50, resetTimeout: 30000 }); breaker.fallback(fallbackPending); kubectl get endpoints payments # the "registry" Kubernetes gives you for free 📚 Sources • Spring Cloud Netflix (Eureka): https://spring.io/projects/spring-clo... • Spring Cloud Gateway: https://spring.io/projects/spring-clo... • Resilience4j circuit breaker: https://resilience4j.readme.io/docs/c... • opossum: https://github.com/nodeshift/opossum • Microservices patterns (saga, outbox): https://microservices.io/patterns/ • OpenTelemetry for Node.js: https://opentelemetry.io/docs/languag... • Kubernetes liveness, readiness and startup probes: https://kubernetes.io/docs/tasks/conf... • The Twelve-Factor App, config: https://12factor.net/config 🎬 Credits • Music: "Severe Tire Damage", "Pamgaea" and "Long Road Ahead" by Kevin MacLeod (incompetech.com), licensed under CC BY 4.0: http://creativecommons.org/licenses/b... • Narration: Kokoro TTS 🔔 If this mapped Spring to Node for you, subscribe. Next up: REST vs SOAP, and how to stop a customer paying twice. #Microservices #NodeJS #SpringBoot #SystemDesign #InterviewPrep TAGS microservices interview questions, node js microservices, spring boot microservices, spring boot vs node, eureka vs kubernetes, spring cloud gateway, api gateway, resilience4j, opossum circuit breaker, circuit breaker pattern, saga pattern, outbox pattern, choreography vs orchestration, opentelemetry node, distributed tracing, liveness vs readiness, graceful shutdown, docker multi stage, kubernetes for developers, system design interview, backend interview prep