Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpclb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpclb

  • 0.5.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

grpclb/ruby

Gem Version

Ruby implementation of grpclb client and server.

Client

require 'grpclb/client' # or just 'grpclb'

# construct client:
client = Grpclb::Client.new('127.0.0.1:8383', 'service-name', HelloWorld::V1::Stub)

# call methods:
client.say_hello(HelloWorld::HelloRequest.new(...))

Creates and maintains a load-balanced connection for given service stub.

Automatically reconnects on UNAVAILABLE errors.

Server

require 'grpclb/server' # or just 'grpclb'

# construct server:
server = Grpclb::Server.new(...) # just a subclass of GRPC::RpcServer, same initialize args

# handle services:
server.handle(HelloWorld::V1::ServiceImpl) # or .handle(HelloWorld::V1::ServiceImpl.new)

# set up and run:
server.add_http2_port '127.0.0.1:8080', :this_port_is_insecure
server.run_till_terminated

Subclass of GRPC::RpcServer, that takes care of grpclb load reporting.

FAQs

Package last updated on 03 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc