Skip to content

This is a barebone rest based messaging queue, with server and client implementation

Notifications You must be signed in to change notification settings

mridulganga/simple-messaging-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running the Server

pip3 install -r requirements.txt
python3 app.py

Using client

Making Connection

from smqc import smqc
queue = smqc.Connection("localhost",5000)

Listening Messages

key = input("Enter key: ")
def on_message(key, messages):
	print(key)
	print(messages)

queue.start_polling(key, on_message)

Publishing Messages

key = input("Enter the key: ")
message = input("Message: ")
queue.publish_message(key, message)

About

This is a barebone rest based messaging queue, with server and client implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages