###Few notes The thrift library is written in python not Apache Thrift)
Naming convention, client is the worker and server is the master.
Lets get cracking with running this..
-
To start client, get up with docker container, run this, sh build.sh
-
To start master, we go inside docker, run this, docker exec -it clientserver_client-server-thrift3_1 /bin/sh
-
run, python master.py (You should see console to hit commands)
Following is the syntax of the commands
Control command-
- start server - gets server to ready state
- pause server - gets server to unready state
- terminate server - terminates server
Data command-
- ping server
- calculate(1,'hello world')
If you want to connect to client via your host machine, run following,
- pip install -r requirements.txt
- python master.py
You can have a look at command execution,