BTP Cloud Foundry Part 3: Lifecycle, Service Bindings and Configuration
Preview · a free account unlocks the full lesson
Operate Cloud Foundry apps: scaling instances and memory, health checks, logs and events, service bindings vs service keys, user-provided services, environment variables and zero-downtime (blue-green) updates — with troubleshooting of crashes and binding issues.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 2 covered deploying an app to Cloud Foundry; this part covers running it day to day. Apps can be scaled horizontally, by adding instances, or vertically, by increasing memory, both through the cf scale command. Health checks restart instances that become unhealthy, and when something does crash, cf events and cf logs explain why — running cf events first is usually the fastest way to see whether the cause was an out-of-memory condition or a failed health check, since those show up immediately.
Credentials reach an app in two different ways depending on who needs them: service bindings give the app itself credentials to call a bound service, while service keys give external clients credentials to call into a service the app exposes.
User-provided services let you inject credentials for external systems that aren't themselves BTP-managed services, using the same binding mechanism as managed services.
One habit worth avoiding is setting secrets with cf set-env, since that stores them in the app's plain environment rather than in a binding or a secure store — bindings or a secrets store are the safer place for sensitive values.
It's also worth noting that rotating a credential without rebinding or restaging the app leaves it running with the old, now-invalid credential.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.