Split Join function in Python
224
This image receives a single REST request and splits it out into multiple parallel calls. It then gathers the results and returns them as a single response.
This service takes a list of payloads and endpoints and sends the requests to all the endpoints in parallel. It then collects the results and returns the results as a list of responses.
To call splitjoin POST to any URL on the splitjoin server. The requirement to POST specifically to /splitjoin has been removed.
If a GET is done to any URL on the splitjoin server it will return this help.
This image is built on top of the Python:3-slim image. A github project contains the build instructions if a customized image is required.
Authentication has the following options:
Base request to service has following structure:
{
"timeout" : 30,
"queries" : [
{
"id" : "id1",
"url" : "https://server/path",
"method" : "POST",
"username" : "OptionalUsername",
"password" : "OptionalPassword",
"headers" : {
"header1" : "value1",
"header2" : "value2"
},
"payload" : {
"any" : "payload",
"goes" : "here"
}
},
{
"id" : "id2",
"url" : "https://server/path",
"payload" : {
"any" : "payload",
"goes" : "here"
}
},
{
"id" : "id3",
"url" : "https://server/path",
"method" : "GET",
"params" : {
"param1" : "value1",
"param2" : "value2"
}
}
]
}
Response from service has following structure:
[
{
"start": "2020-05-12 02:23:03.839570",
"id": "id1",
"response": {
"any" : "response",
"goes" : "here"
},
"headers": {
"header1" : "value1",
"header2" : "value2"
},
"status": 200,
"end": "2020-05-12 02:23:27.597740"
},
{
"start": "2020-05-12 02:23:03.843628",
"id": "id2",
"response": {
"any" : "response",
"goes" : "here"
},
"headers": {
"header1" : "value1",
"header2" : "value2"
},
"status": 200,
"end": "2020-05-12 02:23:30.594746"
}
]
There are a number of ways to deploy the service:
A sample package Recalls.par is provided that shows how to use splitjoin from OIC. When setting up a connection to SplitJoin it is a good idea to set the security credentials to be OIC credentials. This can be either Basic Auth or OAuth. This will allow the SplitJoin to call OIC integrations without providing any additional credentials in the invoke.
Content type
Image
Digest
Size
56.6 MB
Last updated
over 6 years ago
docker pull antonyjreynolds/splitjoin