# RPC Examples (/sdks/ruby/how-to/rpc)



Commands and queries (request-reply) examples.

[RPC overview →](/learn/rpc/getting-started)

<Cards>
  <Card title="Send Command" href="/sdks/ruby/tutorials/command-send">
    Send a command and receive confirmation
  </Card>

  <Card title="Handle Command" href="/sdks/ruby/how-to/rpc/command-handle">
    Subscribe to and process incoming commands
  </Card>

  <Card title="Command Timeout" href="/sdks/ruby/how-to/rpc/command-timeout">
    Handle command timeout when no handler responds
  </Card>

  <Card title="Command Group" href="/sdks/ruby/how-to/rpc/command-group">
    Load-balanced command handling with groups
  </Card>

  <Card title="Send Query" href="/sdks/ruby/tutorials/query-send">
    Send a query and receive a data response
  </Card>

  <Card title="Handle Query" href="/sdks/ruby/how-to/rpc/query-handle">
    Subscribe to and process incoming queries
  </Card>

  <Card title="Cached Query" href="/sdks/ruby/how-to/rpc/query-cached">
    Server-side query response caching
  </Card>

  <Card title="Query Group" href="/sdks/ruby/how-to/rpc/query-group">
    Load-balanced query handling with groups
  </Card>
</Cards>
