From be30aabffb2884a0d266da8fa3898c663c449a4c Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 20 Feb 2021 23:56:05 -0500 Subject: [PATCH] load test (works!!) --- publisher.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/publisher.py b/publisher.py index e5a0d9b..140dc80 100644 --- a/publisher.py +++ b/publisher.py @@ -1 +1,9 @@ #!/usr/bin/env python3 + +import redis +redis_client = redis.Redis(host='localhost', port=6379, db=0) + +for i in range(1000): + message = 'message: {}'.format(i) + redis_client.publish('testing', message) +