
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
github.com/shidel-dev/async-grpc
An async grpc implementation for ruby. Build on top of Async, and google-protobuf
Supports:
TLDR; For many workloads it can handle higher concurrency, with lower latency then the reference grpc implimentation for ruby.
The reference implimentation of grpc for ruby is built on top of a c++ server implimentation, with c shims, and a ruby wrapper. It has a concurrency model that does not suit low lantancy responses when there are concurrent requests. The reason for this is due to the fact that it uses a bounded thread pool to execute application code. While this might work for some use cases it is limiting due the GIL, and switching/memory overhead of threads. Reference.
For users of the reference implimentation it should be a drop in replacement (TODO: fix some things that make this statement not true).
add the following line to you gem file
source "https://rubygems.pkg.github.com/shidel-dev" do
gem "async-grpc", "0.1"
end
Requires a working go installation
go get github.com/shidel-dev/async-grpc/protoc-gen-async_grpc_ruby
Make sure protoc-gen-async_grpc_ruby
is in your path
protoc --proto_path=. --ruby_out=lib --async_grpc_ruby_out=lib my_service.proto
require "async/grpc"
require "hello_service_def"
class MyService < Helloworld::GreeterService
def say_hello(req, metadata)
Helloworld::HelloReply.new( message: "Hello #{req.name}" )
end
end
server = Async::GRPC::Server.new()
server.handle(MyService)
server.start
FAQs
Unknown package
Did you know?
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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.