简体   繁体   English

谷歌云类比AWS Lambda

[英]google cloud analogy to AWS Lambda

Does google cloud have an analogous functionality to AWS Lambda ? 谷歌云是否具有与AWS Lambda类似的功能?

In particular I would like compute resources to be opened up and jobs scheduled via https events . 特别是我希望通过https事件打开计算资源和计划作业。

I'm also interested in any other cloud hosting providers which have similar functionality. 我也对任何其他具有类似功能的云托管提供商感兴趣。

I just found out that there is something that looks interesting in the latest documentation of the SDK's command line tool gcloud . 我刚刚发现在SDK的命令行工具gcloud的最新文档中有一些看起来很有趣的东西。

https://cloud.google.com/sdk/gcloud/reference/alpha/functions/ https://cloud.google.com/sdk/gcloud/reference/alpha/functions/

This sounds exciting. 听起来令人兴奋。

UPDATE: Google just released some official documentation of an alpha version of Cloud Functions . 更新: Google刚刚发布了一些alpha版云功能的官方文档 For now, functions can be written in Javascript using Node, and triggered by Pub/Sub, Cloud Storage, direct HTTP stimuli or manually for debugging purposes. 目前,函数可以使用Node在Javascript中编写,并由Pub / Sub,云存储,直接HTTP刺激触发或手动进行调试。

Google Cloud Storage has Object Change Notification. Google云端存储具有对象更改通知。 Only web hooks are currently supported at this time. 目前仅支持Web挂钩。

A client application can send a request to watch for a bucket's change notification events in order to be notified about changes to a bucket's objects. 客户端应用程序可以发送请求以监视存储桶的更改通知事件,以便通知存储桶对象的更改。 After a notification channel is initiated, Google Cloud Storage notifies the application any time an object is added, updated, or removed from the bucket. 启动通知渠道后,只要在数据库中添加,更新或删除对象,Google云端存储就会通知应用程序。

For example, when you add a new picture to a bucket, an application could be notified to create a thumbnail. 例如,当您向存储桶添加新图片时,可以通知应用程序创建缩略图。

More info can be found at: https://cloud.google.com/storage/docs/object-change-notification 有关详细信息, 访问: https//cloud.google.com/storage/docs/object-change-notification

Regarding other providers that have similar functionality, check out IronWorker . 关于具有类似功能的其他提供商,请查看IronWorker You can kick off IronWorker tasks via https endpoints using the webhook endpoint and you can run jobs on multiple clouds. 您可以使用webhook端点通过https端点启动IronWorker任务,并且可以在多个云上运行作业。 Here's a comparison of Lambda vs IronWorker . 这是Lambda与IronWorker的比较。

And yes, I work for Iron.io. 是的,我为Iron.io工作。

最近谷歌宣布推出支持http界面的谷歌云功能的 alpha版本。

Google Cloud FunctionsMicrosoft Azure功能 ,它们都相当新(微软于2016年3月31日宣布Azure功能

如果你需要带有HTTP接口的Lambda,那么看看Nano Lambda他们可以部署到任何云和内部部署。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM