A PHP server that ingests http requests (RAW POST DATA) along with a Go server that delivers http responses stored in a log file. Redis is used as a queue between them.
Requests were tested using Postman https://www.postman.com/ and a local Go server through test_endpoint.go
Most outside resources used are listed in external_resources.txt
(POST) http://{server_ip}/ingest.php
(RAW POST DATA)
{
"endpoint":{
"method":"GET",
"url":"http://sample_domain_endpoint.com/data?title={mascot}&image={location}&foo={bar}"
},
"data":[
{
"mascot":"Gopher",
"location":"https://blog.golang.org/gopher/gopher.png"
}
]
}
GET http://sample_domain_endpoint.com/data?title=Gopher&image=https%3A%2F%2Fblog.golang.org%2Fg opher%2Fgopher.png&foo=