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

Technical: Refactore the API to use only the nginx cache or only a cache in filesystem #2

Open
Tsukoyachi opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Tsukoyachi
Copy link
Collaborator

Tsukoyachi commented Jun 4, 2024

Idea of @Apoorva64 :
Use the nginx cache to have better handling of TTL and to make the api stateless

My idea :
All the satellite API will return 2 TLE lines that are the only mandatory data so in memory once the data is loaded, we can make a go routine to save these data in a json file with this format :

image

This solution also allow us to be more efficient with the revail date of the cache. And it's also easier to implement than adding an other layer for this.

@Tsukoyachi Tsukoyachi added the enhancement New feature or request label Jun 4, 2024
@Tsukoyachi Tsukoyachi self-assigned this Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant