Zurab
Zurab

Reputation: 1

Python Server to Server communication, multi-threading, Consumer Producer

I want to use python to create two web servers which communicates over HTTP protocol between them. First web server is producer which produces some data on multiple threads (more than 5) and it sends these data from multiple threads to the second web server. Second server is consumer, which receives and consumes data from first server and populates shared resources, a queue or stack with received data. Second server also has multiple threads which extracts one element from shared resource and is sending that extracted data element from second server to the first. Can you suggest me any code samples or logic templates for such kind of task?

Upvotes: 0

Views: 65

Answers (0)

Related Questions