Services on Cloud Foundry
Services bring value to development teams and organizations by abstracting the stateful nature of these services from applications and decoupling the upgrade path from applications in a true microservices-like pattern.
Let's briefly revisit the simplest steps for creating a service and binding it to our application:
- The developer finds the details of the service that they wish to use via the marketplace by calling
cf marketplace
. The marketplace is simply a listing of all of the services that can be provisioned on your foundation for your Org and/or Space. These services can be free of charge or have associated subscription costs. We covered most of this in Chapter 6, Deploying Apps to Cloud Foundry. We'll go into detail later in this chapter about how we can publish our own services on the marketplace. - Next, the developer creates an instance of the service through the
cf create-service <SERVICE_NAME> <PLAN> <INSTANCE_NAME> [-c <JSON_PARAMETERS...