yurii-sorokin / localstack-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Serverless LocalStack (SQS, SNS, S3, DynamoDB)

Summary

  • pros
    • supports a lot of aws services
    • single source of all aws data, all aws-sdk clients are configured in the same way
    • seamless integration with other services (check the trigger chain in the example, lambda fn (send sqs) -> sqs fn (publish sns) -> sns fn (put in dynamodb))
    • not possible to use lambda optimization mountCode: true, it just doesn't work with that stack tested
    • works with serverless offline (but again only if mountCode: false and with cloudside plugin)
    • large community
  • cons
    • requires global external dependencies (python, pip, localstack, docker)
    • not stable when deploying fns iteratively (sometimes the same deploy may fail, sometimes it succeed), seems work ok for the clean startup
    • no watch mode (possible to integrate with serverless offline)
    • may be hard to apply for existing project with complex serverless config
    • issues with typescript plugin (serverless-webpack could be used instead, but requires manual setup)

Serverless Offline SQS

Summary

  • pros
    • easy setup
    • built in watch mode (provided by serverless offline)
  • cons
    • requires external dependency (java, elasticmq-server)
    • may be challenging to integrate with other offline plugins (sns, s3, dynamodb), needs multiple services running (dynamodb-local, Minio)
    • small community

About


Languages

Language:TypeScript 76.8%Language:JavaScript 23.2%