8

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 Lambda use the NodeJS SDK for services PubNub, Pusher - it would be nice to offload the handler aspect of the real time communication.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Naveen Vijay
  • 15,928
  • 7
  • 71
  • 92

1 Answers1

8

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.

William Gaul
  • 3,181
  • 2
  • 15
  • 21
  • In addition, someone posted a [Function to send an SMS message via the Twilio API](https://gist.github.com/stevebowman/7cff9dd80b227c899728) – awendt Feb 11 '15 at 08:09
  • Do you have a link to where you snagged that documentation from? Having a hard time finding the right docs. – justin.m.chase Jun 13 '16 at 14:56