http endpoint.
You can’t define circular relationships.
If app1 has a relationship to app2, then app2 can’t have a relationship to app1.
If you need data to go both ways, consider coordinating through a shared data store,
like a database or RabbitMQ server.
Relationships between apps use HTTP, not HTTPS.
This is still secure because they’re internal and not exposed to the outside world.
Relationships example
You have two apps,app1 and app2, and app1 needs data from app2.
In your app configuration for app1, define a relationship to app2:
.upsun/config.yaml
app1 can access app2 at the following URL: http://api.internal.The specific URL is always available through the service environment variables, or through the
PLATFORM_RELATIONSHIPS variable:
- Service environment variables
- `PLATFORM_RELATIONSHIPS` environment variable