> For the complete documentation index, see [llms.txt](https://docs.fluidity.money/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fluidity.money/docs/developers/fluidity-architecture/worker-architecture.md).

# Worker architecture

The two currently supported platforms (Ethereum and Solana) follow a similar process:

1. Application server becomes aware of a block/slot
2. Application server classifies Fluid Asset interactions in the block/slot as either&#x20;
   * a standard Fluid Asset transfer
   * an application transaction utilising a Fluid Asset (e.g. a swap on Uniswap, Saber use)
3. For application transactions, the Application server decodes the interaction and attaches a decorated structure containing information such as its associated fees&#x20;
4. Application server sends all Fluid Asset interactions to the Worker Server
5. Worker computes the current state of the TRF using every available variable (fees paid for each application used, past state history, averages if there are any) and sends it to the Worker client queue
6. Worker optionally computes more variables after fetching data (this system is disintermediated since some upstream dependencies are unreliable and can dilute the calculation in the previous stage)
7. Worker either sends the transaction depending on the backend (Solana) or sends it to the final stage which aggregates the batched payouts (Ethereum)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fluidity.money/docs/developers/fluidity-architecture/worker-architecture.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
