Skip to content

Commit 2406d89

Browse files
committed
docs: update flow
Signed-off-by: Bo-Yi.Wu <[email protected]>
1 parent 5924efb commit 2406d89

File tree

2 files changed

+88
-361
lines changed

2 files changed

+88
-361
lines changed

images/flow-03.d2

+8-281
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ database: Ring\nBuffer {
172172
}
173173
}
174174

175-
176-
177175
other_store: "" {
178176
style: {
179177
opacity: 0
@@ -186,6 +184,7 @@ other_store: "" {
186184
bold: true
187185
font-size: 32
188186
font: mono
187+
opacity: 0.7
189188
}
190189
}
191190

@@ -206,12 +205,11 @@ other_store: "" {
206205
bold: true
207206
font-size: 32
208207
font: mono
208+
opacity: 0.7
209209
}
210210
}
211211
}
212212

213-
214-
215213
container_consumer_01: Worker01 {
216214
direction: right
217215
style: {
@@ -258,15 +256,15 @@ container_consumer_01: Worker01 {
258256
}
259257
}
260258

261-
queue.consumer -> task01 : Handle Task {
259+
queue.consumer -> task01: Handle Task {
262260
style: {
263261
animated: true
264262
bold: true
265263
font-size: 28
266264
}
267265
}
268266

269-
queue.consumer -> task02 : Handle Task {
267+
queue.consumer -> task02: Handle Task {
270268
style: {
271269
bold: true
272270
font-size: 28
@@ -358,31 +356,31 @@ container_consumer_02: Worker02 {
358356
}
359357
}
360358

361-
queue01.consumer -> task01 : Handle Task {
359+
queue01.consumer -> task01: Handle Task {
362360
style: {
363361
animated: true
364362
bold: true
365363
font-size: 28
366364
}
367365
}
368366

369-
queue01.consumer -> task02 : Handle Task {
367+
queue01.consumer -> task02: Handle Task {
370368
style: {
371369
animated: true
372370
bold: true
373371
font-size: 28
374372
}
375373
}
376374

377-
queue02.consumer -> task03 : Handle Task {
375+
queue02.consumer -> task03: Handle Task {
378376
style: {
379377
animated: true
380378
bold: true
381379
font-size: 28
382380
}
383381
}
384382

385-
queue02.consumer -> task04 : Handle Task {
383+
queue02.consumer -> task04: Handle Task {
386384
style: {
387385
animated: true
388386
bold: true
@@ -494,274 +492,3 @@ other_store.nats -> container_consumer_02.queue02.consumer: "" {
494492
opacity: 0.3
495493
}
496494
}
497-
498-
# container: Application {
499-
# direction: right
500-
# style: {
501-
# bold: true
502-
# font-size: 28
503-
# }
504-
# icon: https://icons.terrastruct.com/dev%2Fgo.svg
505-
506-
# task01: {
507-
# icon: https://icons.terrastruct.com/essentials%2F092-graph%20bar.svg
508-
# style: {
509-
# multiple: true
510-
# bold: true
511-
# font-size: 32
512-
# }
513-
# }
514-
515-
# task02: {
516-
# icon: https://icons.terrastruct.com/essentials%2F095-download.svg
517-
# style: {
518-
# multiple: true
519-
# bold: true
520-
# font-size: 32
521-
# }
522-
# }
523-
524-
# task03: {
525-
# icon: https://icons.terrastruct.com/essentials%2F195-attachment.svg
526-
# style: {
527-
# multiple: true
528-
# bold: true
529-
# font-size: 32
530-
# }
531-
# }
532-
533-
# task04: {
534-
# icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
535-
# style: {
536-
# multiple: true
537-
# bold: true
538-
# font-size: 32
539-
# }
540-
# }
541-
542-
# queue: Queue Library {
543-
# icon: https://icons.terrastruct.com/dev%2Fgo.svg
544-
# style: {
545-
# bold: true
546-
# font-size: 32
547-
# fill: honeydew
548-
# }
549-
# producer01: Producer01 {
550-
# style: {
551-
# bold: true
552-
# font-size: 32
553-
# fill: PapayaWhip
554-
# fill-pattern: grain
555-
# border-radius: 8
556-
# font: mono
557-
# }
558-
# }
559-
560-
# producer02: Producer02 {
561-
# style: {
562-
# bold: true
563-
# font-size: 32
564-
# fill: PapayaWhip
565-
# fill-pattern: grain
566-
# border-radius: 8
567-
# font: mono
568-
# }
569-
# }
570-
571-
# producer03: Producer03 {
572-
# style: {
573-
# bold: true
574-
# font-size: 32
575-
# fill: PapayaWhip
576-
# fill-pattern: grain
577-
# border-radius: 8
578-
# font: mono
579-
# }
580-
# }
581-
582-
# producer04: Producer04 {
583-
# style: {
584-
# bold: true
585-
# font-size: 32
586-
# fill: PapayaWhip
587-
# fill-pattern: grain
588-
# border-radius: 8
589-
# font: mono
590-
# }
591-
# }
592-
593-
# consumer01: Consumer01 {
594-
# style: {
595-
# bold: true
596-
# font-size: 32
597-
# fill: PapayaWhip
598-
# fill-pattern: grain
599-
# border-radius: 8
600-
# font: mono
601-
# }
602-
# }
603-
604-
# consumer02: Consumer02 {
605-
# style: {
606-
# bold: true
607-
# font-size: 32
608-
# fill: PapayaWhip
609-
# fill-pattern: grain
610-
# border-radius: 8
611-
# font: mono
612-
# }
613-
# }
614-
615-
# consumer03: Consumer03 {
616-
# style: {
617-
# bold: true
618-
# font-size: 32
619-
# fill: PapayaWhip
620-
# fill-pattern: grain
621-
# border-radius: 8
622-
# font: mono
623-
# }
624-
# }
625-
626-
# consumer04: Consumer04 {
627-
# style: {
628-
# bold: true
629-
# font-size: 32
630-
# fill: PapayaWhip
631-
# fill-pattern: grain
632-
# border-radius: 8
633-
# font: mono
634-
# }
635-
# }
636-
637-
# database: Ring\nBuffer {
638-
# shape: cylinder
639-
# style: {
640-
# bold: true
641-
# font-size: 32
642-
# fill-pattern: lines
643-
# font: mono
644-
# }
645-
# }
646-
647-
# redis: Redis {
648-
# icon: https://icons.terrastruct.com/dev%2Fredis.svg
649-
# shape: image
650-
# style: {
651-
# bold: true
652-
# font-size: 32
653-
# font: mono
654-
# }
655-
# }
656-
657-
# rabbitmq: RabbotMQ {
658-
# icon: ./rabbitmq.svg
659-
# shape: image
660-
# style: {
661-
# bold: true
662-
# font-size: 32
663-
# font: mono
664-
# }
665-
# }
666-
667-
# nats: NATS {
668-
# icon: ./nats.svg
669-
# shape: image
670-
# style: {
671-
# bold: true
672-
# font-size: 32
673-
# font: mono
674-
# }
675-
# }
676-
677-
# producer01 -> database
678-
# producer02 -> redis
679-
# producer03 -> rabbitmq
680-
# producer04 -> nats
681-
# database -> consumer01
682-
# redis -> consumer02
683-
# rabbitmq -> consumer03
684-
# nats -> consumer04
685-
# }
686-
687-
# worker01: {
688-
# icon: https://icons.terrastruct.com/essentials%2F092-graph%20bar.svg
689-
# style: {
690-
# bold: true
691-
# font-size: 32
692-
# }
693-
# }
694-
695-
# worker02: {
696-
# icon: https://icons.terrastruct.com/essentials%2F095-download.svg
697-
# style: {
698-
# bold: true
699-
# font-size: 32
700-
# }
701-
# }
702-
703-
# worker03: {
704-
# icon: https://icons.terrastruct.com/essentials%2F092-graph%20bar.svg
705-
# style: {
706-
# bold: true
707-
# font-size: 32
708-
# }
709-
# }
710-
711-
# worker04: {
712-
# icon: https://icons.terrastruct.com/essentials%2F213-alarm.svg
713-
# style: {
714-
# bold: true
715-
# font-size: 32
716-
# }
717-
# }
718-
719-
# task01 -> queue.producer01: Enqueue Task {
720-
# style: {
721-
# bold: true
722-
# font-size: 28
723-
# }
724-
# }
725-
# task02 -> queue.producer02: Enqueue Task {
726-
# style: {
727-
# bold: true
728-
# font-size: 28
729-
# }
730-
# }
731-
# task03 -> queue.producer03: Enqueue Task {
732-
# style: {
733-
# bold: true
734-
# font-size: 28
735-
# }
736-
# }
737-
# task04 -> queue.producer04: Enqueue Task {
738-
# style: {
739-
# bold: true
740-
# font-size: 28
741-
# }
742-
# }
743-
# queue.consumer01 -> worker01: dispatch task {
744-
# style: {
745-
# bold: true
746-
# font-size: 28
747-
# }
748-
# }
749-
# queue.consumer02 -> worker02: dispatch task {
750-
# style: {
751-
# bold: true
752-
# font-size: 28
753-
# }
754-
# }
755-
# queue.consumer03 -> worker03: dispatch task {
756-
# style: {
757-
# bold: true
758-
# font-size: 28
759-
# }
760-
# }
761-
# queue.consumer04 -> worker04: dispatch task {
762-
# style: {
763-
# bold: true
764-
# font-size: 28
765-
# }
766-
# }
767-
# }

0 commit comments

Comments
 (0)