Cloud Native 9 min read

Unlocking Serverless: From Concepts to Hands‑On Alibaba Cloud Deployment

This article explains the evolution and core principles of Serverless computing, outlines its benefits for reducing operational complexity and cost, and provides a step‑by‑step tutorial for building, testing, and exposing a function on Alibaba Cloud using Function Compute and API Gateway.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
Unlocking Serverless: From Concepts to Hands‑On Alibaba Cloud Deployment

Serverless Overview

Serverless abstracts the entire compute stack—host, operating system, runtime, and auto‑scaling—into a managed service offered by the cloud provider. Developers write only the business logic (functions) and the provider provisions resources on demand, charging per execution.

Serverless = FaaS (Function as a Service) + BaaS (Backend as a Service)

Processing Model

In a Serverless architecture each function is a stateless unit triggered by events (HTTP request, message queue, timer, etc.). The provider automatically handles container creation, code loading, scaling, and termination. This model eliminates the need for developers to provision or manage servers.

Serverless architecture diagram
Serverless architecture diagram

Core Benefits

Reduced operational complexity – Applications are decoupled from servers; no capacity planning or server health monitoring is required.

Lower operational cost – Fewer administrators are needed because the platform handles scaling, patching, and availability.

Faster time‑to‑market – Stateless functions with clear boundaries enable rapid development, testing, and iteration.

Big‑Data Application Simplification

Traditional big‑data pipelines require a chain of components (data collection, storage, cleaning, association, analysis) that must be installed, configured, and maintained. With Serverless, the cloud provider offers each component as a managed service (e.g., managed Kafka, OSS, AnalyticDB). Developers only write the data‑processing logic and deploy it; the provider takes care of provisioning, scaling, and operational tuning.

Hands‑On Tutorial: Deploy a Serverless Function on Alibaba Cloud

Log in to the Alibaba Cloud console and open the Function Compute (FC) service.

Create a new service:

Enter a service name.

Confirm creation.

Create a function within the service:

Provide a function name.

Select the runtime (e.g., Node.js 14).

Click “Create”.

Test the function:

Use the built‑in test console with a simple payload such as {"message":"hello"}.

Verify that the response returns “Hello World”.

Configure API Gateway to expose the function as an HTTP endpoint:

Open the API Gateway service and create a new API group.

Define an API name, select HTTPS , and set the request path (e.g., /hello).

Bind the previously created FC function to the API.

Publish the API and note the generated gateway URL.

Invoke the function via the gateway URL using a tool such as Postman; the response should contain the function’s output.

The following screenshots illustrate each step (images are retained for reference):

Login screen
Login screen
FC service list
FC service list
Create service dialog
Create service dialog
Create function dialog
Create function dialog
Test hello world
Test hello world
API Gateway entry
API Gateway entry
Create API group
Create API group
Define API
Define API
Bind function to API
Bind function to API
Publish API
Publish API
Gateway URL
Gateway URL
Postman test result
Postman test result

Conclusion

Serverless removes the operational burden of managing servers and platform components, allowing developers to focus exclusively on business logic. By leveraging managed services for storage, messaging, and analytics, even complex workloads such as big‑data pipelines can be built with minimal infrastructure overhead.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Cloud NativeServerlessapi-gatewayTutorialAlibaba CloudFunction Compute
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.