Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/terance-edmonds/python-pub-sub
Designing and implementing a simple Publish and Subscribe middleware using Client-Server Sockets Programming concepts and techniques
https://github.com/terance-edmonds/python-pub-sub
pubsub python socket-programming
Last synced: about 1 month ago
JSON representation
Designing and implementing a simple Publish and Subscribe middleware using Client-Server Sockets Programming concepts and techniques
- Host: GitHub
- URL: https://github.com/terance-edmonds/python-pub-sub
- Owner: terance-edmonds
- Created: 2024-07-13T06:45:43.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-14T03:29:07.000Z (6 months ago)
- Last Synced: 2024-08-02T05:50:34.282Z (5 months ago)
- Topics: pubsub, python, socket-programming
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Python Pub Sub Pattern
Designing and implementing a simple Publish and Subscribe middleware using Client-Server Sockets Programming concepts and techniques## Task 1: The Client-Server Application
1. Start the Server by passing the PORT as a command line argument.
```bash
py task_1/server.py 5000
```2. Start a Client to connect with the server by passing Server IP and Server PORT as command line arguments.
```bash
py task_1/client.py 127.0.0.1 5000
```## Task 2: Publishers and Subscribers
1. Start the Server by passing the PORT as a command line argument.
```bash
py task_2/server.py 5000
```2. Start Clients to connect with the server by passing Server IP and Server PORT as command line arguments.
```bash
py task_2/client.py 127.0.0.1 5000 PUBLISHER
py task_2/client.py 127.0.0.1 5000 SUBSCRIBER
```## Task 3: Publishers and Subscribers Filtered on Topics/Subjects
1. Start the Server by passing the PORT as a command line argument.
```bash
py task_3/server.py 5000
```2. Start Clients to connect with the server by passing Server IP and Server PORT as command line arguments.
```bash
py task_3/client.py 127.0.0.1 5000 PUBLISHER TOPIC_A
py task_3/client.py 127.0.0.1 5000 SUBSCRIBER TOPIC_A
``````bash
py task_3/client.py 127.0.0.1 5000 PUBLISHER TOPIC_B
py task_3/client.py 127.0.0.1 5000 SUBSCRIBER TOPIC_B
```