Posts

Showing posts from June, 2025

microservice cheat sheet

Absolutely! Here’s a Microservices Interview One-Liners Cheat Sheet — built for real-world Java/Spring Boot microservices interviews (3–6 years experience), especially useful for last-minute revision. ⚡ Microservices Interview One-Liners (Spring Boot Focused) 🔹 Microservices Basics Microservices = independent, small, loosely-coupled services focused on a single business capability. Communication is via REST APIs, gRPC, messaging queues, etc. They can be developed, deployed, and scaled independently. Avoid shared DB — use database-per-service pattern. 🔹 Service Communication Synchronous: REST, gRPC. Asynchronous: Kafka, RabbitMQ, JMS. DTOs (Data Transfer Objects) are used for API request/response. 🔹 API Gateway Handles routing, authentication, rate limiting, and logging. Common tools: Spring Cloud Gateway, Zuul, Kong, NGINX. Reduces coupling between clients and services. 🔹 Service Discovery Services register with Eureka or Consul. Other services discover them using lo...