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

Reduce API costs #7

Open
novedevo opened this issue Dec 7, 2023 · 1 comment
Open

Reduce API costs #7

novedevo opened this issue Dec 7, 2023 · 1 comment

Comments

@novedevo
Copy link

novedevo commented Dec 7, 2023

Hi! Love your game. I saw the "Google Maps API is expensive 😟" message and thought I might be able to help. I know the API is pricey, especially when loading it live for every viewer. However, since every user gets the same location each day, and they're chosen from a set list, you can avoid using the API client-side at all. You could preload the 6 zoom levels for each of the 301 cities; 1806 images in total. Or, if you'd rather not store ~1.8GB of images (though I think many cloud providers will host that for you at minimal cost, and it fits within a Nanode), you could just preload each day's images in advance serverside, or on demand...

These changes could turn it from a client-side-only bundle of JS into something with a serverside component, which I understand might not be something you'd want to do. But I just thought I'd mention it, in case the API costs are significant!

thanks for making satle ❤️

@brendaninnis
Copy link
Owner

brendaninnis commented Dec 7, 2023 via email

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

2 participants