Cloud Native 5 min read

Deploy Dify AI Platform on Alibaba Cloud SAE in Two Simple Steps

This guide explains how to quickly deploy the open‑source Dify AI platform on Alibaba Cloud's Serverless Application Engine, covering the challenges of private deployment, the benefits of SAE's one‑click solution, and detailed step‑by‑step configuration to achieve a production‑grade AI service.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
Deploy Dify AI Platform on Alibaba Cloud SAE in Two Simple Steps

Background

Dify.ai is an open‑source platform (released in 2024) that enables rapid development of AI applications such as intelligent customer service, knowledge bases, and marketing assistants. Deploying Dify in a private environment typically requires manual setup of runtime, databases, and caching, leading to high maintenance cost and reliability concerns.

Solution: Alibaba Cloud Serverless Application Engine (SAE)

SAE offers a one‑click deployment mode that abstracts the underlying infrastructure, provides second‑level elastic scaling, and includes built‑in logging, monitoring, and load‑balancing. This allows a Dify instance to run as a production‑grade service without code changes.

One‑Click Deployment Procedure

Create a service instance in the SAE console. If this is the first use, follow the prompts to enable the SAE service and bind the required IAM role.

Configure the Dify deployment page ("Deploy Dify Community Edition"):

Template: Dify Test Edition Service Instance Name: e.g., difytest Region: North China 2 (Beijing) Dependency check : Resolve any "Abnormal" items by creating the suggested roles until all checks show "Normal".

Resource allocation :

Namespace: dify CPU: 1000 (represents 1 core)

Memory: 2048 MB Database configuration :

PostgreSQL – create a database account for Dify.

Redis – set a password for the Redis instance.

Network settings :

VPC: select an existing VPC or create a new private network.

Availability zones: choose at least two zones (e.g., Zone I and Zone J) for high availability.

Review the configuration, then click Next: Component Configuration and finally Create Immediately . Deployment usually completes in about five minutes; the status "Deployed" confirms a successful launch.

Key Parameters

SecretKey – keep the default value; it encrypts sensitive data stored in the database.

CPU core unit – SAE uses a unit of 1000 per core; adjust according to expected load.

Memory – allocate at least 2048 MB for the Dify service container.

Reference

For detailed troubleshooting and additional options, see the activity page: https://developer.aliyun.com/special/sae-dify

Dify deployment steps
Dify deployment steps
SAE console screenshot
SAE console screenshot
serverlessAI DeploymenttutorialDifyAlibaba Cloudsae
Alibaba Cloud Native
Written by

Alibaba Cloud Native

We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.