# Architecture

## Overview

The purpose of this document is to provide a comprehensive guide on implementing best practices within the development team. It covers essential methodologies, tools, and strategies that can enhance productivity and ensure high-quality outcomes.

### Basic Flow

Most common flow in the dApps.

<figure><img src="/files/9UAFDtwbAwX02vOAz3QG" alt=""><figcaption></figcaption></figure>

***

### Services - Endpoints

Flow that must always be executed at each Endpoint **except** `Get Balances & Get Escrow`

<figure><img src="/files/JJ8qTNPOCNjU771FSL5E" alt=""><figcaption></figcaption></figure>

The document describes the essential execution flow for service endpoints, with exceptions for `Get Balances` and `Get Escrow`, ensuring uniformity in implementation.


---

# 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.trustlesswork.com/trustless-work/v2-en/introduction/developer-resources/architecture.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.
