Thank you George for the response.
In our case, There is a single endpoint which reads a large file from
amazon s3 line by line and then ingests a batch of 50 lines as 50 documents
on cloud firestore. It roughly takes around 1.5 hours to insert all the
data from a file to cloud firestore.
Instance re-starting is normal in the present case, and your application
should take this into consideration. Hardware and software failures that
cause early termination or frequent restarts can occur without prior
warning and can take considerable time to resolve; thus, you should
construct