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

sfy-data: analysis endpoints for hm0, trajectory and netcdf-files #137

Open
gauteh opened this issue Jun 26, 2023 · 0 comments
Open

sfy-data: analysis endpoints for hm0, trajectory and netcdf-files #137

gauteh opened this issue Jun 26, 2023 · 0 comments
Assignees

Comments

@gauteh
Copy link
Owner

gauteh commented Jun 26, 2023

We need backend endpoints for:

  • hm0, tp, etc
  • trajectory
  • netcdf-files

so that these can be displayed on the dashboard and be forwarded to other services.

This should go in a separate server so that the data-collection can operate independently.

Some thoughts:

  • The access-token should just be forwarded to the data-server, that way no additional authentication needs to be done.
  • Make sure to use predictable queries, i.e. from a specific day to the last received entry. So that the queries may be cached.
  • This does not need to be super-flexible, for more advanced stuff we work directly with the data.
  • We have two types of buoys: OMB and SFY, ideally both should be supported.

There are two main paths that can be chosen:

  • Re-implement the analysis in the server
  • Invoke sfydata (from sfy-processing) or call using python API. I am leaning towards this since we then only need to maintain this one place later. The disadvantage is that it is much slower than rust (and more likely to contain vulnerabilities). This limits what we can load by default on the dashboard since it should still be quick to show.

Needs adaptation of the frontend: #62

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