Skip to content

Commit

Permalink
added netflix hystrix and zipkin server
Browse files Browse the repository at this point in the history
  • Loading branch information
iammahesh123 committed Feb 17, 2024
1 parent 9d2c91a commit d7a5a7c
Show file tree
Hide file tree
Showing 94 changed files with 3,541 additions and 552 deletions.
29 changes: 29 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="APIGateWay/src/main/java"/>
<classpathentry kind="src" path="APIGateWay/src/test/java"/>
<classpathentry kind="src" path="EurekaServerConfiguration/src/main/java"/>
<classpathentry kind="src" path="EurekaServerConfiguration/src/test/java"/>
<classpathentry kind="src" path="TaskService/src/main/java"/>
<classpathentry kind="src" path="TaskService/src/test/java"/>
<classpathentry kind="src" path="TaskSubmissionService/src/main/java"/>
<classpathentry kind="src" path="TaskSubmissionService/src/test/java"/>
<classpathentry kind="src" path="TaskUserService/src/main/java"/>
<classpathentry kind="src" path="TaskUserService/src/test/java"/>
<classpathentry kind="src" path="UserService/src/main/java"/>
<classpathentry kind="src" path="UserService/src/test/java"/>
<classpathentry kind="src" path="ZipkinDemoProject/src/main/java"/>
<classpathentry kind="src" path="ZipkinDemoProject/src/test/java"/>
<classpathentry kind="src" path="ZipkinProject/src/main/java"/>
<classpathentry kind="src" path="ZipkinProject/src/test/java"/>
<classpathentry kind="lib" path="APIGateWay/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="EurekaServerConfiguration/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="TaskService/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="TaskSubmissionService/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="TaskUserService/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="lib" path="UserService/.mvn/wrapper/maven-wrapper.jar"/>
<classpathentry kind="lib" path="ZipkinDemoProject/.mvn/wrapper/maven-wrapper.jar"/>
<classpathentry kind="lib" path="ZipkinProject/gradle/wrapper/gradle-wrapper.jar"/>
<classpathentry kind="output" path="APIGateWay/bin/main"/>
</classpath>
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

7 changes: 7 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

153 changes: 153 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Task ManagementSystem</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
13 changes: 13 additions & 0 deletions APIGateWay/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
//zipkin tracing
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
// https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-sleuth
//implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '3.1.11'

// Zipkin server dependency
//implementation 'io.zipkin.java:zipkin-server:2.12.9'

// Zipkin autoconfigure UI dependency (runtime scope)
//runtimeOnly 'io.zipkin.java:zipkin-autoconfigure-ui:2.12.9'

}

dependencyManagement {
Expand Down
13 changes: 12 additions & 1 deletion APIGateWay/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ server:
spring:
application:
name: API-GATEWAY-SERVER
zipkin:
base-url: http://localhost:9411
sleuth:
sampler:
probability: 1.0
cloud:
gateway:
routes:
Expand Down Expand Up @@ -45,7 +50,13 @@ eureka:
service-url:
defaultZone: http://localhost:8085/eureka












12 changes: 12 additions & 0 deletions EurekaServerConfiguration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,20 @@ ext {
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-server'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
//zipkin tracing
implementation 'io.micrometer:micrometer-tracing-bridge-brave'
implementation 'io.zipkin.reporter2:zipkin-reporter-brave'
// https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-sleuth
//implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '3.1.11'

// Zipkin server dependency
//implementation 'io.zipkin.java:zipkin-server:2.12.9'

// Zipkin autoconfigure UI dependency (runtime scope)
//runtimeOnly 'io.zipkin.java:zipkin-autoconfigure-ui:2.12.9'
}

dependencyManagement {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;



@SpringBootApplication
@EnableEurekaServer
public class EurekaServerConfigurationApplication {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false
eureka.client.service-url.defaultZone =http://${eureka.instance.hostname}:${server.port}/eureka

#Zipkin server configuration
spring.zipkin.base-url=http://localhost:9411
spring.sleuth.sampler.probability=1.0





Loading

0 comments on commit d7a5a7c

Please sign in to comment.