> For the complete documentation index, see [llms.txt](https://docs.decentraland.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decentraland.org/contributor/contributor-zh/jia-gou/infrastructure.md).

# 基础设施

本页介绍为 Decentraland 提供支持的基础设施和外部服务。

## 外部服务（SaaS）

### LiveKit

**目的**：用于语音和视频的高质量媒体服务器

[LiveKit](https://livekit.io/) 提供：

* WebRTC 媒体路由
* 语音聊天
* 视频会议
* 屏幕共享
* 空间音频（开发中）

**访问控制**: [通信守门人](https://github.com/decentraland/docs/blob/main/contributor/apis/comms-gatekeeper/README.md) 生成有时效限制的令牌

**使用于**:

* Archipelago Workers - 默认语音
* Worlds - 每个世界的语音频道
* Events - 事件专用频道

### SendGrid

**目的**：电子邮件投递服务

发送通知邮件：

* 好友请求
* 活动提醒
* 系统通知

**由以下触发**: [通知系统](https://github.com/decentraland/docs/blob/main/contributor/apis/notifications-workers/README.md)

***

## 区块链索引器

多个索引服务提供快速的区块链查询：

### Squids

**目的**：自定义区块链索引器

[Subsquid](https://www.sqd.ai/) 基于的索引器：

* 自定义数据模型
* 快速同步时间
* GraphQL API

**索引**:

* 土地地块（LAND NFTs）
* 可穿戴物品和合集
* 市场活动
* ENS 名称

### Satsuma

**目的**：托管的 GraphQL 提供商

托管子图服务：

* 高可用性
* 自动扩缩容
* 包含监控

### The Graph

**目的**：去中心化索引协议

[The Graph](https://thegraph.com/) 网络：

* 去中心化索引器
* 以 GRT 计费的查询费用
* 由社区运营

***

## 消息代理

### NATS

**目的**：发布/订阅消息路由

[NATS](https://nats.io/) 提供：

* 实时消息传递
* 发布/订阅模式
* 请求/回复模式
* 集群支持

**使用于**:

| 服务          | 目的   |
| ----------- | ---- |
| Archipelago | 位置更新 |
| 社交服务        | 好友状态 |
| 世界          | 世界事件 |

***

## 媒体处理

### 图像转换服务（Metamorph）

**目的**：图像格式转换与优化

在格式之间转换图像：

* WebP 优化
* 缩略图生成
* 格式转换

**GitHub**: [metamorph](https://github.com/decentraland/metamorph)

### 个人资料图片系统

**目的**：头像缩略图生成

生成头像预览图：

* 面部特写
* 全身照
* 多种分辨率

**组件**:

* **个人资料图片消费者** - 渲染头像
* **个人资料生产者** - 监听头像变化

***

## 资产处理工作进程

### 资源包转换器

**目的**：针对平台的资产优化

将已部署的资产转换为适用于所有平台的优化包。

**在以下位置注册包：**: [资产包注册表](https://github.com/decentraland/docs/blob/main/contributor/apis/asset-bundle-registry/README.md)

### LOD 生成器

**目的**：细节层次变体

为提升性能，生成 3D 模型的低多边形版本。

***

## 奖励系统

### 奖励 API

**目的**：NFT 奖励分发

为以下行为授予 NFT 奖励：

* 完成入门
* 参与活动
* 推荐

***

## 下一步

* 复习 [后端服务](/contributor/contributor-zh/jia-gou/services.md) 用于服务规范
* 查看 [Catalyst 网络](/contributor/contributor-zh/jia-gou/catalyst.md) 用于内容基础设施
* 参见 [架构概览](/contributor/contributor-zh/jia-gou/architecture.md) 查看完整情况


---

# 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.decentraland.org/contributor/contributor-zh/jia-gou/infrastructure.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.
