AWS Lambda : Event Source Mapping with SQS trigger

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • This video talks about Lambda ESM setup with SQS trigger.
    An event source mapping is a Lambda resource that reads from an event source and invokes a Lambda function. You can use event source mappings to process items from a stream or queue in services that don't invoke Lambda functions directly. Lambda provides event source mappings for the following services.
    Services that Lambda reads events from-
    Amazon DynamoDB
    Amazon Kinesis
    Amazon MQ
    Amazon Managed Streaming for Apache Kafka (Amazon MSK)
    Self-managed Apache Kafka
    Amazon Simple Queue Service (Amazon SQS)
    ++ Using Lambda with Amazon SQS - docs.aws.amazo...
    ++ Lambda event source mappings - docs.aws.amazo...
    NOTE: Not endorsed by AWS, all opinions are mine.

Комментарии • 7

  • @adityapandita
    @adityapandita 8 месяцев назад +1

    Great Video Saborni! Your channel is really informative! Liked and Subscribed! 👏

  • @akshitgoel1183
    @akshitgoel1183 Год назад

    Hi Saborni , I am using AWS lambda and configure an SQS trigger on it with configuration of Batch size: 1000 and Batch window: 300sec so i was expecting that when i will send 1500 records i will have 2 Lambda invocation but when i check i had 9 invocations in the time frame of 5mins(300 sec), is there other parameters as well which are responsible for lambda invocations ?

    • @learnandexplorewithsab
      @learnandexplorewithsab  Год назад

      When you use a Lambda ESM with an SQS trigger, initially 5 poller process starts reading the records from the queue so you are not supposed to get a batch of 2 that adds upto 1500 records but more than 2.

    • @akshitgoel1183
      @akshitgoel1183 Год назад

      @@learnandexplorewithsab Is there any way to configure this, i understand that there is a limit to how long the lambdas could wait, but is there a way I can configure that it can poll maximum number of the records that fits in as per the batch size configured

    • @learnandexplorewithsab
      @learnandexplorewithsab  Год назад

      @@akshitgoel1183 you would possibly need to tweak a bit using batch window...Again it depends upon the size of each record and duration of execution and runtime errors.

  • @KingCold-z1d
    @KingCold-z1d Год назад +1

    very nice sir