> For the complete documentation index, see [llms.txt](https://docs.yottalabs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yottalabs.ai/products/serverless/service-mode.md).

# Service Mode

We provide **three Service Modes** for Serverless:

### **ALB**

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2FPZwmseKjSZb5woF5YjDn%2FScreenshot%202025-11-25%20at%2016.01.24.png?alt=media&amp;token=97b6b17f-d74d-4cae-8e3e-2c1082deb184" alt=""><figcaption></figcaption></figure>

* The system automatically allocates a dedicated **Gateway (ALB)** for this deployment type, responsible for routing external requests to multiple Worker instances based on defined policies, enabling high availability and high-concurrency access.
* The Gateway supports **load balancing, rate limiting, and authentication**, and only forwards **HTTP** requests.
* Users can securely access their deployed services through the unified ALB entry point, without needing to manage the number or distribution of underlying Workers.

#### **Queue**

<figure><img src="https://4009603828-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2ezFC70sdvT4ACdioCrw%2Fuploads%2Fi5x48lgFJe09w82zwlAc%2Fimage.png?alt=media&amp;token=8641bb48-46e1-492d-8d27-0d743a6771b1" alt=""><figcaption></figcaption></figure>

* The Queue mode provides **high-availability, scalable asynchronous task processing**.
* Built on a microservices architecture, it supports dynamic scaling and is ideal for workloads that require processing a large volume of async tasks.
* Based on a reliable message-queue mechanism, Queue ensures **stability and durability** during task transmission and execution.
* Once a task is completed, the system automatically sends the results back to your service (**UserBackend**) via callback.

#### **Custom**

* The system directly deploys **Workers** without exposing any external interfaces.
* Services and tasks running inside the Workers are **not directly accessible** to the user.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yottalabs.ai/products/serverless/service-mode.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
