Skip to content

DanielMachadoVasconcelos/base-payments-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Payments Registry

A Spring Cloud Netflix Eureka Server for service discovery in the EAD (Ensino à Distância) payments microservices ecosystem.

Description

This application serves as a service registry for the EAD payments microservices architecture. It allows services to find and communicate with each other without hardcoding hostname and port information. Services register with the Eureka Server and the Eureka Server knows all client applications running on each port and IP address.

Technologies

  • Java 21
  • Spring Boot 3.3.5
  • Spring Cloud Netflix Eureka Server
  • Gradle

Prerequisites

  • JDK 21
  • Gradle

Configuration

The application is configured to run on port 8761 (the default port for Eureka Server). Key configuration settings in application.yml include:

spring:
  application:
    name: base-payments-registry

server:
  port: 8761

eureka:
  client:
    register-with-eureka: false
    fetch-registry: false
  instance:
    prefer-ip-address: false

Building and Running

Using Gradle

./gradlew build
./gradlew bootRun

Using Java

./gradlew build
java -jar build/libs/base-payments-registry-0.0.1-SNAPSHOT.jar

Usage

Once the application is running, you can access the Eureka dashboard at:

http://localhost:8761

The dashboard provides information about registered services, their status, and other details.

Registering Services with Eureka

To register a service with this Eureka Server, add the following dependencies and configuration to your client application:

dependencies {
    implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
}
eureka:
  client:
    serviceUrl:
      defaultZone: http://localhost:8761/eureka/

Monitoring

The application exposes all Spring Boot Actuator endpoints for monitoring:

management:
  endpoints:
    web:
      exposure:
        include: "*"

You can access these endpoints at:

http://localhost:8761/actuator

License

[Add your license information here]

Contact

[Add your contact information here]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages