Issue
I want to run a python code continually over a long period of time like 2/3 Months without checking on it.
Regarding the code, it requests data from a plataform using their api,processes it and sends a POST to make changes on my account on the plataform (also it runs each 15/30 minutes).
I was thinking using a server (google cloud) or a Raspberry Pi but i dont have experience in using any of them so my questions is as follows.
TLDR of questions:
-is google server free tier enough for what i want? -Which raspberry pie should i get/Which microcomputer should i get? -any other ideas besides these?
Solution
You can consider Compute Engine that you can configure and run your Python code on. However, you are in charge of installing Python and its necessary dependencies on the VM to run your code.
A suitable product to also consider is Cloud Functions which is a serverless compute platform that allows you to run event-driven code without worrying about server management. It automatically scales based on the incoming traffic, ensuring that your code can handle the load efficiently. Additionally, you only pay for the compute resources used during the execution of your function.
Consider factors like function timeouts, memory requirements, and any necessary dependencies when designing and deploying your code as a Cloud Function
The free tier on GCP includes a limited amount of usage that can be utilized for running your code without incurring additional costs. As the free tier has certain limitations on the number of CPUs, memory, and network egress that you can consume. Also, be aware that the free tier has time limits on VM usage, so make sure to manage your VM instances accordingly.
Check out this documentation for the free tier inclusions for different products
Answered By - Siegfred V. Answer Checked By - Senaida (WPSolving Volunteer)