Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Grakn Cluster integration #165

Merged
merged 21 commits into from
Mar 12, 2021
Merged

Grakn Cluster integration #165

merged 21 commits into from
Mar 12, 2021

Conversation

alexjpwalker
Copy link
Member

@alexjpwalker alexjpwalker commented Mar 9, 2021

What is the goal of this PR?

We now support connecting to Grakn Cluster using

client = await GraknClient.cluster(addresses)

where addresses is an array of Cluster server addresses. The API usage of a Cluster client is the same as for a Core client, however, the creation of a Cluster client returns a Promise<GraknClient> (unlike creating a Core client, which returns a GraknClient). It also supports one additional field in GraknOptions named readAnyReplica, which when set to true on a Session, allows all of its read transactions to read from secondary database replicas.

What are the changes implemented in this PR?

Create Cluster-specific versions of GraknClient, Session, Database, and DatabaseManager for use when connecting to Cluster.

@lolski lolski self-requested a review March 11, 2021 12:45
@lolski lolski merged commit 60e9ef7 into typedb:master Mar 12, 2021
@alexjpwalker alexjpwalker deleted the cluster branch March 12, 2021 11:08
dmitrii-ubskii pushed a commit to dmitrii-ubskii/typedb-client-nodejs that referenced this pull request Sep 1, 2023
## What is the goal of this PR?

Our older version of grpcio was not being successfully installed on all systems. To mitigate these installation issues we upgraded to 1.35.0.

## What are the changes implemented in this PR?

Upgrade grpcio to 1.35.0
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants