比较AWS-lambda,Azure功能和Google Cloud功能

26 azure aws-lambda google-cloud-functions azure-functions

我想通过选择aws-lambda,azure函数或google云函数来开发无服务器项目,然后我想比较每个项目以便为我的项目选择更好的项目.

我需要为我的项目需求选择最稳定的无服务器技术.这些技术比较有什么材料吗?这些无服务器技术是否有任何受支持的框架?

Nir*_*thi 57

比较AWS-Lambda,Azure功能和Google Cloud Functions

  1. 支持的语言
    AWS lambda - Node.js,Python,Java,C#(.net core)
    Azure功能 - Node.js,Python,PHP,F#,C#,批处理,bash
    Google Cloud Functions Node.js

  2. 每个请求的最长执行时间
    AWS lambda - 300秒(5分钟)
    Azure功能 - 300秒(5分钟)
    Google Cloud Functions 540秒(9分钟)

  3. 日志管理
    AWS lambda - 云计算
    Azure功能 - Azure存储
    Google云功能 云记录

  4. 可伸缩性和可用性
    AWS lambda - 自动扩展 
    Azure功能 - 自动扩展 
    Google Cloud Functions 自动扩展 
  5. HTTP端点
    AWS lambda - AWS API网关 
    Azure功能 -HTTP触发器
    Google云功能 HTTP触发器 

  6. 定价
    注意:这些是每次通话费用.为CPU和RAM时间充电很常见,通常超过每次通话费用,应予以考虑.
    AWS lambda - $ 0.20/1M执行 
    Azure功能 - $ 0.20/1M执行 
    Google Cloud功能 $ 0.40/M执行,HTTP呼叫免费定价详细信息

  7. 功能限制
    AWS拉姆达 -Unlimited功能
    Azure的功能 -Unlimited功能
    谷歌云功能 1000元项目  

  8. 并发执行
    AWS lambda -100并行执行每个区域的每个帐户,但用户可以增加它
    Azure功能 - 限制
    Google云功能 HTTP无限制,1,000非HTTP 

  9. 部署
    AWS lambda -Zip,AWS-S3或编辑代码内联 
    Azure功能 - Azure WebApp可以处理的任何内容:FTP(S),KUDU,Web部署,一个驱动器\ DropBox,Git\Local Git\TFS \等,Visual Studio\XCode\Eclipse\etc,PowerShell\Cli \可能是所有SDK的
    Google云功能 CLI,ZIP上传,内联网络编辑器,云存储或云源存储库 

每个人都欢迎更正信息并添加新信息.


Lak*_*kar 27

AWS Lambda vs Azure功能与Google Cloud功能

以下是不同云供应商提供的所有无服务器功能的集合.这是基于我的观点.

如果在一段时间内发生了任何变化,或者您想要添加任何新内容,请随时发表评论,并让我们保持跟踪各种功能.

+-----------------+---------------------+-----------------------+-------------------+
|     Category    | AWS Lambda          |    Azure              | Google Cloud      |
|                 |                     |  Functions            |  Functions        |
+-----------------+---------------------+-----------------------+-------------------+
| 1. Version      | Production ready    | Preview - Beta        | Closed Alpha      |
+-----------------+---------------------+-----------------------+-------------------+
| 2. Supported    | Nodejs, Python,     | Nodejs, Python,       | Javascript        |
| Languages       |      Java           |   PHP, F#, C#         |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 3. Dependency   | Compile all         | Using                 | Using             |
| Management      | external packages   | package.json – nodejs | package.json      |
|                 | and zip the         | project.json – F#,C#  |                   |
|                 | source code         |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
|                 | S3, DynamoDB        | Bindings/Triggers     | HTTP              |
|                 | Kinesis             |                       | functions:        |
|                 | Streams             | Scheduler             | Http Triggers     |
|                 | SNS, SES            | Http(webhook)         | Webhooks (drive,  |
|                 | Cognito             | Azure Storage         |  gmail, calendar) |
|                 | Cloud Formation     | Events Hubs           |                   |
| 4. Event        | Cloud Watch         | Queues, Tables        | Background        |
| Sources         | Code Commit         | DocumentDB(No-sql)    | functions:        |
|                 | Scheduled Events    | Notification Hub      | Cloud Pub/Sub,    |
|                 | Config              | Twilio                | Cloud Storage     |
|                 | Echo,               |                       |                   |
|                 | Alexa               |                       | Pub/Sub:          |
|                 | APIGateway          |                       | Cloud Logging     |
|                 |                     |                       | Gmail, Twilio     |
+-----------------+---------------------+-----------------------+-------------------+
| 5. Granular     | IAM                 |                       |                   |
|  IAM            | policy              | Not Yet               | Not Yet           |
|                 | can be Attached     |                       |                   |
|                 | to Lambda.          |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
|                 | - On top of Linux   | - On top of Windows   |                   |
| 6. Architecture | - Memory allocated  | - Memory allocated    |                   |
|                 |    per function.    |    per app service.   | Not Specified     |
+-----------------+---------------------+-----------------------+-------------------+
|                 | No persistent       | Env variables         |                   |
|                 |  storage.           | can be set in         |                   |
| 7. Persistent   | Completely          | App services          | Not Specified     |
|  Storage        | Stateless           | which can be used     |                   |
|                 |                     | in functions.         |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 8. HTTP         | APIGateway          | HTTP webhooks         | HTTP Trigger      |
| Endpoint        |                     |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 9. Log          | Cloud               | Kudu Console          | Stackdriver       |
| Management      | watch               |                       | Logging           |
+-----------------+---------------------+-----------------------+-------------------+
| 10. Maximum     | 300 seconds         | No limit              | No limit          |
| Execution       | (5 mins)            |                       |                   |
| Time            |                     |                       |                   |
| per request     |                     |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 11. Concurrent  | 100                 | 10 instances          | Not Specified     |
| Executions      | parallel            | which is several      |                   |
|                 | Executions, but     | 100 executions        |                   |
|                 | Can be increased    |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 12. Deployment  | Zip upload          | Git, dropbox,         | Zip upload,       |
|                 | to Lambda/s3,       | visual studio,        | Cloud Storage,    |
|                 | Serverless          | One drive,            | Cloud Source      |
|                 | Framework           | Kudu Console          | repositories,     |
|                 |                     |                       | Git               |
+-----------------+---------------------+-----------------------+-------------------+
| 13. Maximum     |                     |                       | 20 functions      |
|     no. of      | No limit            | Not Specified         | per project       |
|  Functions      |                     |                       |                   |
+-----------------+---------------------+-----------------------+-------------------+
| 14. Pricing     | Request Charges:    | Request Charges:      | Unknown until     |
|                 | $0.20 / 1M requests | $0.20 / 1M requests   | Open beta         |
|                 |                     |                       |                   |
|                 | Compute Charges:    | Compute Charges:      |                   |
|                 | $0.00001667 / GB-s  | $0.000008 / GB-s      |                   |
+-----------------+---------------------+-----------------------+-------------------+
Run Code Online (Sandbox Code Playgroud)

  • 编译好的信息.旁注:你是如何生成那种漂亮的表格格式的? (2认同)
  • @ Angle.Bracket这是生成github自述文件的链接.http://www.tablesgenerator.com/text_tables (2认同)