Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Markdown writes out high-end sequence diagrams.

Shulou Source: shulou.com Published: 2022-06-03 08:02:17 10月27日 Update

The previous article shared how to use Markdown to write flowcharts, continue to mine the unambiguous features of MDs, and share a timing diagram in md format.

Syntax diagram

Sequence diagram 4 elements title: title participant: define participating members, as definition alias flow arrow->: solid boldface arrow, synchronous invocation-- >: dotted boldface arrow, return result-> >: solid line empty arrow, asynchronous message-- > >: dotted empty arrow, return result comment note over: comment, suspended on member note left of: comment, member left note right of: comment Example on the right side of the member title: Web service cache update sequence chart participant data Chinese as apiparticipant cache as cacheparticipant message queue as mqparticipant data service as srvapi- > cache: read cache cache-- > api: return cache Note over api: if the cache is not read, call the data service api- > > mq: request to update cache mq- > > srv: trigger update cache srv-- > cache: update cache display effect

Md online Editor: https://www.mdeditor.com/

Tags: Cache arrowhead member comment update timing data service solid line message result dashed line boldface ambiguity element alias function right effect title Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information OPPO Reno Shulou Tech Info NVidia