-
Notifications
You must be signed in to change notification settings - Fork 0
Running the Demo Application
The demo application comes packaged with the ability to configure,build and run all the components needed for running Eureka
- Eureka Server
- Application Service
- Application Client
For more details on understanding the configurations, visit this page.
The demo will help you set up a Eureka Server listening in a port of your choice. It will also help you setup an Application service that would serve requests and an Application Client that will send requests to the service.
The Application Service registers with the Eureka Server and the Application client can find and then send the request to the Application Service. The client and server exit gracefully after trading messages.
-
Navigate to eureka-server/conf/ and edit the eureka-client.properties and eureka-client-test.properties if needed. (You do not have to edit the eureka-server.properties for the demo unless you are setting up advanced server configurations)
-
Build the application.
-
The above build also sets up all the libraries needed for running the demo service and the demo client.
-
Copy the WAR artifact to your tomcat deployment directory under _$TOMCAT_HOME/webapps/
cp ./eureka-server/build/libs/eureka-server-XXX-SNAPSHOT.war $TOMCAT_HOME/webapps/eureka.war
-
Start your tomcat server. Access http://localhost:80/eureka to verify the information there. Your server's eureka client should register itself in 30 seconds and you should see that information there.
- Navigate to eureka-server/conf/sampleservice and edit the sample-eureka-service.properties if needed.
- Navigate to eureka-server/conf/sampleclient and edit the sample-eureka-client.properties if needed.
- Switch to eureka-server directory and run ./runservice.sh
- Wait until you see the message Service started and ready to process requests.
- Switch to eureka-client directory and run ./runclient.sh
- You should see the message Received response from server. Communication all fine using Eureka.
- Eureka at a glance
- Configuring Eureka
- Building Eureka Client and Server
- Running the Demo Application
- Configuring Eureka in AWS Cloud
- Understanding Eureka Client/Server Communication
- Eureka REST operations
- Understanding Eureka Peer to Peer communication
- Overriding Default Configurations
- FAQ
- Javadoc-Eureka Client
- Javadoc-Eureka Server
- End-to-End Examples