Skip to content

Question: How to combine responses from multiple targets #76

@subhajeetdey

Description

@subhajeetdey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions