📡 Eureka Server

Github: github.com/le-minh-duc-dev/chat-system-eureka-server.git

📘 Overview

The Eureka Server is a core component in a microservices architecture, responsible for service discovery. It maintains a registry of all microservices and enables client-side load balancing and failover by letting services register themselves and discover other services dynamically.


🚀 Responsibilities

  • Act as a service registry where all microservices (clients) can register themselves.
  • Provide a discovery mechanism for clients to locate other services by name instead of hardcoded URLs.
  • Support dynamic updates to the registry (when services scale up/down or fail).
  • Enable health check integration to remove unhealthy instances from the registry.

🛠️ Technologies

  • Spring Boot
  • Spring Cloud Netflix Eureka Server

🧾application.properties

spring.application.name=eureka-server
server.port=8761

# Disable client behavior (this server doesn't register itself)
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

🌐 Accessing the Eureka Dashboard

Once the server is running on port 8761, navigate to:

http://localhost:8761

🧩 How Services Register

Other services (e.g., auth-service, chat-service) need to include the spring-cloud-starter-netflix-eureka-client dependency.


💬 "Turning ideas into scalable code."

© 2025 Lê Minh Đức. Stay curious.