I have the following common scenario and I'm not sure which google cloud tool will fit best. I am new to google cloud.
I have a process (the collector) which collects data from producers every N minutes and consolidates it in a database. The data is published but is transient in the sense that if the collector does not collect it within a few periods it is lost. The collector is a background process that runs 24/7 and has a terminal logging interface for diagnostics. At the moment the collector runs on a server/PC as a python script but I would like to move it to the cloud. However, I am unsure whether I need to deploy this script as a google app on Google App Engine or a docker container on the Container Engine or just run it on a Compute Engine Node.
EDIT:
I've done my research and I've deployed the script on Google App Engine. However, my understanding is that App Engine might run several instances of the app to scale per usage and it certainly has done that. However, I do not end up with duplicate entries in the DB which is what I would expect if I just happen to start several instances of the script on my laptop.