donovanmuller / echo-example

An "echo" example project

Home Page:https://blog.switchbit.io/http-done-three-ways-with-spring-cloud-kubernetes-on-openshift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Echo example

This project is the example referenced in the post entitled:

HTTP done three ways with Spring Cloud Kubernetes on OpenShift

Overview

The example consists of two applications:

  • echo - A Spring Boot application that accepts POST /echo requests and call the downstream service below
  • chamber - which simple echoes the received request back to the upstream caller

Branches

There are three branches, each handling one of the above three ways of handling HTTP based communication.

  • master - the basic vanilla RestTemplate implementation
  • hystrix - RestTemplate with Hystrix added for circuit breaker and fallback functionality
  • feign - same functionality as above but using a declarative Feign interface

Usage

Assuming a running instance of OpenShift started with minishift, run

$ mvn fabric8:deploy

to deploy both applications to OpenShift.

About

An "echo" example project

https://blog.switchbit.io/http-done-three-ways-with-spring-cloud-kubernetes-on-openshift

License:Apache License 2.0


Languages

Language:Shell 47.2%Language:Batchfile 33.5%Language:Java 19.3%