Giter Site home page Giter Site logo

microservice-cloudfoundry's Introduction

Microservice Cloud Foundry Sample

This sample is like the sample for my Microservices Book (English / German) that you can find at https://github.com/ewolff/microservice .

However, this demo uses Cloud Foundry to run the microservices. As a PaaS it requires very little configuration to make the microservices work on this environment.

This project creates a complete micro service demo system with Cloud Foundry. The services are implemented in Java using Spring and Spring Cloud.

It uses three microservices:

  • Order to process orders.
  • Customer to handle customer data.
  • Catalog to handle the items in the catalog.

Cloud Foundry

To use Cloud Foundry you need to install the cf command line tool first, see https://docs.cloudfoundry.org/cf-cli/install-go-cli.html.

Then you need to install Cloud Foundry itself. You can either do a local installation as described at https://pivotal.io/pcf-dev  or get an account at a public Cloud Foundry instance. https://www.cloudfoundry.org/how-can-i-try-out-cloud-foundry-2016/ is a list of public Cloud Foundry provider.

Then a simple cf push in the directory microservice-cloudfoundry-demo will deploy the microservices and the Hystrix dashboard.

The application assumes that the microservices are accessible with the path local.pcfdev.io - that is the default for the local Cloud Foundry installation. A website to access the microservices is deployed at http://microservices.local.pcfdev.io/. The website has links to all the microservices.

Remarks on the Code

The microservices are:

Note that the code has no dependencies on Cloud Foundry. Only Spring Cloud Hystrix is used to add resilience.

microservice-cloudfoundry's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.