DataService Studio is a flexible, secure, stable, and cost-effective platform that enables the creation and publication of APIs. It acts as a conduit between databases and data applications, offering extensive data processing and sharing capabilities. This allows for centralized management of APIs, whether they are part of Alibaba Cloud or not. For instance, DataService Studio can quickly generate an API from a data table, and existing APIs can be registered for centralized management and publication.
Feature introduction
DataService Studio, based on a serverless architecture, allows you to concentrate on API query logic without worrying about the underlying infrastructure, such as the runtime environment. It provides computing resources, supports elastic scaling, and incurs no O&M costs.
Related concepts
-
API (Application Programming Interface): An API is a set of protocols that enables interaction between applications, software, and data sources. DataService Studio APIs facilitate data retrieval, allowing continuous queries from databases and data tables.
-
Function: Functions act as API filters to process request or response parameters. The function types for pre-filters and post-filters must match within an API. Currently, you cannot mix function types for the same API's pre-filter and post-filter.
-
Data service resource group: For high QPS and SLA requirements when calling DataService Studio APIs, enterprises should use exclusive data service resources. These exclusive resource groups for DataService Studio can handle high concurrency and frequent API calls, ensuring prompt responses.
Billing-related concepts
Using DataService Studio to create a data API incurs costs based on the resources consumed by the data service API calls. DataService Studio's billing is based on the volume of data service calls, with the following billing modes:
-
Serverless resource group:
-
Pay-as-you-go: For a pay-as-you-go serverless resource group, configure Data Service usage with Current Occupied CU. For more information, see Quota Management. Billing starts upon CU allocation, with charges based on
Current Occupied CU × Duration of CU Allocation
. -
Subscription: For a subscription-based serverless resource group, configure Data Service usage with CU Guarantee. For more information, see Quota Management. Charges are based on actual CU usage.
-
-
Exclusive data service resource group: Charges are based on the specifications of the resource group. Assess your API call volume based on business needs and select the appropriate resource group specifications. An exclusive resource group for DataService Studio is dedicated to a single enterprise. For more information, see: Exclusive Data Service Resource Group Billing Description: Subscription.
Public Data Service Resource Group is no longer recommended. For more information, see DataWorks Public Data Service Resource Group Offline Notification.
API development process
-
Create a data source and configure network connectivity
Before creating an API with DataService Studio, add your database or data warehouse as a data source in DataWorks. This allows DataService Studio to access the data source to retrieve the schema of the data table for which you want to create an API, helping you configure the API's request and response parameters. When the API is called, DataService Studio executes the query request by accessing the data source.
-
DataService Studio organizes and manages APIs and related files by business process. These files include functions. Create a business process before developing an API with DataService Studio.
-
-
Generate an API based on a data table
-
DataService Studio's Codeless UI feature allows you to generate APIs from data tables across various data sources without coding. For more information, see Generate an API in codeless UI.
-
DataService Studio also offers a Code Editor for advanced users to write custom SQL queries. This editor supports complex queries, including table joins and aggregate functions. For more information, see Generate an API in code editor.
-
-
Register existing APIs with DataService Studio for centralized publication and management. For more information, see Register an API.
-
-
Optional. Functions can be used to process API request parameters and the results returned by the API.
-
Test the API before publication to ensure it functions correctly.
-
Once the API passes testing, publish it to API Gateway for service calls or list it on Alibaba Cloud Marketplace for sale. This facilitates efficient business loop closure and data value realization.
Note-
API Gateway offers lifecycle management services for APIs, including publishing, management, O&M, and sales. It provides a simple, efficient, and low-risk way to aggregate microservices, decouple frontends and backends, integrate systems, and offer features and data to partners and developers. For more information, see Product introduction.
API Gateway is essential for APIs open to the public or used in your applications, providing permission management, traffic shaping, access control, and metering services. After creating or registering APIs in DataService Studio, publish them to API Gateway for external or internal use. DataService Studio integrates with API Gateway, enabling easy API publication with just a few clicks.
-
Alibaba Cloud Marketplace offers a wide range of API products across categories like finance, artificial intelligence, e-commerce, and more, providing a platform for rapid data monetization.
-
-
An app is an identity used to call an API. An application can call an API only after being granted the necessary permissions. Permissions can be obtained or granted to others for data sharing. For more information, see: Authorize an API. Additionally, API Gateway enables the calling of APIs from other Alibaba Cloud accounts or third-party service providers, offering a suite of management and support services.