Backend service

Now that we have the frontend service created, what is left to do? Well, so far we have essentially been creating a queue of files to be processed. In this section, we will set about processing the filenames that have been added to the message queue.

Once again, we need to reinitialize our environmentthis time, focusing our efforts on the backend-service subdirectory:

  1. Move to the backend-service subdirectory created earlier.
  2. Initialize the npm package for this directory, that is, npm init --yes.
  3. Add the pubsub package, that is, npm install @google-cloud/pubsub.
  4. Then, add the Cloud Storage package, that is, npm install @google-cloud/storage.

In order to process the information presented at the backend, we need to create ...

Get Hands-On Serverless Computing with Google Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.