Support Board
Date/Time: Wed, 07 May 2025 14:28:04 +0000
Post From: Custom data into SC
[2024-12-29 00:50:12] |
User719512 - Posts: 310 |
really not enough to go on here to give great advice. Basically, what I’ve built is an HTTP fetcher that puts any new data plots into the matching subgraph index but this isn’t ideal.
What's not ideal?if the answer was yes, you can get a time series into Sierra, then the problem would move to how to update that data stream, or what mechanism Sierra would magically do this for you. if you provided a list of date/time to Sierra it would have to do work to align your data to chart bars. Same thing you can do from your own study. Making assumptions based on other information you provide... you have users: how many? what is the anticipated scale of this? do you anticipate using a CDN, simple Heroku flask server, etc.? you have an http fetcher, which probably implies this is not a real-time feed and some lag is ok. if this is more real-time, then we come back to scale and your data stream being push or pull? (huge rabbit hole for event bridges, scalable design, distributed network, servers per geographic region) pulling from a Sierra study at some rate you want to monitor and not a chart update interval like 10 times a second might be just fine. if so, then you'd want to spend time on your REST API for efficient pulling of all data, then a method for efficient updates with a param to the API for last item seen, resume handle, etc. parsing this data in your study and aligning to nearest/containing bar index should be efficient and you'd most certainly make use of some persistent variables for tracking state. -- Not an answer to your question per se, but some things to ponder and elaborate on so perhaps you get the desired outcome to your problem statement. |