23 July 2016

Introduction

Cloud Foundry is an open source cloud computing platform as a service (PaaS) originally developed by VMware and now owned by Pivotal Software - a joint venture by EMC, VMware and General Electric.
Cloud Foundry gives companies the speed, simplicity and control they need to develop and deploy applications faster and easier. There are several companies provide Cloud Foundry platform such as Amazon AWS, GE’s Predix, IBM Bluemix, CenturyLink Cloud, ActiveState, HP Helion, anynines, and Swisscom. In this blog, I am going to show the deployment of the microservices application in IBM bluemix cloud foundry platform using spring cloud.

Implementation details

I have developed two microservices applications in Cloud Foundry platform. One application provides debit card service and the other application provides the credit card service. Both of the applications are independent from each other however, a common database has been used for both of the microservices in this example.

Both of the mentioned applications are developed in Java using Spring. The major spring modules are Spring Core, Spring Web, Spring Cloud, Spring JPA.

The Spring web and JPA have been used to implement webapplication and database conectivity respectively. The main focus in this blog is given on Spring Cloud to implement the following major functionalities

  1. Deployment of same code in Local and cloud foundry using Spring cloud
  2. Circuit Breakers

Also I shall describe

  1. how to inject MySQL database as a service into spring web application
  2. how to deploy the code into IBM bluemix

Steps to write code

IBM Bluemix account setup

  • Create an account in IBM bluemix. It will be mostly free for one month.


blog comments powered by Disqus
J2EE,SOAP,RESTful,SVN,PMD,SONAR,JaCoCo,HTTP,API,MAVEN,AngularJS,GitHub,LDAP,AOP,ORM,JMS,MVC,AWS,SQL,PHP,H2DB,JDBC