This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- Redis Stream with ordered processing | |
--- | |
--- Redis streams support multiple consumers for throughput and reliability however it doesn't offer | |
--- a native mechanism for processing a set of messages in a specific order. | |
--- | |
--- It's possible though to implement a simple algorithm that resembles Kafka's partitioning algorithm: | |
--- | |
--- - a logical stream becomes N streams in redis (shards from now on) | |
--- - producers place the message into one of the stream shards based on the hashing of some attribute | |
--- - each consumer in the consumer group "acquires" a subset of the streams |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Allows to easily spin up a Docker Swarm Mode (1.12+) monitoring solution | |
# Prometheus (metrics database) http://<host-ip>:9090 | |
# AlertManager (alerts management) http://<host-ip>:9093 | |
# Grafana (visualize metrics) http://<host-ip>:3000 | |
# NodeExporter (host metrics collector) | |
# cAdvisor (containers metrics collector) | |
# | |
# Larry Smith Jr. |