Serverless microservice – sample walkthrough

As in previous chapters, we will create a serverless microservice using Google Cloud Functions, so let's follow these to create a working example:

  1. Go to Google Cloud Console and locate Cloud Functions, as follows:
  1. Click on the Create Functions option and start the process of defining an HTTP trigger function, as follows:
  1. Use the following code in the index.js section to handle the main business logic of our serverless microservice. Also, please note that just below the code in the console, the ...

Get Cloud Native Architectures now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.