07 November 2020

#Spring_Cloud

#Spring_Cloud

Key Concepts


S.No Topic Sub-Topics
1 Introduction to Spring Cloud Why Spring Cloud?, Microservices Concepts, CAP Theorem, Cloud Native Architecture, Monolith vs MS
2 Spring Cloud Architecture Core Components, Service Discovery, Config Management, API Gateway, Circuit Breaker
3 Spring Cloud Dependencies Starters, BOM, Spring Cloud Versions, Compatibility Matrix, Maven/Gradle Setup
4 Spring Cloud Config Server Config Server Setup, Git Backend, application.yml, Encryption/Decryption, Refresh Scope
5 Spring Cloud Config Client Bootstrap Config, @RefreshScope, Bus Refresh, Secrets Management, Multiple Profiles
6 Eureka Service Discovery Eureka Server, Client Registration, Heartbeat, Instance Status, Self Preservation
7 Load Balancing with Eureka Client Side LB, Round Robin, Retry, Cache, Health Checks
8 API Gateway Concepts What is Gateway?, Filters, Routing, Global Filters, Path Rewrites
9 Spring Cloud Gateway Route Definitions, Predicates, Filters, CORS, Custom Filter
10 Feign Client Declarative REST, @FeignClient, Load Balancing, Error Decoders, Retry
11 Communication Patterns Sync vs Async, REST vs Messaging, Pub/Sub, gRPC Integration, Event Driven MS
12 Spring Cloud Bus Refresh Events, Kafka Backend, RabbitMQ Backend, Event Broadcasting, Config Sync
13 Circuit Breaker Concepts Fail Fast, Graceful Degradation, Bulkhead, Retry, Timeout
14 Resilience4j CircuitBreaker, Retry, TimeLimiter, Bulkhead, Dashboard
15 Spring Cloud Sleuth Tracing, Trace IDs, Span IDs, Correlation, Zipkin Integration
16 Distributed Logging & Zipkin Zipkin Setup, Collector, Query UI, Service Map, Correlation
17 Spring Cloud Security OAuth2, Keycloak Integration, JWT Propagation, Gateway Security, Token Exchange
18 Distributed Messaging Kafka, RabbitMQ, Topics, Partitions, Consumer Groups
19 Event Driven Microservices Events, CDC, Outbox Pattern, Sagas, Event Sourcing
20 Spring Cloud Stream Bindings, Channel, Functional Model, Kafka Streams, Error Handler
21 Data Management Database per MS, Shared DB Problems, CQRS, Read Replicas, Caching
22 Distributed Transactions 2PC, Saga Pattern, Compensation, Message Relay, Outbox Table
23 Cloud Observability Metrics, Micrometer, Grafana, Prometheus, Alerts
24 Testing Microservices Testcontainers, Contract Testing, Mock Server, Unit Test, Integration Testing
25 Docker & Spring Cloud docker-compose, Multi Service Network, Local Cloud, Volumes, Logs
26 CI/CD for Microservices Pipeline, GitHub Actions, Jenkins, Canary, Blue-Green
27 Kubernetes for Microservices Pods, Deployment, Services, Ingress, ConfigMap & Secrets
28 Helm for Deployment Charts, Values.yaml, Templating, Release Version, Rollback
29 Production Hardening Scaling, Caching Strategy, TLS, Zero Downtime, Canary Testing
30 Final Project Microservices Suite, Eureka, Config Server, Gateway, Resilience4j

Interview question

Basic Level

  1. What is Spring Cloud and why do we use it?
  2. Difference between Spring Boot and Spring Cloud.
  3. What is a microservice in Spring Cloud context?
  4. Explain service discovery in Spring Cloud.
  5. What is Eureka Server?
  6. What is Eureka Client?
  7. How does client-side load balancing work in Spring Cloud?
  8. What is Ribbon in Spring Cloud?
  9. Difference between Ribbon and LoadBalancerClient.
  10. What is Hystrix? Why is it used?
  11. Explain the Circuit Breaker pattern.
  12. What is Spring Cloud Config Server?
  13. How does centralized configuration help in microservices?
  14. What is Spring Cloud Bus?
  15. Explain the difference between Spring Cloud Gateway and Zuul.
  16. What is Feign Client in Spring Cloud?
  17. How do you enable Feign in a Spring Cloud project?
  18. What is a fallback method in Hystrix?
  19. Explain service registration and discovery flow.
  20. What is Spring Cloud Sleuth?
  21. What is Zipkin? How does it integrate with Spring Cloud?
  22. Difference between synchronous and asynchronous communication in microservices.
  23. What are profiles in Spring Cloud Config?
  24. How do you define routes in Spring Cloud Gateway?
  25. What is distributed tracing in Spring Cloud?

Intermediate Level

  1. How does Eureka handle service registration and deregistration?
  2. What is self-preservation mode in Eureka?
  3. Difference between Eureka, Zookeeper, and Consul.
  4. How to secure Spring Cloud Config Server?
  5. How to refresh properties dynamically in Spring Cloud Config?
  6. What is Spring Cloud Stream?
  7. What are binders in Spring Cloud Stream?
  8. What is the role of Spring Cloud Bus with Kafka/RabbitMQ?
  9. How does Spring Cloud Sleuth assign trace and span IDs?
  10. Explain distributed logging in Spring Cloud.
  11. What are retry mechanisms in Spring Cloud?
  12. How to implement API Gateway authentication and authorization?
  13. How does Spring Cloud Gateway handle rate limiting?
  14. What is service-to-service communication in Spring Cloud?
  15. How to use Feign Client for inter-service calls?
  16. What is load balancing in Feign Client?
  17. How to monitor microservices in Spring Cloud?
  18. Explain Hystrix dashboard and Turbine.
  19. How does Spring Cloud integrate with Kubernetes service discovery?
  20. What are config labels and branches in Spring Cloud Config?
  21. Explain Spring Cloud Contract for microservice testing.
  22. What are refresh scopes in Spring Cloud?
  23. How do you secure service-to-service communication?
  24. What is the role of Zuul filters?
  25. How does Spring Cloud Gateway support WebSockets?

Advanced Level

  1. How does Spring Cloud handle scalability in microservices?
  2. Explain the working of Resilience4j vs Hystrix.
  3. How do you implement bulkhead patterns in Spring Cloud?
  4. What is the difference between retry and circuit breaker?
  5. How do you secure communication with OAuth2 in Spring Cloud?
  6. How does Spring Cloud Config handle high availability?
  7. What is Spring Cloud Consul and how is it used?
  8. How do you implement blue-green deployment using Spring Cloud?
  9. What is canary release strategy in Spring Cloud?
  10. Explain distributed sessions with Spring Cloud.
  11. How to implement event-driven architecture using Spring Cloud Stream?
  12. What message brokers are supported by Spring Cloud Stream?
  13. How to achieve fault tolerance in Spring Cloud microservices?
  14. How to perform chaos testing in Spring Cloud applications?
  15. What is Spring Cloud Data Flow?
  16. Explain batch processing vs stream processing in Spring Cloud Data Flow.
  17. How do you configure multiple environments in Config Server?
  18. What is configuration encryption in Spring Cloud Config?
  19. How do you integrate Spring Cloud with Vault?
  20. How do you monitor circuit breakers at scale?
  21. Explain reactive microservices with Spring Cloud.
  22. How to achieve graceful degradation in Spring Cloud?
  23. What are challenges in scaling Eureka Server?
  24. How to design a resilient API Gateway?
  25. How to handle failover in distributed microservices?

Expert Level

  1. How do you design a large-scale system using Spring Cloud microservices?
  2. Explain CAP theorem in the context of Spring Cloud services.
  3. How does Spring Cloud achieve eventual consistency?
  4. How to migrate from a monolith to Spring Cloud microservices?
  5. How to implement multi-tenancy in Spring Cloud applications?
  6. How to integrate Spring Cloud with Istio (service mesh)?
  7. What is the Saga pattern? How do you implement it in Spring Cloud?
  8. Explain choreography vs orchestration in distributed transactions.
  9. How do you achieve zero-downtime deployment in Spring Cloud?
  10. What is API composition pattern in microservices?
  11. How to handle schema evolution in Spring Cloud microservices?
  12. Explain distributed caching in Spring Cloud.
  13. How do you integrate Spring Cloud with Kafka for event sourcing?
  14. How do you ensure observability with Micrometer + Prometheus + Grafana?
  15. How to build resilient CI/CD pipelines for Spring Cloud applications?
  16. How does Spring Cloud handle network partitions?
  17. How to design a fault-tolerant ecosystem with Spring Cloud?
  18. What is polyglot persistence in microservices? How to manage it with Spring Cloud?
  19. How do you implement advanced security (mTLS) in Spring Cloud?
  20. How do you handle cross-cutting concerns (logging, tracing, metrics)?
  21. What are best practices for managing secrets in Spring Cloud?
  22. How do you perform chaos engineering in Spring Cloud?
  23. Explain the role of Spring Cloud in hybrid cloud deployments.
  24. How does Spring Cloud integrate with AWS/GCP/Azure?
  25. How do you combine Spring Cloud with Domain-Driven Design (DDD)?

Related Topics


   Config_Mgmt   
   Service Discovery   
   Load Balancing   
   API Gateway   
   Circuit Breaker   
   Service Mesh   
   Distributed Tracing