# RPC

{% hint style="success" %}
This is the official documentation of the `agent_ruby` Ruby agent.
{% endhint %}

The RPC datasource allows you to distribute your Forest Admin agent across multiple microservices. Each service runs its own RPC agent, and a main agent aggregates them into a unified admin panel.

### Why use RPC?

* **Microservices architecture**: Your application is split into multiple services, each owning its data
* **Team isolation**: Each team manages their own Forest Admin configuration
* **Independent deployment**: Update one service without redeploying the entire admin panel
* **Scalability**: Distribute load across multiple agents

### Architecture overview

![RPC Architecture](/files/kOjpvLH8VC9plfirahmI)

* **Main agent**: Central aggregator that combines multiple RPC datasources and exposes them to Forest Admin
* **RPC agents**: Service-specific agents that serve their collections via RPC

### Getting started

1. [**Configure the Main agent**](/developer-guide-agents-ruby/data-sources/provided-data-sources/rpc/main.md): Set up the central aggregator that connects to all RPC agents
2. [**Configure RPC agents**](/developer-guide-agents-ruby/data-sources/provided-data-sources/rpc/agent.md): Set up service agents and define cross-RPC relations


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.forestadmin.com/developer-guide-agents-ruby/data-sources/provided-data-sources/rpc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
