Skip to content

aruniiird/PubSub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This is an example program to do a pub/sub scenario using etcd watch

Pre-requisites
--------------
	etcd
	python
	etcd client for python

Program Pre-requisites
-----------------------
  etcd server version 3.x, installed and running on a host
  etcd3 python client library installed

Python Program
---------------
	A simple python pub/sub program, which relies on etcd server and uses etcd watch functionality. It requires 'etcd3' python client library installed.

Usage
-----

	Subscriber
	-----------
	python PubSub.py [--host=<etcd_server>] [--port=<etcd_client_port>] subscribe -k <key> [-t <timout_in_seconds>]

	Publisher
	---------
	python PubSub.py [--host=<etcd_server>] [--port=<etcd_client_port>] publish -k <key> -v <value>

	Delete
	------
	python PubSub.py [--host=<etcd_server>] [--port=<etcd_client_port>] delete -k <key>

About

A sample publisher/subscriber program using etcd3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages