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

Generate GeoJSONs as Part of ETL and Store in Public Folder for CDN #240

Open
agennadi opened this issue Feb 24, 2025 · 0 comments
Open
Assignees

Comments

@agennadi
Copy link
Collaborator

Context

Currently, our app fetches large datasets dynamically upon each page load, which increases our data transfer usage and leads to performance issues. Since the data updates only once a week, we can optimize this by pre-generating GeoJSON files as part of the ETL process and storing them in the public/ folder. This will allow Vercel’s CDN to serve them efficiently, reducing unnecessary API calls and preventing timeouts.

Definition of Done

  • GeoJSON files are generated as part of the ETL workflow.
  • Generated files are stored in the public/ folder of the repository.
  • The application fetches the GeoJSONs directly from the CDN instead of making API calls.
  • Data updates seamlessly every week with new ETL runs.

Engineering Details

  • Modify the ETL scripts in the backend/etl/ folder to generate GeoJSONs from the existing dataset.
  • Store the generated .geojson files in the public/ folder.
@agennadi agennadi moved this to Todo in QuakeSafe Project Feb 24, 2025
@agennadi agennadi added this to the 2. Pre-Alpha / MVP milestone Feb 24, 2025
@agennadi agennadi self-assigned this Feb 24, 2025
@agennadi agennadi moved this from Todo to In Review in QuakeSafe Project Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Review
Development

No branches or pull requests

1 participant