• Home
  • Node.js to Kubernetes

Connect two Node.js-based microservices with gRPC and run them on Kubernetes

Node.js to Kubernetes

Connect two Node.js-based microservices with gRPC and run them on Kubernetes
Node.js to Kubernetes

Ready to climb a mountain? In this lab you will deploy a small microservices-based application that runs on Kubernetes. Two primary topics we will cover are:

  1. Discovering some efficient ways of bundling a Node.js application into a distilled container
  2. Discovering how two Node.js applications can communicate through gRPC instead of the common REST techniques

In this lab, you will deploy two applications:

  1. A server application that is the model running as a microservice
  2. A client application as a small Express.js web interface

Both applications communicate via gRPC. The UI will present the standard create, read, update, and delete actions (CRUD).

In this lab, you will learn how to:

    ☐ Write a “getting started” Node.js web and server application
    ☐ Connect two applications that communicate using gRPC
    ☐ Compose a Node.js application into a distilled container
    ☐ Push a container to a private registry on Kubernetes
    ☐ Instruct Kubernetes to start an application
    ☐ Access an application service running on Kubernetes

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine.

Express.js is a fast, unopinionated, minimalist web framework for Node.js.

gRPC is a high-performance, open source universal RPC framework.

You will build all of this into containers and run it on Kubernetes.

  • LEVEL

    Beginner

  • DURATION

    15 minutes

  • UPDATED

    31 Dec, 2021