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: 8 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-14T03:29:07.000Z (over 1 year ago)
- Last Synced: 2025-01-16T02:49:18.455Z (10 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
```