{"id":2118,"date":"2026-05-26T08:05:43","date_gmt":"2026-05-26T08:05:43","guid":{"rendered":"https:\/\/www.vpascode.com\/fr\/docs\/uncategorized\/mermaid-js-flowchart-syntax-guide\/"},"modified":"2026-05-26T08:05:43","modified_gmt":"2026-05-26T08:05:43","slug":"mermaid-js-flowchart-syntax-guide","status":"publish","type":"ld_docs","link":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/","title":{"rendered":"Guide de syntaxe des diagrammes en flux Mermaid.js"},"content":{"rendered":"<h2>Qu&#8217;est-ce qu&#8217;un diagramme en flux ?<\/h2>\n<p>Un <strong>Diagramme en flux<\/strong>est une carte comportementale fondamentale qui visualise un flux op\u00e9rationnel \u00e9tape par \u00e9tape, une proc\u00e9dure algorithmique ou une logique m\u00e9tier s\u00e9quentielle. En repr\u00e9sentant les actions du syst\u00e8me sous forme de formes g\u00e9om\u00e9triques distinctes et en tra\u00e7ant le flux de contr\u00f4le \u00e0 l\u2019aide de fl\u00e8ches directionnelles, un diagramme en flux permet aux ing\u00e9nieurs logiciels et aux architectes syst\u00e8me de suivre facilement les chemins d\u2019ex\u00e9cution conditionnels, d\u2019isoler les blocs \u00e0 point de d\u00e9faillance unique et d\u2019analyser les boucles logiques du syst\u00e8me avant d\u2019\u00e9crire du code backend r\u00e9el.<\/p>\n<p>Avec <strong>Mermaid.js<\/strong>, vous n\u2019avez pas \u00e0 passer des heures \u00e0 glisser des bo\u00eetes, \u00e0 g\u00e9rer minutieusement les lignes de grille ou \u00e0 recalculer les variables de marge. Le moteur de mise en page calcule dynamiquement les coordonn\u00e9es des n\u0153uds \u00e0 partir de vos scripts d\u00e9claratifs bruts, vous permettant de vous concentrer enti\u00e8rement sur la logique sous-jacente de votre syst\u00e8me.<\/p>\n<h2>Guide de syntaxe principale : \u00e9l\u00e9ments et constructions<\/h2>\n<p>Pour concevoir un diagramme en flux \u00e9l\u00e9gant et facile \u00e0 lire dans Mermaid, vous devez ma\u00eetriser les indicateurs de direction du canevas, les enclosures g\u00e9om\u00e9triques des n\u0153uds, les variables de c\u00e2blage des liens et les sous-graphes structurels.<\/p>\n<h3>1. D\u00e9finition des directions du canevas<\/h3>\n<p>L&#8217;orientation de votre diagramme en flux est d\u00e9termin\u00e9e directement \u00e0 la premi\u00e8re ligne par le couple de mots-cl\u00e9s appliqu\u00e9 au <code>graph<\/code> ou <code>flowchart<\/code>enveloppe. Vous pouvez contr\u00f4ler la direction d&#8217;\u00e9chelle visuelle de votre disposition en utilisant quatre cl\u00e9s d&#8217;orientation principales :<\/p>\n<ul>\n<li><code>flowchart TD<\/code> (Haut vers le bas \/ orientation verticale)<\/li>\n<li><code>flowchart BU<\/code> (Bas vers le haut)<\/li>\n<li><code>flowchart LR<\/code> (Gauche vers la droite \/ orientation horizontale)<\/li>\n<li><code>flowchart RL<\/code> (Droite vers la gauche)<\/li>\n<\/ul>\n<h3>2. Personnalisation de la g\u00e9om\u00e9trie des n\u0153uds (formes)<\/h3>\n<p>Par d\u00e9faut, une d\u00e9claration d&#8217;ID simple s&#8217;affiche sous forme de bo\u00eete rectangulaire nette. Pour rendre vos diagrammes plus faciles \u00e0 lire, utilisez les crochets d&#8217;encadrement sp\u00e9cifiques de Mermaid pour injecter instantan\u00e9ment un contexte visuel dans les diff\u00e9rentes \u00e9tapes du flux de travail. Chaque bloc de d\u00e9finition doit \u00eatre pr\u00e9c\u00e9d\u00e9 d&#8217;un jeton de disposition directionnelle pour \u00eatre correctement analys\u00e9 :<\/p>\n<ul>\n<li><strong>Bords arrondis :<\/strong> <code>id(Texte)<\/code> \u2014 Repr\u00e9sente une \u00e9tape g\u00e9n\u00e9rale du processus.<\/li>\n<li><strong>Forme stade\/capsule :<\/strong> <code>id([Texte])<\/code> \u2014 Marqueur standard pour les jalons de d\u00e9but et de fin des limites.<\/li>\n<li><strong>Sous-programme\/Processus pr\u00e9d\u00e9fini\u00a0:<\/strong> <code>id[[Texte]]<\/code> \u2014 Repr\u00e9sente une routine syst\u00e8me encapsul\u00e9e ou un script de classe externe.<\/li>\n<li><strong>Cylindre\/Base de donn\u00e9es\u00a0:<\/strong> <code>id[(Texte)]<\/code> \u2014 Repr\u00e9sente la persistance de base de donn\u00e9es, les caches ou les entrep\u00f4ts de donn\u00e9es.<\/li>\n<li><strong>Losange\/Point de d\u00e9cision\u00a0:<\/strong> <code>id{Texte}<\/code> \u2014 Repr\u00e9sente des commutateurs conditionnels, des branches if\/else ou des points d&#8217;\u00e9valuation.<\/li>\n<li><strong>Parall\u00e9logramme\u00a0:<\/strong> <code>id[\/Texte\/]<\/code> ou <code>id[Texte]<\/code> \u2014 Affiche des limites inclin\u00e9es pour repr\u00e9senter des entr\u00e9es\/sorties de donn\u00e9es explicites (E\/S).<\/li>\n<\/ul>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguISIC8+Lz8lVSM6GMRWcK1ITS4tyczPi9WEKCksTS2qjE9JitYIyC8uSS9KDQ70UfDMA+rMS07VjIUoKkvMyUxJLEmNT85ITc6u9ixWcCwtycgvyqxKTbGvBQBvyCjM\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguISIC8+Lz8lVSPa5fDK3MSiotQihRz11IrDK5NLSzLz82I1ISoLS1OLKuNTkqI1PPOAuvKSUxUC8otL0otSgwN9NGMhisoSczJTEktS45MzUpOzqx1LS\/KLMosPrzy0wL4WAM3RLWs=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">flowchart TD\r\n    start_node([D\u00e9marrer l'ex\u00e9cution])\r\n    query_db[(Instance PostgreSQL)]\r\n    validate_check{Autoris\u00e9\u00a0?}<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguISIC8+Lz8lVSPa5fDK3MSiotQihRz11IrDK5NLSzLz82I1ISoLS1OLKuNTkqI1PPOAuvKSUxUC8otL0otSgwN9NGMhisoSczJTEktS45MzUpOzqx1LS\/KLMosPrzy0wL4WAM3RLWs=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguISIC8+Lz8lVSM6GMRWcK1ITS4tyczPi9WEKCksTS2qjE9JitYIyC8uSS9KDQ70UfDMA+rMS07VjIUoKkvMyUxJLEmNT85ITc6u9ixWcCwtycgvyqxKTbGvBQBvyCjM\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"jWBAKCL\"><img fetchpriority=\"high\" alt=\"\" class=\"alignnone size-full wp-image-613\" decoding=\"async\" fetchpriority=\"high\" height=\"173\" sizes=\"(max-width: 570px) 100vw, 570px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png 570w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5-300x91.png 300w\" width=\"570\"\/><\/p>\n<h3>3. R\u00e8gles de c\u00e2blage des liens et \u00e9tiquettes int\u00e9gr\u00e9es<\/h3>\n<p>Vous pouvez ajuster vos lignes de connexion pour repr\u00e9senter diff\u00e9rentes relations structurelles et styles de communication. Pour garder vos diagrammes propres, ins\u00e9rez des \u00e9tiquettes descriptives directement sur vos chemins de lien\u00a0:<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp9zL8KwjAYBPC90Hc4Ch2rT1Chf1wcVGjBOU0iCYZ8kH5ahT68sYI4iDfdcPc7O5qkEYHRt2mCmDxHx8IrERQkea8lU4AIgSZMlg1Y3xlODNq9DxWKYoM523WHPY7i4UiobEadJh+wJWat1tX48NIE8nQd4azXv8EaxWoRlz22N+05gs0X2BsrLxjIKa3+SA3K8gU1wbKVwuEUi45W+wR14EpC\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqFkEEKwjAQRfeCd\/gILqsnqKAVFyK60AuEdGwDdaLJtCp4AW9iz5GLGRV0IehsBob3\/4PZVvaoS+UEm2m3gzj9PmZVuOmSkBO0ZaaTsQwvinPlcqiGNEIr5lCTyJMSOgm94mMkyQiXXhZLC0ItpiLM16tl74JJt\/N2LEzBhL01HIkqtDRU\/sy6dDaefysmSAZPR7g2oWXaEQs+6SjKvkSh3SvjPYEYhVP+jyJDmr4M2hmpXXxE3A82tk\/vNTxnnQ==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">flowchart TD\r\n    %% Fl\u00e8che de connexion standard avec \u00e9tiquette de texte\r\n    A --&gt; |\"Charge utile JSON\"| B\r\n\r\n    %% Ligne pointill\u00e9e\/asynchrone avec \u00e9tiquette de texte\r\n    B -.-&gt; |\"\u00c9v\u00e9nement asynchrone\"| C\r\n\r\n    %% Ligne \u00e9paisse en gras avec \u00e9tiquette de texte\r\n    C ==&gt; |\"\u00c9criture critique\"| D<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqFkEEKwjAQRfeCd\/gILqsnqKAVFyK60AuEdGwDdaLJtCp4AW9iz5GLGRV0IehsBob3\/4PZVvaoS+UEm2m3gzj9PmZVuOmSkBO0ZaaTsQwvinPlcqiGNEIr5lCTyJMSOgm94mMkyQiXXhZLC0ItpiLM16tl74JJt\/N2LEzBhL01HIkqtDRU\/sy6dDaefysmSAZPR7g2oWXaEQs+6SjKvkSh3SvjPYEYhVP+jyJDmr4M2hmpXXxE3A82tk\/vNTxnnQ==\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp9zL8KwjAYBPC90Hc4Ch2rT1Chf1wcVGjBOU0iCYZ8kH5ahT68sYI4iDfdcPc7O5qkEYHRt2mCmDxHx8IrERQkea8lU4AIgSZMlg1Y3xlODNq9DxWKYoM523WHPY7i4UiobEadJh+wJWat1tX48NIE8nQd4azXv8EaxWoRlz22N+05gs0X2BsrLxjIKa3+SA3K8gU1wbKVwuEUi45W+wR14EpC\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"igwGmSf\"><img alt=\"\" class=\"alignnone size-full wp-image-614\" decoding=\"async\" height=\"454\" sizes=\"(max-width: 113px) 100vw, 113px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902ac35bd4.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902ac35bd4.png 113w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902ac35bd4-75x300.png 75w\" width=\"113\"\/><\/p>\n<h3>4. Isolation modulaire via des sous-graphes<\/h3>\n<p>Pour \u00e9tablir des p\u00e9rim\u00e8tres de r\u00e9seau clairs, regrouper des microservices ou isoler les responsabilit\u00e9s des \u00e9quipes, regroupez vos \u00e9l\u00e9ments \u00e0 l&#8217;int\u00e9rieur de structures <code>sous-graphe<\/code> enveloppes. Vous d\u00e9finissez un sous-graphe en lui attribuant un ID interne, un titre d&#8217;affichage facultatif, et en le fermant avec un <code>fin<\/code> balise :<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguLSpPSixIIMhcTSkox4IC9aKTg1ubQos6RSwSm\/NC8lsahSKRaiFgTSE0tSyxMrox0DPBXcIexYBV1dO4j+8vyi7NQijZD87NQ8hbDEnMyUxJL8Ik2I9tS8FAChvimf\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolzEEKwjAQheG94B2GrnTRKwiCCO66EDelyNhOm2hIdCZD8Eb2HLmYLfnX732jC6k3yBGup+0GliSoTIxvYz9KgBrNXfTRVmcOPtr8Y4KBQPLcK9uY56orv7UJIyX8tg2KEJNzBMfm0kFdH4qUAr+Idzd0dli2yqv1pBj8viij9X8jwDL9\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">flowchart TD\r\n    sousgraphique auth_sub[\"Fronti\u00e8re de s\u00e9curit\u00e9\"]\r\n        gateway[Passerelle API] --&gt; auth_worker(Validateur de jeton)\r\n    fin<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNolzEEKwjAQheG94B2GrnTRKwiCCO66EDelyNhOm2hIdCZD8Eb2HLmYLfnX732jC6k3yBGup+0GliSoTIxvYz9KgBrNXfTRVmcOPtr8Y4KBQPLcK9uY56orv7UJIyX8tg2KEJNzBMfm0kFdH4qUAr+Idzd0dli2yqv1pBj8viij9X8jwDL9\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNpLy8kvT85ILCpRCHHh5VIAguLSpPSixIIMhcTSkox4IC9aKTg1ubQos6RSwSm\/NC8lsahSKRaiFgTSE0tSyxMrox0DPBXcIexYBV1dO4j+8vyi7NQijZD87NQ8hbDEnMyUxJL8Ik2I9tS8FAChvimf\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"GfaAkHz\"><img alt=\"\" class=\"alignnone size-full wp-image-615\" decoding=\"async\" height=\"140\" sizes=\"(max-width: 457px) 100vw, 457px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902bb7e3ea.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902bb7e3ea.png 457w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902bb7e3ea-300x92.png 300w\" width=\"457\"\/><\/p>\n<h2>Meilleures pratiques pour des diagrammes de flux propres<\/h2>\n<ul>\n<li><strong>D\u00e9connecter les mises en page horizontalement :<\/strong> Pour les pipelines d&#8217;ing\u00e9nierie longs et \u00e0 plusieurs \u00e9tapes, choisissez une <code>flowchart LR<\/code> direction. Cela s&#8217;ajuste beaucoup mieux sur les \u00e9crans standards en paysage que sur une mise en page verticale longue.<\/li>\n<li><strong>Isoler les boucles complexes :<\/strong> Si un flux de travail contient une boucle de r\u00e9p\u00e9tition importante, \u00e9tiquetez clairement le connecteur inverse (par exemple, <code>retry --&gt; |\"Tentative de r\u00e9initialisation\"| start<\/code>) afin d&#8217;\u00e9viter que les lecteurs ne confondent la boucle avec un chemin standard vers l&#8217;avant.<\/li>\n<li><strong>\u00c9viter de m\u00e9langer les types de graphiques :<\/strong> Restez sur le mot-cl\u00e9 moderne <code>flowchart<\/code> plut\u00f4t que l&#8217;ancien <code>graph<\/code> drapeau lors du rendu de cartes complexes. Le moteur <code>flowchart<\/code> utilise un algorithme de mise en page mis \u00e0 jour qui prend en charge des combinaisons avanc\u00e9es de fl\u00e8ches et un routage de chemin plus propre.<\/li>\n<\/ul>\n<h2>Exemples r\u00e9els de diagrammes de flux Mermaid.js<\/h2>\n<h3>Exemple 1 : Maillage d&#8217;ingestion d\u00e9clench\u00e9 par \u00e9v\u00e9nement pour microservices (architecture Gauche-Droite)<\/h3>\n<p>Ce plan fonctionnel mod\u00e9lise un service d&#8217;ingestion de t\u00e9l\u00e9m\u00e9trie web. Il montre comment combiner des entr\u00e9es de donn\u00e9es, des diamants de d\u00e9cision et des formes de base de donn\u00e9es cloud sur une toile horizontale claire.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp1UU1v2zAMvQ\/YfyA6FHCBBW36gQ497NAExbbu0AZuezACQ5HomrAseRJVpx\/775PtuPMO04EAqfceycdC21aWwjH8XH38APHt78MSCzIIqLFGw2CsQg8tcQm4bTRJYnhEWyO7Z\/ClaNAPVDLESfaAm9LaCq7IoVofwGz2Nf40gXOy2eFCNBwcwrc0vYEV\/gro+XA98gdUTxGBy1yWKKvXe6FJCUZIbYXm9wAe4l9UT3rb+26eOvQA3XsDdC73bJskW2FsbOD0aA53puNZRy\/dhP9R6rvCj4c0qrSOGPM4bMAsuwkbTb4EtnAtikrAbVdfr6dzTQi9XGtdhS5vnJXJwhofanSwFFhbs+s\/QfQMtenmdpglKdXopdC4vISFDp7RHeyajaCeEet1kqUxkoluKbiKx+3Wez\/sbaC4nowStgbPzxrBPkWHSI0nHIoTLwrS+uJTURQnUn327KKtXSrnR+e7dNaS4vLiuNlOJUbfR4Ev6lyJdwElT85Oz\/4VmDfbPxln1jw=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp1UttK5EAQfV\/wHxpFNsIOOqui+LAPKrLsLosMgz6EIfR0V0ybTndb3e2MrPsVfkX8jeB\/WUlmND4YyKWoc07V6ZNc24UoOAb2Z7LxhdG1vc3OmzpXRiHT4Jl5eYrSM\/m1qXVTV2CCZ\/weBJPUzC1W9Lppals1dUB1F6mEpdNKqAC+lyStkKTXMC+sLZlsaqHBiKKpZztsNPpBfRdDpmy6e8ZdiAg0mTOEu9g8B2A\/p9PL3dlaqod2PB5DkYkCRPnvimslWx6wWwjW\/O\/h\/fMd19EeN3+1EGbovu94m48MEDMfrEvSCTUjGhI72BuzvwQivkXl230\/E7yevkstkKxndBIR0vQyzrUiLcmNb13lilb8zfOSz2bDHQekTnNhsQTMHFqRUB4VrSGs8baqeICIq0UGqI4l560JhDQ509EHmjtVFJDgGs5Pd1YD16COQZgqSS+0Dd2nMr3Lt39hApXTXEAfPHKn2twlMB8eyIkD9NYYsk7Hs4q77wzOiDzrk608z\/eF\/OYD2hLaUoz3jlblaKFkKE6+u+VQYp3JWuBYHkn+JiDF\/uHB4UeBsVu+Ah7Q+G0=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">flowchart LR\r\n    %% D\u00e9finir les n\u0153uds d'\u00e9l\u00e9ments avec des formes g\u00e9om\u00e9triques explicites\r\n    init([Webhook d\u00e9clench\u00e9]) --&gt; input_io[\/Capturer la requ\u00eate HTTP\/]\r\n    input_io --&gt; auth_check{Valider le jeton}\r\n    \r\n    auth_check --&gt; |\"Jeton non valide\"| err_stop([Retourner 401 Non autoris\u00e9])\r\n    auth_check --&gt; |\"JWT valide\"| write_queue[[Publier dans la file Kafka]]\r\n    \r\n    write_queue --&gt; worker_proc(D\u00e9mon consommateur)\r\n    worker_proc --&gt; db_store[(Cluster TimescaleDB)]\r\n    db_store --&gt; term([Flot termin\u00e9])\r\n\r\n    %% Remplacements rapides de style personnalis\u00e9s\r\n    style auth_check fill:#fff3cd,stroke:#ffc107,stroke-width:2px\r\n    style err_stop fill:#f8d7da,stroke:#dc3545,stroke-width:1px<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp1UttK5EAQfV\/wHxpFNsIOOqui+LAPKrLsLosMgz6EIfR0V0ybTndb3e2MrPsVfkX8jeB\/WUlmND4YyKWoc07V6ZNc24UoOAb2Z7LxhdG1vc3OmzpXRiHT4Jl5eYrSM\/m1qXVTV2CCZ\/weBJPUzC1W9Lppals1dUB1F6mEpdNKqAC+lyStkKTXMC+sLZlsaqHBiKKpZztsNPpBfRdDpmy6e8ZdiAg0mTOEu9g8B2A\/p9PL3dlaqod2PB5DkYkCRPnvimslWx6wWwjW\/O\/h\/fMd19EeN3+1EGbovu94m48MEDMfrEvSCTUjGhI72BuzvwQivkXl230\/E7yevkstkKxndBIR0vQyzrUiLcmNb13lilb8zfOSz2bDHQekTnNhsQTMHFqRUB4VrSGs8baqeICIq0UGqI4l560JhDQ509EHmjtVFJDgGs5Pd1YD16COQZgqSS+0Dd2nMr3Lt39hApXTXEAfPHKn2twlMB8eyIkD9NYYsk7Hs4q77wzOiDzrk608z\/eF\/OYD2hLaUoz3jlblaKFkKE6+u+VQYp3JWuBYHkn+JiDF\/uHB4UeBsVu+Ah7Q+G0=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNp1UU1v2zAMvQ\/YfyA6FHCBBW36gQ497NAExbbu0AZuezACQ5HomrAseRJVpx\/775PtuPMO04EAqfceycdC21aWwjH8XH38APHt78MSCzIIqLFGw2CsQg8tcQm4bTRJYnhEWyO7Z\/ClaNAPVDLESfaAm9LaCq7IoVofwGz2Nf40gXOy2eFCNBwcwrc0vYEV\/gro+XA98gdUTxGBy1yWKKvXe6FJCUZIbYXm9wAe4l9UT3rb+26eOvQA3XsDdC73bJskW2FsbOD0aA53puNZRy\/dhP9R6rvCj4c0qrSOGPM4bMAsuwkbTb4EtnAtikrAbVdfr6dzTQi9XGtdhS5vnJXJwhofanSwFFhbs+s\/QfQMtenmdpglKdXopdC4vISFDp7RHeyajaCeEet1kqUxkoluKbiKx+3Wez\/sbaC4nowStgbPzxrBPkWHSI0nHIoTLwrS+uJTURQnUn327KKtXSrnR+e7dNaS4vLiuNlOJUbfR4Ev6lyJdwElT85Oz\/4VmDfbPxln1jw=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"mpzcybi\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-616\" decoding=\"async\" height=\"181\" loading=\"lazy\" sizes=\"auto, (max-width: 1597px) 100vw, 1597px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26.png 1597w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26-300x34.png 300w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26-1024x116.png 1024w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26-768x87.png 768w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902c872f26-1536x174.png 1536w\" width=\"1597\"\/><\/p>\n<p><strong>Analyse syntaxique :<\/strong> Ce diagramme s&#8217;\u00e9coule de mani\u00e8re fluide de gauche \u00e0 droite. L&#8217;\u00e9tape de validation utilise une forme de losange jaune pour les d\u00e9cisions (<code>auth_check{Valider le jeton}<\/code>), ce qui s\u00e9pare clairement le chemin d&#8217;ex\u00e9cution en deux r\u00e9sultats distincts. Les magasins de donn\u00e9es sont imm\u00e9diatement identifiables gr\u00e2ce \u00e0 leurs cylindres de base de donn\u00e9es personnalis\u00e9s (<code>[(Cluster TimescaleDB)]<\/code>) et leurs entr\u00e9es en parall\u00e9logramme.<\/p>\n<h3>Exemple 2 : Moteur d&#8217;inscription d&#8217;utilisateurs multi-niveaux d&#8217;entreprise (vertical avec sous-graphes imbriqu\u00e9s)<\/h3>\n<p>Ce sch\u00e9ma avanc\u00e9 d&#8217;entreprise d\u00e9crit un pipeline d&#8217;inscription d&#8217;application. Il organise les \u00e9tapes verticalement sur trois sous-graphes structurels distincts pour repr\u00e9senter des couches architecturales diff\u00e9rentes.<\/p>\n<div class=\"vpascode-viewer-container vpascode-fancy-active\">\n<div class=\"vpascode-header\">\n<span class=\"vpascode-lang-label\">Mermaid<\/span><br \/>\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqNkd1qwkAQhe8LvsMQEPRCpC9QSCNthbYEo\/UiSNhsRl2a7KazGzXgw3di1Gp\/oHsRNjNnds58s8zNVq4FOZiOOjfAx1bpikS5hiBXqF0yVUixFxJa\/hNOGQ2zMTyLGslbtCXNEWUZv5hU5Qh+WbLkIrfFNJ5jClHowwMZ7VBnxzTfOjffGkdIGyXx2DkwhPAoHG5FDRNTueu+JZldHcevK6V3MNYr9mlhghskixA2ycWly8qtE7uRPZ8vp0YwN\/SO1P\/bUcivKcu2z64ilBVhBiPhBARM5tpVIZROsjTuzSwS+FKaSjvLflQhqIbRff9CLIVcY6JNhnFvgpmybMzaBnTQZPo\/UXW7MMKl0gjSFEWllWwXU6oScw5bEJIMg+AJbM3GC8ibhdm2nHcFgwF4T9NpGDGsjwqt8zh01+JsVby1f6ja7yFwSO29w45guLkdNrS9\/Rn6ZcEpdqx5Q1LL+jQ313wx+VUf8NjKncCy\/gj8E58B26k=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 8px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<div class=\"vpascode-code-wrapper\">\n            <div class=\"vpascode-viewer-container vpascode-fancy-active\">\r\n                                <div class=\"vpascode-header\">\r\n                    <span class=\"vpascode-lang-label\">Mermaid<\/span>\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqNUttK7DAUfRf8h01BzvgwiD8geDqIPijFmeN5KDJk0j0zG9Ik5FIV\/KDT7+iPnZ22jlVEzEOT7qy1svZlq8yT3AsXYLU4PgJe3kS\/c8LuIVeEOqxXhK7MchPlHuFGB3RbIREK17We70Ugo7PHgZyWsLZ8h92aDSmES2snkCfclFfOMEhX8Bc3sCwux+st6eOjz06W6BqSOFq5NzFgdOyAtCQrFFRsR3iPDpXCqRfrzPNLWRZpY+8NOo9wtyP9DNWvG71z6P3j1HsM+7Vv5Gx8MSk3QlHVZ8l\/HmIgRV4kB\/70G88Fv0WeMzz4zrlarpesjNZdy2K+a2V0xNvUdS1Ir6tNOfst\/Ef8IWXsveSmtoH3P1NPEyEpuGdrbSosZ3k6J7El55ySuceKDuhJCicnsOhaDpADxeKWLCrSfGKyNHUdNcmhHkNCCST78WBI7Esw9y8+dP9qHCR5JGA+h2yBtdCscr1aFcuMQxdDhwYUT8UPUMO3D\/RXr8M8wFlzfpbal70eujglvMVGzkPXOtpyW0CJt4ow871gX7PSKCQOjqVnytis\/7TyDyk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 8px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n                                <div class=\"vpascode-code-wrapper\">\r\n                    <pre class=\"lang-mermaid\"><code class=\"language-mermaid\" data-language=\"mermaid\" class=\"language-mermaid\">flowchart TD\r\n    sousgraph Client_Tier[\"Couche Interface Pr\u00e9sentation\"]\r\n        app[Interface Mobile App]\r\n        web[Frontend Web SPA]\r\n    fin\r\n\r\n    sousgraph Service_Tier[\"Routeur Principal de Passerelle\"]\r\n        proxy[[Proxy Inverse Nginx d'Ingress]]\r\n        auth_svc(Service de validation des utilisateurs)\r\n    fin\r\n\r\n    sousgraph Persistence_Tier[\"Centre de donn\u00e9es s\u00e9curis\u00e9\"]\r\n        main_db[(Base de donn\u00e9es Principale des Comptes Utilisateurs)]\r\n        cache_node[(Cache de Session Redis)]\r\n    fin\r\n\r\n    %% D\u00e9finir les pipelines de communication entre les couches du sous-syst\u00e8me\r\n    app -- \"Demande HTTPS\" --&gt; proxy\r\n    web -- \"Demande HTTPS\" --&gt; proxy\r\n    \r\n    proxy --&gt; |\"Route \/v1\/auth\"| auth_svc\r\n    \r\n    auth_svc --&gt; |\"V\u00e9rifier la Session\"| cache_node\r\n    auth_svc --&gt; |\"Valider le Compte\"| main_db<\/code><\/pre>                <\/div>\r\n                <div class=\"vpascode-actions\">\r\n                    <a href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqNUttK7DAUfRf8h01BzvgwiD8geDqIPijFmeN5KDJk0j0zG9Ik5FIV\/KDT7+iPnZ22jlVEzEOT7qy1svZlq8yT3AsXYLU4PgJe3kS\/c8LuIVeEOqxXhK7MchPlHuFGB3RbIREK17We70Ugo7PHgZyWsLZ8h92aDSmES2snkCfclFfOMEhX8Bc3sCwux+st6eOjz06W6BqSOFq5NzFgdOyAtCQrFFRsR3iPDpXCqRfrzPNLWRZpY+8NOo9wtyP9DNWvG71z6P3j1HsM+7Vv5Gx8MSk3QlHVZ8l\/HmIgRV4kB\/70G88Fv0WeMzz4zrlarpesjNZdy2K+a2V0xNvUdS1Ir6tNOfst\/Ef8IWXsveSmtoH3P1NPEyEpuGdrbSosZ3k6J7El55ySuceKDuhJCicnsOhaDpADxeKWLCrSfGKyNHUdNcmhHkNCCST78WBI7Esw9y8+dP9qHCR5JGA+h2yBtdCscr1aFcuMQxdDhwYUT8UPUMO3D\/RXr8M8wFlzfpbal70eujglvMVGzkPXOtpyW0CJt4ow871gX7PSKCQOjqVnytis\/7TyDyk=\" \r\n                       target=\"_blank\" \r\n                       rel=\"noopener noreferrer\" \r\n                       class=\"vpascode-fancy-btn\">\r\n                        <svg width=\"14\" height=\"14\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" style=\"margin-right: 6px;\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg>\r\n                        <span>Edit Mermaid in VPasCode<\/span>\r\n                    <\/a>\r\n                <\/div>\r\n            <\/div>\r\n            \n<\/p><\/div>\n<div class=\"vpascode-actions\">\n<a class=\"vpascode-fancy-btn\" href=\"https:\/\/www.vpascode.com\/editor\/#mermaid:eNqNkd1qwkAQhe8LvsMQEPRCpC9QSCNthbYEo\/UiSNhsRl2a7KazGzXgw3di1Gp\/oHsRNjNnds58s8zNVq4FOZiOOjfAx1bpikS5hiBXqF0yVUixFxJa\/hNOGQ2zMTyLGslbtCXNEWUZv5hU5Qh+WbLkIrfFNJ5jClHowwMZ7VBnxzTfOjffGkdIGyXx2DkwhPAoHG5FDRNTueu+JZldHcevK6V3MNYr9mlhghskixA2ycWly8qtE7uRPZ8vp0YwN\/SO1P\/bUcivKcu2z64ilBVhBiPhBARM5tpVIZROsjTuzSwS+FKaSjvLflQhqIbRff9CLIVcY6JNhnFvgpmybMzaBnTQZPo\/UXW7MMKl0gjSFEWllWwXU6oScw5bEJIMg+AJbM3GC8ibhdm2nHcFgwF4T9NpGDGsjwqt8zh01+JsVby1f6ja7yFwSO29w45guLkdNrS9\/Rn6ZcEpdqx5Q1LL+jQ313wx+VUf8NjKncCy\/gj8E58B26k=\" rel=\"noopener noreferrer\" target=\"_blank\"><br \/>\n<svg fill=\"none\" height=\"14\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2.5\" style=\"margin-right: 6px;\" viewbox=\"0 0 24 24\" width=\"14\"><path d=\"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7\"><\/path><path d=\"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z\"><\/path><\/svg><br \/>\n<span>Modifier Mermaid dans VPasCode<\/span><br \/>\n<\/a>\n<\/div>\n<\/div>\n<p id=\"pSGGZOL\"><img loading=\"lazy\" alt=\"\" class=\"alignnone size-full wp-image-617\" decoding=\"async\" height=\"644\" loading=\"lazy\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" src=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902d48117d.png\" srcset=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902d48117d.png 511w, https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902d48117d-238x300.png 238w\" width=\"511\"\/><\/p>\n<p><strong>Analyse syntaxique :<\/strong> L&#8217;indicateur d&#8217;orientation du haut vers le bas (<code>flowchart TD<\/code>), ce qui force le moteur de mise en page \u00e0 empiler les composants de mani\u00e8re propre du haut vers le bas. Les blocs limites regroupent les composants li\u00e9s en couches distinctes (Client, Service et Persistence), donnant \u00e0 l&#8217;architecture globale un aspect intuitif et fortement structur\u00e9.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Qu&#8217;est-ce qu&#8217;un diagramme en flux ? Un Diagramme en fluxest une carte comportementale fondamentale qui visualise un flux op\u00e9rationnel \u00e9tape par \u00e9tape, une proc\u00e9dure algorithmique ou une logique m\u00e9tier s\u00e9quentielle. En repr\u00e9sentant les actions du syst\u00e8me sous forme de formes&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":1,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}}},"ld_collection":[14],"class_list":["post-2118","ld_docs","type-ld_docs","status-publish","hentry","ld_collection-vpascode-docs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide<\/title>\n<meta name=\"description\" content=\"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide\" \/>\n<meta property=\"og:description\" content=\"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"VPasCode\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/\",\"name\":\"Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1902a0955b5.png\",\"datePublished\":\"2026-05-26T08:05:43+00:00\",\"description\":\"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1902a0955b5.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/img_6a1902a0955b5.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/vpascode-docs\\\/mermaid-js-flowchart-syntax-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lean Docs\",\"item\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/docs\\\/%ld_collection%\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Guide de syntaxe des diagrammes en flux Mermaid.js\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"name\":\"VPasCode\",\"description\":\"by Visual Paradigm\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#organization\",\"name\":\"VPasCode\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"contentUrl\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/wp-content\\\/uploads\\\/sites\\\/6\\\/2026\\\/06\\\/cropped-vp-online-logo-v1.png\",\"width\":128,\"height\":138,\"caption\":\"VPasCode\"},\"image\":{\"@id\":\"https:\\\/\\\/www.vpascode.com\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide","description":"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/","og_locale":"fr_FR","og_type":"article","og_title":"Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide","og_description":"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.","og_url":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/","og_site_name":"VPasCode","og_image":[{"url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/","url":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/","name":"Mermaid Flowchart Syntax | VPasCode Text to Diagram Guide","isPartOf":{"@id":"https:\/\/www.vpascode.com\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png","datePublished":"2026-05-26T08:05:43+00:00","description":"Create logic decision flowcharts with Mermaid.js in VPasCode, a web-based diagram-as-code tool for software developers.","breadcrumb":{"@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/"]}]},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/#primaryimage","url":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png","contentUrl":"https:\/\/www.vpascode.com\/wp-content\/uploads\/2026\/05\/img_6a1902a0955b5.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vpascode.com\/fr\/docs\/vpascode-docs\/mermaid-js-flowchart-syntax-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vpascode.com\/fr\/"},{"@type":"ListItem","position":2,"name":"Lean Docs","item":"https:\/\/www.vpascode.com\/fr\/docs\/%ld_collection%\/"},{"@type":"ListItem","position":3,"name":"Guide de syntaxe des diagrammes en flux Mermaid.js"}]},{"@type":"WebSite","@id":"https:\/\/www.vpascode.com\/fr\/#website","url":"https:\/\/www.vpascode.com\/fr\/","name":"VPasCode","description":"by Visual Paradigm","publisher":{"@id":"https:\/\/www.vpascode.com\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vpascode.com\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/www.vpascode.com\/fr\/#organization","name":"VPasCode","url":"https:\/\/www.vpascode.com\/fr\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","contentUrl":"https:\/\/www.vpascode.com\/fr\/wp-content\/uploads\/sites\/6\/2026\/06\/cropped-vp-online-logo-v1.png","width":128,"height":138,"caption":"VPasCode"},"image":{"@id":"https:\/\/www.vpascode.com\/fr\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs\/2118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_docs"}],"about":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/types\/ld_docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/users\/4"}],"wp:attachment":[{"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/media?parent=2118"}],"wp:term":[{"taxonomy":"ld_collection","embeddable":true,"href":"https:\/\/www.vpascode.com\/fr\/wp-json\/wp\/v2\/ld_collection?post=2118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}