444B / streamlit-analytics2

👀 Track & visualize user interactions with your streamlit app
MIT License
14 stars 2 forks source link

Load Json to persist data between deployments #34

Closed 444B closed 4 months ago

444B commented 4 months ago

Original issue by Uranium2 on 2021-10-06 12:54:43+00:00

Hello,

I see you used firebase to do persist data between deployments, would it be possible to add this feature with json?

Context:

In my case the streamlit app is deployed on a docker and we have no persistence of volume (security constraint), so I was thinking about uploading the json on a server at fixed frequency rate. For example a task that will upload the json file each 30 seconds.

Then if the docker dies, we could fetch this json and load it in your tracker to persist the data.

444B commented 4 months ago

Comment by Uranium2 on 2021-10-06 14:10:49+00:00

Made a Pull Request for this feature : https://github.com/jrieke/streamlit-analytics/pull/10

444B commented 4 months ago

Comment by jrieke on 2021-12-29 01:54:24+00:00

Merged with # 10 (of previous repo)