# Service Mode

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

### **ALB**

<figure><img src="/files/rnNChPLdeRYGIf5CCRz8" 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="/files/HVv7bpnTIANcwPAufbPX" 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: 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.yottalabs.ai/products/serverless/service-mode.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.
