notes_works/量化交易系统建议/08_Redis与Elasticsearch的应用.md
zhangkun9038@dingtalk.com 4380e95e00 2025-04-07 13:07:53: ...
2025-04-07 13:08:02 +08:00

28 lines
733 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
date:
<% tp.date.now ("YYYY-MM-DD HH:mm:ss") %>:
tags:
title:
---
# Redis 与 Elasticsearch 的应用
## 数据采集
- 使用 Redis 来缓存从交易所获取的数据,以提高数据处理的效率和实时性。
## 数据清洗和高阶处理
- 使用 Redis 的 Sets、Sorted Sets 等数据结构进行去重和排序操作。
- 利用 Redis Streams 或 Pub/Sub 进行实时数据流的计算和分析。
## 数据存储与索引
- 将经过清洗和处理的市场数据存储到 Elasticsearch以便后续的查询和分析。
## 总结
- **Redis** 作为缓存,确保数据快速处理和后续使用。
- **Elasticsearch** 用于历史数据存储和搜索,便于后续查询、分析和可视化。