# Thrift简介

## thrift是什么

thrift是一种轻量级的跨语言的RPC框架    thrift 采用一种 IDL（Interface Definition Language）来定义RPC的接口和数据类型，并通过一个编译器生成不同的语言代理实现来达到跨语言、平台的功能。**并由生成的代码负责RPC协议层和传输层的实现**

## **thrift主要特点**

支持多种序列化格式：如 Binary、Compact、JSON、Multiplexed 等。

支持多种通信方式：如 Socket、Framed、File、Memory、zlib 等。

服务端支持多种处理方式：如 Simple 、Thread Pool、Non-Blocking 等。


---

# 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://blog.lilixin.top/thrift/thrift-jian-jie.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.
