fast-gateway
fast-gateway copied to clipboard
Question: How to combine responses from multiple targets
trafficstars
How to combine responses from multiple targets, essentially we want to do is this:
const gateway = require('fast-gateway')
const server = gateway({
routes: [{
prefix: '/service',
target: {
'service1':'http://127.0.0.1:3000/a',
'service2':'http://127.0.0.1:3000/b',
'service3':'http://127.0.0.1:3000/c',
}]
})
server.start(8080)
In this we want /service endpoint to combine all responses from all services in target in a deterministic manner
Hi @subhajeetdey , thanks for reaching out. This functionality is still not implemented in fast-gateway. I would be easy to add through a new proxy type using the proxyFactory interface.
Can't provide any deadline this feature at this time, sorry.