All,
I'm looking for a way to specify environment-specific configuration values. I'm struggling to understand when to use a user-provided service vs environment variables. It seems like I can accomplish what I need either way.
Some points of comparison...
User-provided services:
- Scoped to the space
- Shared by apps in the same space
- App must explicitly bind to it
- Logically group related attributes (URL, username, password, for example)
Environment variables:
- Specific to an app
My specific use case involves connecting to MQ. Outside of CloudFoundry I would have env-specific config files with host name, queue name, etc. I think CF environment variables are a close analog, but I think the same is true for databases, yet I see a lot of examples of using user-provided services for databases.
Thanks