What is the point of passing multiple client stubs to dgraph client in dgraph-js?

The documentation for dgraph-js shows that you can pass multiple clientStubs to dgraphClient: GitHub - dgraph-io/dgraph-js: Official Dgraph JavaScript client

What is the point of doing that ? Are there any advantages ? What goes on behind the scenes ?

Well, you could use this to create a Round-robin transaction scheme for example. Each new transaction on your NodeJS server could be balanced between your Alphas by your self. You could have your own rules for balancing it.

1 Like

I suspected as much. Thanks :slightly_smiling_face: