Skip to main content

Link to communicate multiple applications as web services in a form

Comments

1 comment

  • Larry

    To have applications talk to each other add the relationship to the application that wants to initiate the connection. For example, to have the conference application in the example above talk to the speakers application, add the following to the conference instance’s .platform.app.yaml file:

    relationships:
        speaker: speaker:http
    

    Then you can consult the PLATFORM_RELATIONSHIPS environment variable for the domain name to use to send messages to that application. Omit the speaker application from routes.yaml entirely.

    That is preferable to exposing each application on its own public URL just so that it can be accessed from another application.

    Note that circular relationships are not supported, so you cannot have two applications that refer to each other in their relationships blocks. Only the “sending” side of the connection needs to have a relationship defined.

    0

Please sign in to leave a comment.