simple-eureka-client

Simple Eureka Client for Cloud Foundry

License

License

Categories

Categories

CLI User Interface Eureka Container Microservices
GroupId

GroupId

am.ik.eureka
ArtifactId

ArtifactId

simple-eureka-client
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

simple-eureka-client
Simple Eureka Client for Cloud Foundry
Project URL

Project URL

https://github.com/making/c2c-demo
Source Code Management

Source Code Management

https://github.com/making/c2c-demo

Download simple-eureka-client

How to add to project

<!-- https://jarcasting.com/artifacts/am.ik.eureka/simple-eureka-client/ -->
<dependency>
    <groupId>am.ik.eureka</groupId>
    <artifactId>simple-eureka-client</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/am.ik.eureka/simple-eureka-client/
implementation 'am.ik.eureka:simple-eureka-client:0.1.0'
// https://jarcasting.com/artifacts/am.ik.eureka/simple-eureka-client/
implementation ("am.ik.eureka:simple-eureka-client:0.1.0")
'am.ik.eureka:simple-eureka-client:jar:0.1.0'
<dependency org="am.ik.eureka" name="simple-eureka-client" rev="0.1.0">
  <artifact name="simple-eureka-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='am.ik.eureka', module='simple-eureka-client', version='0.1.0')
)
libraryDependencies += "am.ik.eureka" % "simple-eureka-client" % "0.1.0"
[am.ik.eureka/simple-eureka-client "0.1.0"]

Dependencies

compile (3)

Group / Artifact Type Version
com.netflix.eureka : eureka-client jar 1.6.2
com.google.inject : guice jar 4.0
org.slf4j : slf4j-simple Optional jar 1.7.22

Project Modules

There are no modules declared in this project.

Cloud Foundry C2C Networking for legacy Java apps

This sample shows how to use Container-to-Container Networking in Non Spring Boot Java App.

See also

Note that Spring Boot + Spring Cloud is muuuuuch easier than this sample.

Deploy Eureka Server

cd eureka-server
mvn clean package -DskipTests=true
cf push

Deploy Backend

Set eureka-server's url to EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE in manifest.yml

cd backend
mvn clean package -DskipTests=true
cf push

Deploy Frontend

Set eureka-server's url to EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE in manifest.yml

cd frontend
mvn clean package -DskipTests=true
cf push

Enable Container to Container Networking

cf allow-access frontend backend --protocol tcp --port 8080

Access frontend app.

Then scale out backend

cf scale -i 3 backend

Versions

Version
0.1.0