Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    karan-c3
    @karan-c3
    yes
    Sven Anderson
    @svenanderson
    karan-c3
    @karan-c3
    no
    I have not used context.callbackWaitsForEmptyEventLoop = false;
    Sven Anderson
    @svenanderson
    karan-c3
    @karan-c3
    ya I've looked into that
    Sven Anderson
    @svenanderson
    the lambda/netlify function hangs until you close connection then it times out. this can be the problem
    Mattia Bianchi
    @mattiabi
    It might be better to close the conn when function quits and re-open next time if your app is not too much latency sensitive.
    Sven Anderson
    @svenanderson
    yes, closing the connection is the cleanest way to do it
    karan-c3
    @karan-c3
    ya I was thinking about that, It would require major refactoring
    ya
    but I'll do that
    Thanks
    Mattia Bianchi
    @mattiabi
    You can set context.callbackWaitsForEmptyEventLoop = false; to verify whether this was the issue...
    karan-c3
    @karan-c3
    I'll close the connection after every function call, latency is not an issue for us coz we are already saving lot of time by caching
    Thank you
    everyone
    I really like Lamda store coz we were creating JAM stack eCommerce on a tight budget. And Lambda store suits our stack due to its serverless nature. I am very happy with it
    Keep up the good work
    Mattia Bianchi
    @mattiabi
    good to hear that!
    Austin Keller
    @WhosAustinK_twitter
    Hey all, anyone know if there is already a GoLang package to communicate with the Lambda Store API?
    Our aws lambdas are Golang
    Sven Anderson
    @svenanderson
    Hello
    Any go client should work with lambda store
    Austin Keller
    @WhosAustinK_twitter
    Oh, so you just use the already existing redis package but connect to your lambda store db?
    Sven Anderson
    @svenanderson
    yes
    and here I used go-redis client
    Austin Keller
    @WhosAustinK_twitter
    Do you prefer one over the other?
    Sven Anderson
    @svenanderson
    to me go-redis was more intuitive
    Austin Keller
    @WhosAustinK_twitter

    Alright, Thanks! I found lambda store through this medium post: https://medium.com/lambda-store/serverless-redis-is-here-34c2fa335f24

    Do you know of any other places I can read a bit more about the service?

    Sven Anderson
    @svenanderson
    [Sven Anderson, lstr] https://medium.com/lambda-store
    Austin Keller
    @WhosAustinK_twitter
    Sweet. Thanks :) I'll probably be popping in here every now and then as I get further along
    Sven Anderson
    @svenanderson
    sure
    Karan Shahani
    @kshahani
    Hey! I'm trying to set a key/value in lambda store using IORedis in Node.js, and I have a large payload (like a 500kB JSON)... I'm attempting to stringify it and set it using client.set with IORedis, but I'm seeing the error "ERR max request size is exceeded"
    Is this some configuration I can work around, or do I have to cache the data in a different way?
    Sven Anderson
    @svenanderson
    Hello. Lambda Store has a 400K max size
    Karan Shahani
    @kshahani
    What's the recommended solution to work around this?
    Sven Anderson
    @svenanderson
    you may refactor your code to do partial updates
    what is your usecase?
    Karan Shahani
    @kshahani
    we're requesting a big set of data from an API (it can take a few seconds to request), and caching it for 15 seconds for subsequent requests on our API so we don't need to query the downstream endpoints too frequently
    no worries, we can probably refactor the caching to chunk it down into groups of 100
    Sven Anderson
    @svenanderson
    yeah smaller requests will be best. but if it is not possible, mail to support@lambda.store
    Inas Luthfi
    @nascode_twitter
    Hi there, since your pricing is based on command count, is mget with many keys considered single command?
    What about if we batch command using pipeline?
    Mattia Bianchi
    @mattiabi
    Hey, mget with many keys are considered as single command. But batch commands in a single pipeline are not. We literally count the actual Redis commands.
    Inas Luthfi
    @nascode_twitter
    Thanks for the answer @mattiabi