Upgrade to Pro — share decks privately, control downloads, hide ads and more …

本当は怖くない AWS Lambda / speee_cafe_meetup06

本当は怖くない AWS Lambda / speee_cafe_meetup06

Speee Cafe Meetup #06 で話しました
https://speee.connpass.com/event/54266/

yuma iwasaki

April 25, 2017
Tweet

More Decks by yuma iwasaki

Other Decks in Technology

Transcript

  1. AWS Lambda DC UZOU (@suthio_) Speee Cafe Meetup #6 /

    2017-04-25 Speee Cafe Meetup #6 ~ AWS Lambda
  2. @suthio_ UZOU 2

  3. AWS Lambda Speee Cafe Meetup #6 ~ AWS Lambda 3

  4. ※ AWS Lambda Speee Cafe Meetup #6 ~ AWS Lambda

    4
  5. AWS Lambda Speee Cafe Meetup #6 ~ AWS Lambda 5

  6. UZOU AWS Lambda Lambda UZOU Speee Cafe Meetup #6 ~

    AWS Lambda 6
  7. UZOU AWS AWS Lambda Speee Cafe Meetup #6 ~ AWS

    Lambda 7
  8. AWS Lambda Speee Cafe Meetup #6 ~ AWS Lambda 8

  9. AWS Lambda AWS Function AWS Kinesis DynamoDB S3 etc... Speee

    Cafe Meetup #6 ~ AWS Lambda 9
  10. AWS Lambda NodeJS Java8 Python .NET Core UZOU NodeJS Speee

    Cafe Meetup #6 ~ AWS Lambda 10
  11. UZOU Speee Cafe Meetup #6 ~ AWS Lambda 11

  12. 12

  13. Lambda 13

  14. Stream Kinesis Lambda Kinesis Streams callback error 14

  15. CloudWatch Logs 15

  16. AWS Lambda 16

  17. AWS Lambda Lambda 1 2 2 Lambda Lambda 17

  18. Context eventID eventID "eventID": "shardId- 000000000000:49545115243490985018280067714973144582180062593244200961" eventID Retry Kinesis Batch

    ID 18
  19. Lambda Lambda Kinesis Streams Lambda 19

  20. 20

  21. NodeJS Amazon Linux AmazonLinux Docker or AmazonLinux EC2 UZOU Mac

    21
  22. callbackWaitsForEmptyEventLoop Callback Lambda True false SetTimeout exports.handler = (event, context,

    callback) => { context.callbackWaitsForEmptyEventLoop = false setTimeout((a) => { console.info(a); }, 3000, 'SetTimeout Lambda'); callback(null, 'Hello Lambda'); }; 22
  23. callbackWaitsForEmptyEventLoop aerospike-client True Callback UZOU 23

  24. 24

  25. 25

  26. Kinesis WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded GetRecords.IteratorAgeMilliseconds 26

  27. WriteProvisionedThroughputExceeded 27

  28. ReadProvisionedThroughputExceeded GetRecords 28

  29. IteratorAgeMilliseconds GetRecords ( ) GetRecords 0 ( ) Kinesis Batch

    29
  30. Lambda IteratorAge Errors Count 30

  31. IteratorAge Lambda Lambda 31

  32. Errors Count Lambda CloudWatch Logs Timeout 32

  33. Datadog Datadog 33

  34. Lambda Lambda Lambda 34