bryanstephens / spring-cloud-consul

Developer preview of Spring Cloud Consul

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spring Cloud Consul

Preview of Spring Cloud Consul implementation

Running the sample

  1. Install consul
  2. Run ./run_consul.sh found in the root of this project
  3. verify consul is running by visiting http://localhost:8500
  4. run mvn package
  5. run java -jar spring-cloud-consul-sample/target/spring-cloud-consul-sample-1.0.0.BUILD-SNAPSHOT.jar
  6. visit http://localhost:8080, verify that {"serviceId":"<yourhost>:8080","host":"<yourhost>","port":8080} results
  7. run java -jar spring-cloud-consul-sample/target/spring-cloud-consul-sample-1.0.0.BUILD-SNAPSHOT.jar --server.port=8081
  8. visit http://localhost:8080 again, verify that {"serviceId":"<yourhost>:8081","host":"<yourhost>","port":8081} eventually shows up in the results in a round robbin fashion (may take a minute or so).

TODO

  • consul config
  • consul service discovery
  • consul ribbon load balancer
  • consul ui (on the sample agent)
  • consul property source
  • consul event bus
    • send messages
    • receive messages
  • consul locks
  • consul leader election

About

Developer preview of Spring Cloud Consul


Languages

Language:Java 59.3%Language:CSS 40.6%Language:Shell 0.1%