Skip to content
Permalink
Browse files
Merge pull request #19 from BLasan/remove-eureka
Removed Eureka Client Side Load Balancing
  • Loading branch information
fynmanoj committed May 27, 2022
2 parents 87cab45 + acfc6c5 commit e2c3df23a403155a9bed71457d6400de06a07e42
Showing 5 changed files with 18 additions and 16 deletions.
@@ -40,7 +40,7 @@
import org.springframework.web.bind.annotation.RequestParam;

@SuppressWarnings("unused")
@FeignClient(name="office-v1", path="/office/v1", configuration=CustomFeignClientsConfiguration.class)
@FeignClient(path="/office/v1", url = "http://${kubernetes.office.service.name}:${kubernetes.office.server.port}", configuration=CustomFeignClientsConfiguration.class)
public interface OrganizationManager {

@RequestMapping(
@@ -103,7 +103,6 @@ public boolean waitForInitialize ( ) {
basePackages = "org.apache.fineract.cn.office.listener"
)
@EnableFeignClients(basePackages = {"org.apache.fineract.cn.office.api.v1.client"})
@RibbonClient(name = APP_NAME)
@EnableEventRecording(maxWait = 5000L)
@Import({OfficeRestConfiguration.class})
public static class TestConfiguration {
@@ -45,7 +45,7 @@ bootRepackage {
dependencies {
compile(
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-config'],
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-web'],
[group: 'org.springframework.boot', name: 'spring-boot-starter-jetty'],
[group: 'org.hibernate', name: 'hibernate-validator', version: versions.validator],
[group: 'org.apache.fineract.cn.office', name: 'api', version: project.version],
@@ -39,7 +39,6 @@

@Configuration
@EnableAutoConfiguration
@EnableDiscoveryClient
@EnableAsync
@EnableTenantContext
@EnableCassandra
@@ -18,18 +18,11 @@
#

spring:
cloud:
discovery:
enabled: false
config:
enabled: false

eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
instance:
homePageUrl: "http://${eureka.hostname}:2023/office/v1/"
cloud:
discovery:
enabled: false
config:
enabled: false

server:
port: 2023
@@ -69,3 +62,14 @@ async:

flyway:
enabled: false

kubernetes:
office:
service:
name: office-service
server:
port: 2023

ribbon:
eureka:
enabled: false

0 comments on commit e2c3df2

Please sign in to comment.