Comparing Serverless offerings from Alibaba Cloud and AWS

Michael WittigUpdated 02 May 2019

Last weekend, I had the chance to play around with Alibaba Cloud at the DevOps Meetup in my city. An Alibaba Cloud Solution Architect introduced the platform and was well trained on AWS as well, so he could compare both platforms for us. I also spent some time to figure out the details and finally, I ended up with a detailed comparison of the Serverless offering of both platforms.

Comparing Serverless offerings from Alibaba Cloud and AWS

When I talk about Alibaba Cloud I refer to the international version which misses features compared to the domestic (Chinese) version. Features are translated at a fast pace to close the gap between the domestic and international version.

FaaS Runtimes

AWS and Alibaba Cloud both offer a Function as a Service offering. When we look at the runtime, the platforms differentiate only in support for PHP, .NET Core, and Go.

LanguageAWS LambdaAlibaba Cloud Function Compute
Java88
Node.js8.10, 6.10, 4.38.9, 6.10
Python3.6, 2.73.6, 2.7
PHP-7
.NET Core2.1, 2.0, 1.0.1-
Go1.x-

Features

Alibaba Cloud provides a way to use a shared file system in your function which might be interesting to port legacy code. You can also group functions into a service which helps to keep functions (and also configuration) separated. To my surprise, the authorization concept is very similar to AWS, using policy-based access control.

FeatureAWSAlibaba Cloud
Max timeout15 min10 min
Temporary disk space (/tmp)512 MB1024 MB
Metricssome (CloudWatch Metrics)many
Centralized logsCloudWatch LogsLog Service
Fine-grained authorizationIAMRAM
Group functionsno"Service"
Included librariesAWS SDKAlibaba Cloud SDK and more (list for Node.js, Python, PHP)
Max. code package size (compressed)50 MB100 MB
Online IDErich (Cloud9)minimal
Local deployment toolSAMFun, fcli
Edge capabilitiesyesno
VPC supportyesyes
Shared file system supportnoyes
Disable Internet access explicitly (non VPC)noyes
Initializer hooknoyes

Triggers and Integrations

Most importantly, a Serverless architecture benefits from a variety of event sources.

SourceAWSAlibaba Cloud
On-Demandyesyes
Object StorageS3OSS
Distributed logKinesis Data StreamsLog service
Log event aggregationKinesis Data Firehose-
CronjobCloudWatch EventsTime trigger
WebhookSomehow with API GatewayHTTP trigger
REST APIAPI GatewayAPI Gateway
CDN EdgeLambda@Edge-
NoSQL databaseDynamoDB streamsTable Store1
Pub/SubSNSMNS
Incoming E-MailSES-
QueueSQS-
LogsCloudWatch LogsLog service
GitCodeCommit-
AuthenticationCognito-
Platform eventsCloudWatch Events-
Platform governanceConfig-
Voice assistantAlexa-
Conversational InterfacesLex-
Infrastructure as CodeCloudFormation-
Programmable buttonIoT Button-

Billing

The same.

Summary

To my surprise, Alibaba Cloud is not that different compared to AWS. Both platforms work in a similar way (which is not the case for GCP or Azure in my opinion). AWS provides more Triggers and Integrations but Alibaba comes with some unique features such as a shared file system and PHP support.

Thanks to Oliver Arafat (Senior Solution Architect Alibaba Cloud) for reviewing this article.

Michael Wittig

Michael Wittig

I’ve been building on AWS since 2012 together with my brother Andreas. We are sharing our insights into all things AWS on cloudonaut and have written the book AWS in Action. Besides that, we’re currently working on bucketAV, attachmentAV, HyperEnv, and marbot.

Here are the contact options for feedback and questions.

Further reading