Using UDAs Overview
Introduction
User Defined Analytics (UDAs) enable you to define new APIs that are callable through the Service Gateway (SG). UDAs augment the standard set of APIs available in the kdb Insights system with application logic specific to your business needs.
To integrate UDAs into kdb Insights SDK or kdb Insights Enterprise, complete the following steps:
Creating a UDA
To create a UDA:
-
Define the purpose: Determine the specific problem or task that your UDA addresses.
-
Develop the UDA: Write the UDA, ensuring your code is modular, efficient, and well-documented.
-
Test the UDA: Validate the UDA with different datasets to ensure it performs as expected in various scenarios.
-
Refine and optimize: Use test results to refine and optimize the UDA for performance and accuracy.
Packaging a UDA
To package your UDA for deployment:
-
Organize files: Arrange all necessary files, including the UDA code and dependencies, in a structured manner.
-
Create a metadata file: Develop a manifest that lists the UDA and related components, including version information and metadata.
-
Configure settings: Specify required configuration settings, such as environment variables, to ensure the UDA functions correctly after deployment.
-
Test the package: Test the package in a local environment to confirm all components work together as expected.
Deploying a UDA
Deploy your UDA by following these steps:
-
Validate the package: Ensure the UDA package is complete and all dependencies are correctly referenced.
-
Deploy to staging: Test the UDA in a staging environment to confirm it integrates well with other components.
-
Deploy to production: Once validated, deploy the UDA to the production environment.
-
Verify deployment: After deployment, perform checks to confirm the UDA is functioning correctly and monitor its performance.