Tech Interview Questions
171 subscribers
18 photos
1 file
67 links
Download Telegram
Channel photo updated
What are alternatives to Eureka, and why might you choose them?

Alternatives: Consul, Zookeeper, Kubernetes Service Discovery.

Choose based on requirements like scalability, ease of setup, and cloud-native compatibility.
Can Eureka work in a cloud-native microservices environment? How?

Yes, by leveraging its service registry features, Eureka can integrate seamlessly with container orchestration tools like Kubernetes.
👍1
What is the role of an API gateway in microservices?

API Gateway acts as a single entry point for all clients. It handles routing, authentication, load balancing, caching, and service discovery.
What is the difference between synchronous and asynchronous communication in microservices?

Synchronous: Services communicate in real-time using protocols like HTTP/REST or gRPC (e.g., immediate responses).

Asynchronous: Communication happens via message queues (e.g., RabbitMQ, Kafka), allowing services to process requests independently.
How do microservices communicate with each other?

Through lightweight communication protocols such as:

Synchronous: HTTP/REST, gRPC

Asynchronous: Message brokers like RabbitMQ, Apache Kafka, or AWS SQS
Tech Interview Questions pinned «Please vote your roles»
What is the difference between @Controller and @RestController?
@Controller is used to define a Spring MVC controller that returns a view (e.g., JSP, Thymeleaf).
@RestController is a convenience annotation that combines @Controller and @ResponseBody. It is used when the controller returns data directly (e.g., JSON, XML) instead of a view.