Spring Boot

Microservices with Spring

Microservices architecture, service discovery, API Gateway, inter-service communication, resilience, patterns

25 면접 질문·
Senior
1

Define microservices architecture and its primary objective in enterprise applications

답변

Microservices architecture decomposes a monolithic application into independent, deployable services. Each service manages its own business domain, database, and communications. This enables granular scalability, simplified maintenance, and flexible technological evolution based on specific needs of each service.

2

Identify the role of Eureka in a Spring Cloud microservices architecture

답변

Eureka is a service registry provided by Spring Cloud Netflix. It allows microservices to register dynamically and discover each other without static configuration of IP addresses or ports. This simplifies horizontal scaling and adaptation to infrastructure changes.

3

Explain the 'Database per Service' pattern and its benefits in microservices

답변

The 'Database per Service' pattern assigns a distinct database to each microservice. This ensures service autonomy, avoids direct dependencies on shared schemas, and allows each service to choose the most suitable database technology. However, this complicates distributed transactions and requires mechanisms like sagas.

4

Describe the function of an API Gateway in the Spring Cloud microservices ecosystem

5

Compare REST and gRPC for inter-service microservices communication

+22 면접 질문

다음 면접을 위해 Spring Boot을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기