Search Tutorials


Pivotal Cloud Foundry Tutorial - Quick Introduction | JavaInUse

Pivotal Cloud Foundry Tutorial - Quick Introduction

Some time back all the IT infrastructure was on premises. There we in house servers managed by an IT resource personnel or a service provider.
Then with advent of cloud services these software and hardware services are now delivered over the internet rather than being on premises.
Evolution of IT Services

Pivotal Cloud Foundry - Table Of Contents

Pivotal Cloud Foundry Tutorial - Quick Introduction Pivotal Cloud Foundry Tutorial - Setting up the Development Environment Pivotal Cloud Foundry Tutorial - Deploy Spring Boot Application Hello World Example Pivotal Cloud Foundry Tutorial - Understanding PCF Deployment Architecture Pivotal Cloud Foundry Tutorial - Deploying Spring Boot + MySQL Application to PCF Pivotal Cloud Foundry Tutorial - Deploying Spring Boot + RabbitMQ Application to PCF
On-premises solutions Cloud Based solutions
Scalability On-premises solutions are rather difficult to scale, as the type of hardware needed depends on your application's demands. If your app experiences heavy traffic, you might need to significantly upgrade on-premises hardware. This problem doesn't exist with a cloud service, which you can quickly scale up or down with a few clicks. Cloud services are a perfect solution for handling peak loads. With cloud-based services, businesses can use whatever computing resources they need.
Cost-effectiveness Cloud computing removes hardware expenses, as hardware is provided by a vendor. There's no need to buy, install, configure, and maintain servers, databases, and other components of your runtime environment. Moreover, using cloud-based solutions, you pay only for what you use, so if you don't need extra resources you can simply scale down and not pay for them.
Immediate availability The engine is caused to “fire” via a call to one of the execute() methods.
The two variants are; 1) pass a single object/fact, or 2) pass an iterable object
that contains the fact(s) that will be used.
Cloud solutions are available as soon as you've paid for them, so you can start using a cloud service right away. There's no need to install and configure hardware.
Performance Cloud companies equip their data centers with high-performance computing infrastructure that guarantees low network latency for your applications. Security Cloud companies equip their data centers with high-performance computing infrastructure that guarantees low network latency for your applications.
Security Any changes in the facts while executing rules is not made aware to the rule engine so if any rule is modified no other re-activation of rules will take place. Cloud infrastructure is kept in safe data centers to ensure a top level of security. Data is backed up and can easily be recovered. Moreover, cloud vendors ensure the security of your data by using networking firewalls, encryption, and sophisticated tools for detecting cybercrime and fraud.
  • On-premises IT infrastructure is like owning a car. We have to take full responsibility for its upkeep. If needs to use latest car we will need to but new one then.
  • IaaS is like renting a car. When you rent a car, we choose which ever car we want and then drive to our destination ourselves. If we need latest car we then rent another car
  • PaaS is like taking a taxi. We dont need to drive it. We just tell the driver the destination and he drives us around while we relax
Let us now look at the advantages of PAAS over IAAS.
IAAS PAAS
Example Amazon Web Services(AWS)
AWS
Pivotal Cloud Foundry(PCF)
PCF
Deploying an application We need to do the following steps
  • Get a VM
  • Install Application Runtime
  • Deploy Application
  • Configure Load Balancer
  • Configure Service
we only need to push the application to the platform. In Pivotal Cloud Foundry this is done using cf push
Scalability We need to do the following steps
  • Get a VM
  • Install Application Runtime
  • Deploy Application
  • Configure Load Balancer
  • Configure Service
Scaling can be done very easily since it is the Platforms responsibilty. In Pivotal Cloud Foundry this is done using cf scale
Vendor Lockin Suppose we have deployed our application on AWS. Now due to some reason this needs to be moved to Azure. This will be very complex. Our application runs on PAAS so migrating from cloud service provider to another is simple. For example Pivotal cloud foundry can be run on top of Azure or AWS. When we deploy the application on Pivotal, it provides us an abstraction over the cloud service providers



What is Cloud Foundry?

Cloud Foundry is an open source, multi-cloud application platform as a service governed by the Cloud Foundry Foundation. The software was originally developed by VMware and then transferred to Pivotal Software, a joint venture by EMC, VMware and General Electric.
It is a service (PaaS) on which developers can build, deploy, run and scale applications.
Many Organizations provide the cloud foundry platform separately. For example following are some cloud foundry providers-
  • Pivotal Cloud Foundry
  • IBM Bluemix
  • HPE Helion Stackato 4.0
  • Atos Canopy
  • CenturyLink App Fog
  • Huawei FusionStage
  • SAP Cloud Platform
  • Swisscom Application Cloud

Cloud Foundry Architecture


Cloud Foundry Architecture