I am working on a project where I need to compare two json file which are fetched in two different time frames. basically It is a continuous crone function and it will get a new json reponse from the api for every 20 sec. and it should be compared with previous response.
I was using nodejs to do this and I could store the previous json response as file in the same folder and retrieve it for the next iteration. But this seems not working after I deploy it in Google cloud functions since the temp json file uploaded is not writable. Please suggest a way to read and write the content of same json file using google cloud functions.