title: How to handle multiple ruby services in gRPC server
body: <p>Developing gRPC based services in a rails project. Suppose I have two services <code>ProductService</code> and <code>UserService</code> implementation.</p>
  
  <p>My GRPC server code:</p>
  
  <pre><code>server = GRPC::RpcServer.new
  server.add_http2_port([ENV['GRPC_HOST'], ENV['GRPC_PORT']].join(':'), :this_port_is_insecure)
  server.handle(AuthService) # I cannot pass like server.handle([AuthService, UserService]
  server.run_till_terminated
  </code></pre>
  
  <p>As I can read under <a href="https://github.com/grpc/grpc/blob/a85b78baa69a57b724d6cfe35a1dadb9719f2c56/src/ruby/lib/grpc/generic/rpc_server.rb" rel="nofollow noreferrer">GRPC ruby source code input</a> to <code>handle</code> method expects service to be either a class that includes <code>GRPC::GenericService</code> and whose new function can be called without argument or any instance of such a class.</p>