-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance results #45
Comments
Hi @chainhead, I'm sure I do, but I'll need to dig for them. It would be a great independent side project to run some performance tests. I'd be happy to include anyone's results if they want to share. Jeremy |
@jeremydaly Can you shed some informal light on the performance of this package vs. the Data API? In my tests (which are not terribly scientific) it seems like the Data API may be a little bit slower than I hoped, maybe due to overhead. Would this be more performant, generally speaking? |
Hi @trademark18! This package is typically more performant than the Data API, but it requires a more complex environment setup (e.g. VPC, security groups, etc.). This library uses the |
@jeremydaly Thanks for the quick response. I suspected this was the case. I think the complexity would will be there anyway for this project, so I may give this a go for the performance gain. I have up to millions of Lambdas invocations per day, so keeping them quick saves $$! I suppose we can assume that the connection management efficiency is roughly equivalent between Data API and serverless-mysql. I guess that would be the only other consideration. By the way, thanks for the excellent blog posts and research on Aurora Serverless! I'm considering a migration from MSSQL on RDS and these resources have been most helpful. |
Hi @jeremydaly, I'm encountering an issue in performance.
After removing serverless-mysql and adding back RDS proxy, the above issues are resolved:
When implementing serverless-mysql, my lambda functions is async function and end by calling Is there something wrong with my implementation of serverless-mysql? Or it's a problem in |
Hi @jeremydaly, can you take a look at this issue? I really want to replace RDS proxy by serverless-mysql, so that the cost can be reduced. But it seems like serverless-mysql is not helping. |
Hi @chainhead @canhnht, I believe that this issues you guys are having is related to cold starts and, thank god, Jeremy wrote about this in an article in his own page, to give some of his own insight, experience, and thoughts about cold starts, it's really a great article to read and I personally recommend it. The great thing is that later, a few months after that post, he wrote another great article (I also recommend to read) with a proper solution for cold starts issues, wich ended up in a new npm package he also created, called lambda-warmer. I hope this is related to your issues and hopefully the links will help you guys. I'm about to try it in a PoC i'm building. Lastly, a big thanks to you, @jeremydaly! |
@jeremydaly great project! Do you have some benchmark reports that show a before-and-after comparison?
The text was updated successfully, but these errors were encountered: