Skip to main content

This is a packet that broadcasts redis multiple queues

Project description

Recently, I’m going to do something like chat software. After a lot of testing, I’ve done this thing.

Performance is 13 times faster than py direct circular transmission

install

pip install redisGroupMsg

push msg

python

from redisGroupMsg import redisMessage

r = redisMessage()

if __name__ == '__main__':
    for a in range(1,10):
        e = "id:"+str(a)
        # add queue of group
        # r.addGroup("test",e)
        # send message in group queue
        # r.sendGroup("test",e)
        # remove queue on group
        r.removeGroup("test",e)

pop msg

python

from redisGroupMsg import redisMessage
r = redisMessage()

if __name__ == '__main__':
    conn = r.conn
    msg = conn.rpop("id:1")
    print(msg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for redisGroupMsg, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size redisGroupMsg-0.0.5.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View
Filename, size redisGroupMsg-0.0.5-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page