Skip to content

Cache posthog events on S3 or some other persistent storage instead of caching them on disk #20

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

Open
Martinsos opened this issue Nov 15, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Martinsos
Copy link
Member

Right now we cache fetched posthog events on disk, in a .json file.
Problem is, in production, when deployed to Heroku, this file is lost whenever a dyno (Heroku instance) is restarted, which can happen quite often on Heroku, possibly even daily (Heroku restarts dynos often to keep them "healthy").

Solution is to store the file somewhere on persistent storage -> most likely on S3.

@FranjoMindek
Copy link
Contributor

We are on fly now. Do we still want to do this issue? @Martinsos

@FranjoMindek FranjoMindek added enhancement New feature or request question Further information is requested labels Apr 15, 2025
@Martinsos
Copy link
Member Author

Yeah @infomiho solved this by putting us on Fly -> I think we are good for now, no need to push for this at the moment. Would be cool still, so we don't have to refetch all of them if server gets reset/destroyed, but not a priority I think. I would leave the issue open for now I think. We can Icebox it though.

@FranjoMindek FranjoMindek removed the question Further information is requested label Apr 15, 2025
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

2 participants