
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
github.com/shidel-dev/async-grpc
Supply Chain Security
Vulnerability
Quality
Maintenance
License
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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.