Can AWS Lambda Speak to external Internet Services?

前端 未结 1 1312
慢半拍i
慢半拍i 2021-01-12 06:04

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

相关标签:
1条回答
  • 2021-01-12 06:23

    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.

    0 讨论(0)
提交回复
热议问题