Features
- Compatibility with AnyCable 1.0.
Changes
-
Connection pool is added for gRPC clients.
-
RPC server is embedded into the running process (instead of spawning a new one).
-
Breaking Server initialization and configuration API changed.
Now you need to pass a config object as the only option to AnyCable::Rack::Server.new
:
server = AnyCable::Server::Rack.new(config: AnyCable::Rack::Config.new(**params))
You can omit the config altogether. In this case, a default, global, configuration would be used (AnyCable::Rack.config
).
When using Rails, config.anycable_rack
points to AnyCable::Rack.config
.
Env variables prefix for configuration changed from ANYCABLE_RACK_
to ANYCABLE_
That would allow us to re-use common parameters between anycable
and anycable-rack-server
.