There are many methods to communicating between processes. Many methods work best when only using a single programming language, while others require custom packets and parsing.
Simplicity is key and Redis is an efficient solution. Redis is an open-source in-memory database project implementing a distributed, in-memory key-value store.
Start Redis Server We will be using a Docker Redis container to run the Redis server.
docker run -d --rm --name my_redis -p 6379:6379 redis -d, --detach: Run container in background and print container ID --rm: Automatically remove the container when it exits --name string: Assign a name to the container -p, --publish list: Publish a container’s port(s) to the host Client Installation This quick tutorial will focus on Python, so let’s install the recommended package.