Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    I have not seen a problem, but I will try to reproduce your case, if you give more details
    karan-c3
    @karan-c3
    Hey I am using Redis client as singleton global object
    to reuse the connection
    Mattia Bianchi
    @mattiabi
    Karan, did you enable TLS on Lambda Store database?
    karan-c3
    @karan-c3
    yes
    Mattia Bianchi
    @mattiabi
    And also in Redis client configuration?
    karan-c3
    @karan-c3
    yes
    Mattia Bianchi
    @mattiabi
    which client library are you using?
    karan-c3
    @karan-c3
    tls: {}
    node-redis
    Sven Anderson
    @svenanderson
    so you do not close the connection, right?
    do you use context.callbackWaitsForEmptyEventLoop = false;
    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