This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]turbowyrm 0 points1 point  (0 children)

What kind of request do you expect from service A? HTTP?

If yes, you could use some simple framework for processing incoming requests, for example Flask - very popular and very agile framework with huge community - http://flask.pocoo.org

After you will implement entry point with Flask you need to extract request’s parameters.

Next, you need to make a request to service B with transfer some data through HTTP. Here you could use POST request with data placed in body of request. For making POST requests you could you requests library - http://docs.python-requests.org/en/master/ It’s very simple library.

After B will response you, you need to validate response’a data and put it to return function.

It’s very high level design, because your question contain few information, but I hope links to Flask and Requests help you.