[{"data":1,"prerenderedAt":159},["ShallowReactive",2],{"term-r\u002Fround-robin":3,"related-r\u002Fround-robin":148},{"id":4,"title":5,"acronym":6,"body":7,"category":131,"description":132,"difficulty":133,"extension":134,"letter":135,"meta":136,"navigation":83,"path":137,"related":138,"seo":142,"sitemap":143,"stem":146,"subcategory":6,"__hash__":147},"terms\u002Fterms\u002Fr\u002Fround-robin.md","Round Robin",null,{"type":8,"value":9,"toc":125},"minimark",[10,15,19,23,26,30,114,118,121],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Round Robin is the simplest load balancing strategy: send request 1 to server A, request 2 to server B, request 3 to server C, then back to server A, and so on. Everyone gets equal turns, like dealing cards in a card game. Simple but doesn't account for server load.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Round Robin is a load balancing algorithm that cycles through backend servers in order, distributing each new request to the next server in the list. Simple to implement with even distribution, but doesn't account for varying request complexity or server capacity. Weighted Round Robin adds server weights.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-nginx shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Nginx round-robin (default algorithm)\nupstream backend {\n  server app1.example.com;  # Gets request 1, 4, 7...\n  server app2.example.com;  # Gets request 2, 5, 8...\n  server app3.example.com;  # Gets request 3, 6, 9...\n}\n\n# Weighted round-robin\nupstream weighted_backend {\n  server app1.example.com weight=3;  # Gets 60% of traffic\n  server app2.example.com weight=2;  # Gets 40% of traffic\n}\n","nginx","",[38,39,40,48,54,60,66,72,78,85,91,97,103,109],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"# Nginx round-robin (default algorithm)\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"upstream backend {\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"  server app1.example.com;  # Gets request 1, 4, 7...\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"  server app2.example.com;  # Gets request 2, 5, 8...\n",[41,67,69],{"class":43,"line":68},5,[41,70,71],{},"  server app3.example.com;  # Gets request 3, 6, 9...\n",[41,73,75],{"class":43,"line":74},6,[41,76,77],{},"}\n",[41,79,81],{"class":43,"line":80},7,[41,82,84],{"emptyLinePlaceholder":83},true,"\n",[41,86,88],{"class":43,"line":87},8,[41,89,90],{},"# Weighted round-robin\n",[41,92,94],{"class":43,"line":93},9,[41,95,96],{},"upstream weighted_backend {\n",[41,98,100],{"class":43,"line":99},10,[41,101,102],{},"  server app1.example.com weight=3;  # Gets 60% of traffic\n",[41,104,106],{"class":43,"line":105},11,[41,107,108],{},"  server app2.example.com weight=2;  # Gets 40% of traffic\n",[41,110,112],{"class":43,"line":111},12,[41,113,77],{},[11,115,117],{"id":116},"when-youll-hear-this","When You'll Hear This",[16,119,120],{},"\"The load balancer uses round robin to distribute requests evenly.\" \u002F \"Weighted round robin sends more traffic to the bigger server.\"",[122,123,124],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":126},[127,128,129,130],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":116,"depth":50,"text":117},"networking","Round Robin is the simplest load balancing strategy: send request 1 to server A, request 2 to server B, request 3 to server C, then back to server A, and s...","beginner","md","r",{},"\u002Fterms\u002Fr\u002Fround-robin",[139,140,141],"Load Balancer","Sticky Session","Reverse Proxy",{"title":5,"description":132},{"changefreq":144,"priority":145},"weekly",0.7,"terms\u002Fr\u002Fround-robin","7pCQh4kzSYyez41dEjtZnME-CEnA9b5NciDFegUu0PI",[149,153,156],{"title":139,"path":150,"acronym":6,"category":131,"difficulty":151,"description":152},"\u002Fterms\u002Fl\u002Fload-balancer","intermediate","A load balancer is like a traffic cop for servers.",{"title":141,"path":154,"acronym":6,"category":131,"difficulty":151,"description":155},"\u002Fterms\u002Fr\u002Freverse-proxy","A reverse proxy sits in front of your servers and handles incoming traffic on their behalf.",{"title":140,"path":157,"acronym":6,"category":131,"difficulty":151,"description":158},"\u002Fterms\u002Fs\u002Fsticky-session","Sticky sessions make sure a user always gets routed to the SAME server, like getting the same cashier every time you visit a store.",1776518308822]