Blueprints / Container Communications
Container Communications
A multi-container application demonstrating inter-service communication using Redis as an event queue.
Beginnerv1.0.0Containers
Introduction
Welcome to the Container Communications Blueprint App for Particle!
This tutorial showcases a multi-container application where:
- A Redis instance acts as an event queue.
- A Python producer sends messages to the queue.
- A Node.js consumer listens for and processes messages.
Supported devices
Hardware and supplies
- Supported device
Project description:
This tutorial introduces multi-container applications running on a Linux-based edge device like Tachyon or Raspberry Pi.
Using Redis as a queue, this blueprint demonstrates:
- How different services (Python & Node.js) can communicate asynchronously.
- How to use Redis Lists (
RPUSHandBLPOP) as a lightweight event bus. - The basics of Docker Compose to orchestrate multiple containers.
Fork this project to your GitHub account Fork and edit