Context vs Callback in AWS Lambda

后端 未结 2 1620
暗喜
暗喜 2021-01-11 15:52

I am loving using lambda functions in AWS. It ideally reduced my time in maintaining the servers anymore. My question is when using lambda there is context object and the ca

2条回答
  •  暖寄归人
    2021-01-11 16:28

    context.succeed is the older way of doing things, and is supported under the 0.10.42 runtime (where the callback parameter specifically isn't). If you're running on the newer runtimes (4.3 and 6.10), it's included for backwards compatibility, but the "proper" way is now to use the callback functionality.

提交回复
热议问题