Versions Compared

Key

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

...

However some of the initial neighbors CPCs might not be comparable from business point of view and they remove them. The new recommended price must be recomputed, that is where the API is used.

Goal

Recompute Recalculate the recommended price given the target and a list of neighbor CPCs.

...

  • Code shared between API and project, not duplicated
  • Access to project's intermediate datasets to recompute re compute only what is necessary
  • Dataiku project ↔ API ↔ Webapp connections in different environment should match

...

  • Security: The API service is not public but an API key is created for webapp that should use it when calling the API. If other components need to use the API they should use nother api key.

Deployment

Actually done by data ops team.

Since API host (hostname) is important, make sure deployment follows needed naming convention (for prod, test env).

Additionnally we deploy on a kubernetes cluster with a load balancer, some settings are needed.

Steps:

  1. In API Designer, Create a Version and Publish it on deployer
  2. In Local Deployer, API Services, find the correct service and version, and deploy it: new deployment or update existing deployment.
  3. Before the actual deployment, check the settings
    Image Added
    Image Added