Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • How to start/stop programs of a particular version of an Application:

    POST /v3/namespaces/<namespace-id>/apps/<app-id>/versions/<version-id>/services/<service-id>/start ( stop )

    Note: We don't support concurrent runs of the same Flow and Worker across multiple versions. That is, flow F1 in v2 of app MyApp can't be started when flow F1 in v1 of app MyApp is running.

  •  How to delete a version of an Application:

    DELETE /v3/namespaces/<namespace-id>/apps/<app-id>/versions/<version-id> 

    Note: No program of this version should be running.

 

  • Service Routing: 

          Deterministic routing - call methods of a service of a specific version (service of that version should be running)
          METHOD /v3/namespaces/<namespace-id>/apps/<app-id>/versions/<version-id>/services/<service-id>/methods/<method-name>

          Configuration based Routing – configuration based routing will be used when the method call is made to non-versioned API:
          METHOD /v3/namespaces/<namespace-id>/apps/<app-id>/services/<service-id>/methods/<method-name>

          Say, if the configuration is : { "v1" : 30, "v2" : 30, "v3" : 40 } : 30% of requests are routed to version v1, 30% requests are routed to version v2, 40% requests are routed to v3

  • Route Config Management:

    Upload Route Config:
    PUT /v3/namespaces/<namespace-id>/apps/<app-id>/services/<service-id>/routeconfig -d '{ "v1" : 30, "v2" : 30, "v3" : 40 }'

    The route %s should always integers and should sum to 100. Otherwise the config will not be accepted.

    View/Get Route Config:
    GET /v3/namespaces/<namespace-id>/apps/<app-id>/services/<service-id>/routeconfig

    Delete Route Config:
    DELETE /v3/namespaces/<namespace-id>/apps/<app-id>/services/<service-id>/routeconfig

    Note: If a route config is not present, a random endpoint will be chosen among all the versions.