Microservice that receives a book title, and returns the summary provided on the book's wikipedia entry. The microservice pulls the book summary using Wikipedia's API.
Allows for the quick retrieval of a book summary using only the book's title.
This microservice uses zmq as the communication pipeline. In order to make a request, you will need to import zmq in your python file:
import zmq
To connect to the server, use the following code:
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://192.168.50.37:5555")
To make a request send the book title as a string:
socket.send_string("BOOK TITLE GOES HERE")
To receive and format the response, insert the following code:
message = socket.recv()
message = str(message)
message = message[2:-1]
That's all! You may use the summary in any way you need once it has been stored in a variable.
This program was written by and is maintained by Erik Lynch