Deploy an API endpoint#
See a screencast covering this section’s steps
Although you have created a version of an API service including the endpoint, it exists only on the Design node, which is a development environment. A production use case requires separate environments for development and production. For example:
A batch deployment use case would require enabling an Automation node.
A real-time API deployment use case (as shown here) could use an API node if staying within Dataiku’s ecosystem. Additionally, depending on your MLOps strategy, you also have external deployment options such as Amazon SageMaker, Azure ML, Google Vertex AI, or Snowflake.
At a high-level, you can think of the entire process in three steps:
Create the API service on the Design node (already done!).
Publish the API service on the Design node to the API Deployer.
Deploy the API service on the API Deployer to a production environment (normally an API node).
Note
Many organizations incorporate an additional governance framework throughout this process. They utilize a Govern node to manage the deployment of projects and models with a built-in sign-off process. Learn more in the Academy course on Dataiku Govern.
Configure an API node#
Before deploying, you first need to configure a production environment. In this example, we’ll use an API node.
Free trial users (or any Dataiku Cloud users) need to activate the API node extension from their Launchpad.
Users on self-managed instances need to follow API Node & API Deployer: Real-time APIs in the reference documentation.
From the Design node to the Deployer#
Once you have the necessary infrastructure in place, it’s a few more clicks to actually deploy the endpoint.
From the job_postings API service on the Design node, click Publish on Deployer.
Click Publish, accepting the default version ID.
From the Deployer to an API node#
You now have pushed the API service from the Design node to the API Deployer, so let’s navigate there.
Immediately after publishing, you can click the popup notification to Open API Deployer.
If you miss it, open the waffle menu in the top right.
Choose Local Deployer.
Then click Deploying API Services.
Now that you have published the API service to the API Deployer, there is one more step to deploy the endpoint to an API node.
On the API Deployer, find your API service.
Click Deploy.
If not already chosen for you, select an available infrastructure.
Click Deploy again.
Click Deploy once more to confirm.
You now have an API endpoint running in a production environment!
Send test queries to the API node#
Once again, let’s test the endpoint with a few more queries — this time sending them to an API node.
From the Status tab of the predict_fake_job endpoint on the API Deployer, navigate to the Run and test subtab.
Click Run All.
See also
Once you’ve deployed an API service, the next step would be to monitor it using an Evaluate recipe and a model evaluation store. You’ll learn about these tools as your progress further with Dataiku!