I’m writing an open sourced social network with a Python wrapper that calls the API. It’s basically a Flask server.
Conceptually, status updates will be stored in a JSON list, dumped into a json file, and then that file will be hosted on IPFS.
What’s the best way to make modifications to said file? My current approach is storing it on the hard drive and then uploading it to the network every time there’s a status update.
My main concern is that I’m needlessly writing and rewriting data. Is there a way to write the file contents directly to IPFS? Using the API is ineffective as URLs are limited in number of characters. Could be maybe offer POST requests for file writing via IPFS?
Being new to IPFS, do you guys have a better approach?