Markdown是一个轻量级的标记语言,使用普通文本编辑器就能快速编写,不只显示格式丰富,功能也绝不含糊,分享一个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
显示效果:编辑器
start=>start: 接收到消息 info=>operation: 读取信息 setCache=>operation: 更新缓存 end=>end: 处理结束 start->info->setCache->end
显示效果:ide
md在线编辑器:https://www.mdeditor.com/code