fast-gateway icon indicating copy to clipboard operation
fast-gateway copied to clipboard

Question: How to combine responses from multiple targets

Open subhajeetdey opened this issue 3 years ago • 1 comments
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

subhajeetdey avatar Apr 26 '22 06:04 subhajeetdey

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.

jkyberneees avatar May 01 '22 11:05 jkyberneees