# back\_end\_actor

Using the TEA Party TApp as an example, the [party-actor](/z_glossary/party-actor.md) compiles to the [actor](/z_glossary/actor.md) that runs inside a [hosting\_cml](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/z_glossary/hosting_cml.md).

Since it's an [actor](/z_glossary/actor.md), it's loaded and runs inside the [enclave](/z_glossary/enclave.md) (also called the [mini-runtime](/z_glossary/mini-runtime.md)).

The only thing that the back-end actor does is handle incoming requests.

This back\_end\_actor is different than the [state\_machine\_actor](/z_glossary/state_machine_actor.md) which run inside the enclaves of the [state machine replica](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/z_glossary/state_machine_replica.md)s. Those [state machine actors](/z_glossary/state_machine_actor.md) handle the [queries](/z_glossary/queries.md) and [commands](/z_glossary/commands.md) that directly interact with the [state machine](https://github.com/tearust/t-rust/blob/master/docs/_gitbook-dev-docs/z_glossary/state_machine.md). In traditional web 2.0 applications, these are usually called **Stored Procedures** that run inside the database server.


---

# 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://dev.teaproject.org/z_glossary/back_end_actor.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.
