Skip to content
This repository was archived by the owner on Mar 20, 2022. It is now read-only.

Expose load balancing functionality #92

Open
danstarns opened this issue Apr 8, 2020 · 0 comments
Open

Expose load balancing functionality #92

danstarns opened this issue Apr 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@danstarns
Copy link
Owner

Why
Services have a strange mechanism for selecting the most appropriate service. This load balancing functionality could be exposed to users, a function could be passed to GraphQLGateway Or Nodes to provide custom behavior.

Example

function loadBalancer(): string{
 this.activeServices: string[]
}

const gateway = new GraphQLGateway({ ... }, { loadBalancer })
@danstarns danstarns added the enhancement New feature or request label Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant