Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to combine responses from multiple targets #76

Open
subhajeetdey opened this issue Apr 26, 2022 · 1 comment
Open

Question: How to combine responses from multiple targets #76

subhajeetdey opened this issue Apr 26, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@subhajeetdey
Copy link

subhajeetdey commented Apr 26, 2022

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

@jkyberneees
Copy link
Collaborator

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 jkyberneees added the help wanted Extra attention is needed label May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants