docs.waku.org/assets/js/e63bb37c.f70493e7.js
2025-10-03 05:55:52 +00:00

1 line
3.5 KiB
JavaScript

"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[2166],{28453:(e,n,t)=>{t.d(n,{R:()=>o,x:()=>c});var s=t(96540);const r={},i=s.createContext(r);function o(e){const n=s.useContext(i);return s.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),s.createElement(i.Provider,{value:n},e.children)}},66300:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>p});const s=JSON.parse('{"id":"learn/concepts/static-peers","title":"Static Peers","description":"Waku applications have the flexibility to embed bootstrap node addresses directly into their codebase. Developers can either use static peers operated by Status or run a node.","source":"@site/docs/learn/concepts/static-peers.md","sourceDirName":"learn/concepts","slug":"/learn/concepts/static-peers","permalink":"/learn/concepts/static-peers","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/learn/concepts/static-peers.md","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"Static Peers","hide_table_of_contents":true,"displayed_sidebar":"learn"},"sidebar":"learn","previous":{"title":"Peer Discovery","permalink":"/learn/concepts/peer-discovery"},"next":{"title":"DNS Discovery","permalink":"/learn/concepts/dns-discovery"}}');var r=t(74848),i=t(28453);function o(e){const n={mermaid:"mermaid",p:"p",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.mermaid,{value:"sequenceDiagram\nAlice->>Bob: Connect to Bob (static peer details)\nAlice->>Carol: Connect to Carol (static peer details)"}),"\n",(0,r.jsx)(n.p,{children:"Alice establishes connections with Bob and Carol using their node details, which are predefined (hard-coded) into Alice's node."})]})}function c(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}const a={title:"Static Peers",hide_table_of_contents:!0,displayed_sidebar:"learn"},l=void 0,d={},p=[{value:"Pros",id:"pros",level:4},{value:"Cons",id:"cons",level:4},{value:"Overview",id:"overview",level:2}];function u(e){const n={a:"a",h2:"h2",h4:"h4",li:"li",p:"p",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["Waku applications have the flexibility to embed bootstrap node addresses directly into their codebase. Developers can either use static peers operated by Status or ",(0,r.jsx)(n.a,{href:"/run-node",children:"run a node"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"pros",children:"Pros"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Low latency."}),"\n",(0,r.jsx)(n.li,{children:"Low resource requirements."}),"\n"]}),"\n",(0,r.jsx)(n.h4,{id:"cons",children:"Cons"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Vulnerable to censorship: Node IPs can be blocked or restricted."}),"\n",(0,r.jsx)(n.li,{children:"Limited scalability: The number of nodes is fixed and cannot easily be expanded."}),"\n",(0,r.jsx)(n.li,{children:"Maintenance challenges: Updating the node list requires modifying the code, which can be cumbersome and involves releasing and deploying."}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"overview",children:"Overview"}),"\n","\n",(0,r.jsx)(c,{})]})}function h(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(u,{...e})}):u(e)}}}]);