This workshop will teach you about microservices in Node.js. It will walk you through how to containerize the microservices that are built and how to use a service catalog for discovery. Further, the workshop will take you through using the Autopilot Pattern with ContainerPilot to make the application and its parts scalable. Finally, the workshop will show you how to deploy the application to production using Triton.
Instructor: Wyatt Preul, Product Engineer
What is a microservice?
Why use containers?
What we are building?
A frontend that connects to a backend over websockets. The backend is served from data coming from InfluxDB. The data gets into InfluxDB from several IoT related microservices that are consuming data from an external service in Triton, which receives data from a SmartThings hub.
Software and modules we will use
- Docker and Docker Compose
Challenge 1 - Get the Node.js frontend server running
Challenge 2 - Start the serializer and send data to InfluxDB
Challenge 3 - Hook the frontend to the serializer service to consume data
Challenge 4 - Containerize the frontend and serializer
Challenge 5 - Configure the temperature service to run with the serializer
Challenge 6 - Add motion and humidity sensor services
Challenge 7 - Add ContainerPilot to the containers
Challenge 8 - Add consul and configure the services and frontend to use it
Challenge 9 - Scale the serializer
When & Where
Joyent delivers container infrastructure as a service, offering organizations high-performance, yet simple, public cloud and private cloud software solutions for today’s demanding real-time web and mobile applications.