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

Add Redis #14

Open
johncmanuel opened this issue Nov 30, 2023 · 1 comment
Open

Add Redis #14

johncmanuel opened this issue Nov 30, 2023 · 1 comment

Comments

@johncmanuel
Copy link
Owner

Description

While running test cases (see #10), I've noticed that the API endpoint, /api/images, tends to throw 500-related errors (see below). There are multiple causes for this, where one is the logic for fetching images. The other is making too many calls to Google's API.

image

Solution

I propose we use Redis to alleviate our API and Google's API. This would not only speed up our application but prevent repeated calls to Google's API and thus save on potential costs.

@johncmanuel
Copy link
Owner Author

Upstash provides a serverless Redis instance with a nice free tier. Experimentations with Upstash will be conducted sometime in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant