Giter Site home page Giter Site logo

[SQS] Batch Window about lift HOT 4 CLOSED

getlift avatar getlift commented on September 2, 2024
[SQS] Batch Window

from lift.

Comments (4)

fredericbarthelet avatar fredericbarthelet commented on September 2, 2024 2

Hey @gonzalobertomeu, thanks for reporting your problem.
Could you elaborate on the advantages of exposing such configuration feature ? What is your use case for extending batchingWindow ?

In the meantime, you can easily override this property without a dedicated option on the construct using the Resources.extensions property from Serverless framework:

resources:
  extensions:
    MyFunctionEventSourceMapping: // Replace  with the actual logicalId of your event source mapping from cloudformation ressources tab
      Properties:
        MaximumBatchingWindowInSeconds: 150 // Whatever value fits your need

from lift.

gonzalobertomeu avatar gonzalobertomeu commented on September 2, 2024 1

Screen Shot 2021-10-26 at 16 09 11

Thank you!

from lift.

gonzalobertomeu avatar gonzalobertomeu commented on September 2, 2024

Hi @fredericbarthelet. Thanks for answer quickly!

In my case, I need to reduce the delay between the arrival of the message and lambda being triggered (with a standard queue).
I set a batch size of 10, but I don't always get a batch of 10 messages and have to wait 60 seconds to fill the batch window (AWS default) for the lambda to trigger.

I am using this in a messaging system (more simmilar to an email than a chat) for an educational platform, in which a message can be delivered to a single person, a family or the entire community of this school (among other categories).
60 seconds of delay its a high value for this case.

Now i'm going to try solution that you provided!

from lift.

fredericbarthelet avatar fredericbarthelet commented on September 2, 2024

Hi @gonzalobertomeu, we recently release a new version of Lift with the introduction of the extensions property. Lift extensions allows developper to override specific pieces of CloudFormation generated by Lift constructs. This would remove the need from your side to manually input generated logicalId by CDK. Would you like to give it a try :) ?

I'm closing this issue in the meantime. Thanks

from lift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.