# 旧版本高并发实验室

## **难点：**

### **协程&服务器心跳**

* 协程 grep

<https://docs.python.org/zh-cn/3/library/asyncio-task.html>

* 【Python】基于协程的并发WebSocket通信实践

<https://blog.csdn.net/pupilxmk/article/details/106429215>

### **并发&锁**

* 分布式锁，三种实现方式，性能对比分析！

<https://cloud.tencent.com/developer/article/1720823>

### **异步asyncio**

* 异步asyncio

<https://docs.python.org/zh-cn/3/library/asyncio.html>

* aiohttp

<https://pypi.org/project/aiohttp/>

* AIOAMQP

<https://pypi.org/project/aioamqp/>

## **【Python系列】4**、**协程与异步并发 🚩**

[**https://www.dazhuanlan.com/2020/01/04/5e101c249fa42/**](https://www.dazhuanlan.com/2020/01/04/5e101c249fa42/)

## Python中协程(coroutine)和生成器(generator)的区别

<https://www.jianshu.com/p/5103c6a63e33>


---

# 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://www.bfm-unity.org/4.0.0/bfm-dins.-bi-fang-meng-gong-cheng-she-ji-yuan/yi-bu-bing-fa-xie-cheng-1/yi-bu-bing-fa-xie-cheng.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.
