简体   繁体   中英

Execute a nodejs script in Google Cloud Platform

I have a Nodejs script which will fetch data from bigquery and populate some of it in a database (running on Google Cloud Platform). If the script is fetchdata.js, then running it on server from the command line would be node fetch.js However, I am not sure how to accomplish this with the Google Cloud Platform. It seems that I have to deploy this script as a separate service (using Google App engine/ Compute engine) and then call that service externally (using the browser) to execute that piece of code. Am I missing something here? Earlier I thought this could be accomplished using Google Cloud Functions but even that does not seem to be the correct use case.

Yes, You would need a client to connect to you SQL (database) in order to insert the fetched data and for that you would need to use one of the services (Google Compute Engine or Google App Engine)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM