AWS Lamdba能讲到外部Internet服务? [英] Can AWS Lamdba Speak to external Internet Services?

查看:141
本文介绍了AWS Lamdba能讲到外部Internet服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与地面通过AWS革命性的突破完全管理功能的编程支持;可以AWS拉姆达到外部Internet网络/系统外部通信说话。

这个想法/动机是,如果AWS Lamdba使用NodeJS SDK的服务PubNub,推 - 这将是很好卸载实时通信的处理方面

解决方案

简短的回答是肯定的。由于LAMBDA运行在一个节点沙箱中,没有什么阻止你捆绑起来像申请,并从内部用它你的函数。不过,也有一些限制需要考虑:

  1. 有60秒执行硬上限,因此,如果您的要求要花很长时间的功能,可以超​​时
  2. LAMBDA放置在网络功能有一些限制:

      

    入站网络连接是通过AWS LAMBDA,只有TCP / IP管理   插座的支持,和ptrace的(调试)系统调用   限制。

With the ground breaking revolutionary fully managed functional programming support by AWS; can AWS lambda speak to external internet / systems for external communication.

The idea / motive is if AWS Lamdba use the NodeJS SDK for services PubNub, Pusher - it would be nice to offload the handler aspect of the real time communication.

解决方案

The short answer is yes. Since Lambda runs in a Node sandbox, there's nothing stopping you from bundling up something like request and using it from within your function. However, there are a few limitations to consider:

  1. There is a hard upper limit of 60 seconds for execution, so if your requests take too long your function could timeout
  2. Lambda places some restrictions on network capabilities:

    Inbound network connections are managed by AWS Lambda, only TCP/IP sockets are supported, and ptrace (debugging) system calls are restricted.

这篇关于AWS Lamdba能讲到外部Internet服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆