Markdown写出高大上流程图

Markdown是一个轻量级的标记<a href="https://www.fons.com.cn/tag/%e8%af%ad%e8%a8%80" target="_blank">语言,使用普通文本编辑器就能快速编写,不仅显示格式丰富,功能也毫不含糊,分享一个md格式的API请求流程图。

start=>start: API请求
cache=>operation: 读取Redis缓存
cached=>condition: 是否有缓存?
sendMq=>operation: 发送MQ,后台服务更新缓存
info=>operation: 读取信息
setCache=>operation: 保存缓存
end=>end: 返回信息
start->cache->cached
cached(yes)->sendMq
cached(no)->info
info->setCache
setCache->end
sendMq->end

显示效果:
Markdown写出高大上流程图

start=>start: 接收到消息
info=>operation: 读取信息
setCache=>operation: 更新缓存
end=>end: 处理结束
start->info->setCache->end

显示效果:
Markdown写出高大上流程图

md在线编辑器:https://www.mdeditor.com/