Skip to content
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

AWS lambdas to speed up searching #28

Open
brianpipa opened this issue May 7, 2023 · 5 comments
Open

AWS lambdas to speed up searching #28

brianpipa opened this issue May 7, 2023 · 5 comments
Labels
enhancement New feature or request MED

Comments

@brianpipa
Copy link
Owner

Might be able to leverage lambdas to both search for books at Overdrive and KU. Could be done in parallel and make the searching much much quicker, in theory.

I need to make sure that won't cost too much... "The AWS Lambda free tier includes one million free requests per month and 400,000 GB-seconds of compute time per month, usable for functions powered by both x86, and Graviton2 processors, in aggregate. Additionally, the free tier includes 100GiB of HTTP response streaming per month, beyond the first 6MB per request, which are free. "

@brianpipa brianpipa added enhancement New feature or request MED labels May 7, 2023
@brianpipa brianpipa self-assigned this May 7, 2023
@brianpipa
Copy link
Owner Author

Got the lambda written and deployed for KU. Need to use it in the code now.

@brianpipa
Copy link
Owner Author

successfully called the lambda from test code. Progress!

@brianpipa
Copy link
Owner Author

Ive got the KU lambda completely working and integrated. I need to wait til they approve of my limit increase before i can deploy it. Now I'll create a lambda for Overdrive book lookups.

@brianpipa
Copy link
Owner Author

I've got the KU check down to about .2s per book doing them concurrently with lambdas. I think I may be able to shave a little more time off of that by sending all the lambda calls out, then doing the library calls, then coming back to check the KU lambda results. I think I can do it similarly with the library checks...

  1. send KU lambda requests
  2. send library lambda requests
  3. check KU lambda results
  4. check library lambda results

@brianpipa brianpipa changed the title Leverage AWS lambdas AWS lambdas May 27, 2023
@brianpipa
Copy link
Owner Author

Not needed for libraries since the new library AP and code is blazing fast - KU searching could still benefit

@brianpipa brianpipa removed their assignment Sep 26, 2024
@brianpipa brianpipa changed the title AWS lambdas AWS lambdas to speed up searching Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request MED
Projects
None yet
Development

No branches or pull requests

1 participant