Lambda Does Not Scale for Amazon MQ: RabbitMQ event source

0

AWS Lambda function triggered by Amazon MQ: RabbitMQ event source. It works fine and consumes messages from the queue, but It does not scale with respect to the queue load.

  • Lambda function uses Unreserved account concurrency and it is 1000 but concurrency is usually around 2 or 1.
  • Batch_Size and Batch_window parameters do not affect the consumption speed much. Is there any configuration need to be considered to make the lambda function adapt its queue consumption speed to queue load?
furkan
질문됨 2년 전1236회 조회
2개 답변
2
수락된 답변

Lambda doesn't autoscale with Amazon MQ as an event source. It has a fixed concurrency. For ActiveMQ it is 5, for Rabbit MQ it is 3. Note that these values may change without any notice.

profile pictureAWS
전문가
Uri
답변함 2년 전
  • thank you for the response.

  • @Uri @furkan we are facing the same problem, do you to how much count has the concurrency for ActiveMQ increased ? Or any workaround to such a situation ?

  • @Uri For the life of me, I cannot find anywhere in the documentation that states this limit. Is this limitation still in place? I'm trying to evaluate if a Lambda with Amazon MQ as a source is a viable solution for a problem I'm solving and this would be a deal breaker.

  • As far as I know, this still the limit. To increase the processing speed you can use batching and then use multiple threads in the function to handle the messages in the batch concurrently. Another option is to duplicate the function and create multiple triggers on the same queue. Not very pretty, but will do the work.

0

Currently the fixed concurrency is 5 for ActiveMQ as an event source and 1 for RabbitMQ as an event source.

AWS
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠