Skip to content

Commit

Permalink
feat(grpc-sdk,hermes): round robin lb for grpc connections
Browse files Browse the repository at this point in the history
  • Loading branch information
kkopanidis committed Sep 15, 2024
1 parent 16f3cb1 commit 7679b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/grpc-sdk/src/classes/ConduitModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export class ConduitModule<T extends CompatServiceDefinition> {
this.channel = createChannel(this._serviceUrl, undefined, {
'grpc.max_receive_message_length': 1024 * 1024 * 100,
'grpc.max_send_message_length': 1024 * 1024 * 100,
'grpc.service_config': '{"loadBalancingConfig":[{"round_robin":{}}]}',
});

let clientFactory = createClientFactory()
.use(
this._grpcToken
Expand Down
1 change: 1 addition & 0 deletions libraries/hermes/src/utils/GrpcConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export function grpcToConduitRoute(
{
'grpc.max_receive_message_length': 1024 * 1024 * 100,
'grpc.max_send_message_length': 1024 * 1024 * 100,
'grpc.service_config': '{"loadBalancingConfig":[{"round_robin":{}}]}',
},
);

Expand Down

0 comments on commit 7679b00

Please sign in to comment.