[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"academy-blogs-en-1-1-all-js2go-ep43-rate-limiting-throttling-go-nodejs-en-all--*":3,"academy-blog-translations-wwe3lx7mcx6mdo4":80},{"data":4,"page":79,"perPage":79,"totalItems":79,"totalPages":79},[5],{"alt":6,"collectionId":7,"collectionName":8,"content":9,"cover_image":10,"cover_image_path":11,"created":12,"created_by":13,"expand":14,"id":74,"keywords":75,"locale":49,"published_at":76,"scheduled_at":13,"school_blog":71,"short_description":77,"status":69,"title":6,"updated":78,"updated_by":13,"slug":72,"views":73},"JS2GO EP.43 Rate Limiting and Throttling in Go and Node.js","sclblg987654321","school_blog_translations","\u003Cp>Ensure system stability, prevent DDoS, and keep your API healthy even under tens of thousands of requests per second.\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Rate Limiting is a core technique that tells your system: 👉 “How many requests can one user send within a specific timeframe?” It helps prevent your backend from being overwhelmed or exploited.\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Rate Limiting protects you from:\u003C\u002Fp>\u003Cul>\u003Cli>API crashes caused by excessive traffic\u003C\u002Fli>\u003Cli>Hacker brute-force login attempts\u003C\u002Fli>\u003Cli>Bot spam &amp; automated scripts\u003C\u002Fli>\u003Cli>Backend overload (DB\u002FCache\u002FMicroservices)\u003C\u002Fli>\u003Cli>Unnecessary server cost spikes\u003C\u002Fli>\u003Cli>Degraded Quality of Service (QoS)\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>In this EP, you will learn Production-grade Rate Limiting Patterns for both Go and Node.js — with code that is nearly drop-in ready ✔\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ 1) Why Rate Limiting is Essential in Production\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>If your system does NOT implement rate limits → It will fail under pressure.\u003C\u002Fp>\u003Cfigure class=\"table\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Problem\u003C\u002Fth>\u003Cth>Impact\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>User accidentally triggers thousands of requests (infinite loop)\u003C\u002Ftd>\u003Ctd>API becomes unresponsive\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Bots sending requests repeatedly\u003C\u002Ftd>\u003Ctd>CPU spikes to 100%\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Hackers brute-force login\u003C\u002Ftd>\u003Ctd>Security breach\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>API Gateway overloaded\u003C\u002Ftd>\u003Ctd>Latency skyrockets\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>DB flooded with too many queries\u003C\u002Ftd>\u003Ctd>System-wide failure\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Microservices calling each other without limits\u003C\u002Ftd>\u003Ctd>Cascade failure\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Ffigure>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>👉 Rate Limiting = Safety Shield of your API\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ 2) Three Production-Proven Techniques\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🔶 Token Bucket (Most Popular)\u003C\u002Fh3>\u003Ch4>Concept:\u003C\u002Fh4>\u003Cul>\u003Cli>A bucket contains tokens.\u003C\u002Fli>\u003Cli>Tokens refill over time.\u003C\u002Fli>\u003Cli>Each request consumes 1 token.\u003C\u002Fli>\u003Cli>If empty → request is blocked or delayed.\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Best for:\u003C\u002Fh4>\u003Cul>\u003Cli>Burst traffic\u003C\u002Fli>\u003Cli>Public APIs\u003C\u002Fli>\u003Cli>Microservices communication\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Why it’s great:\u003C\u002Fh4>\u003Cp>✔ Allows bursts\u003Cbr>✔ Simple &amp; efficient\u003Cbr>✔ Works well for distributed rate limiting\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🔶 Leaky Bucket\u003C\u002Fh3>\u003Ch4>Concept:\u003C\u002Fh4>\u003Cp>Requests enter the bucket at any speed, but exit at a fixed rate — ensuring stable throughput.\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Best for:\u003C\u002Fh4>\u003Cul>\u003Cli>Logging systems\u003C\u002Fli>\u003Cli>Streaming workloads\u003C\u002Fli>\u003Cli>Background job queues\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Benefits:\u003C\u002Fh4>\u003Cp>✔ Smooth &amp; predictable traffic\u003Cbr>✔ Protects downstream services\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🔶 Sliding Window\u003C\u002Fh3>\u003Ch4>Concept:\u003C\u002Fh4>\u003Cp>Track requests in the most recent time window (e.g., last 1 minute).\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Best for:\u003C\u002Fh4>\u003Cul>\u003Cli>Login systems\u003C\u002Fli>\u003Cli>Anti brute-force protection\u003C\u002Fli>\u003Cli>Public APIs requiring precision\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch4>Benefits:\u003C\u002Fh4>\u003Cp>✔ More accurate than fixed windows\u003Cbr>✔ Reduces request spikes\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ 3) Production-Ready Go (Golang) Implementation\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🟦 Token Bucket Middleware (Go)\u003C\u002Fh3>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext language-go\">package main\n\nimport (\n\t\"net\u002Fhttp\"\n\t\"sync\"\n\t\"time\"\n)\n\ntype TokenBucket struct {\n\ttokens     float64\n\tcapacity   float64\n\tfillRate   float64 \u002F\u002F token per second\n\tlastFilled time.Time\n\tmu         sync.Mutex\n}\n\nfunc NewTokenBucket(capacity, fillRate float64) *TokenBucket {\n\treturn &amp;TokenBucket{\n\t\ttokens:     capacity,\n\t\tcapacity:   capacity,\n\t\tfillRate:   fillRate,\n\t\tlastFilled: time.Now(),\n\t}\n}\n\nfunc (tb *TokenBucket) Allow() bool {\n\ttb.mu.Lock()\n\tdefer tb.mu.Unlock()\n\n\tnow := time.Now()\n\telapsed := now.Sub(tb.lastFilled).Seconds()\n\ttb.tokens = tb.tokens + elapsed*tb.fillRate\n\n\tif tb.tokens &gt; tb.capacity {\n\t\ttb.tokens = tb.capacity\n\t}\n\n\ttb.lastFilled = now\n\n\tif tb.tokens &gt;= 1 {\n\t\ttb.tokens -= 1\n\t\treturn true\n\t}\n\treturn false\n}\n\nfunc RateLimit(tb *TokenBucket) func(http.Handler) http.Handler {\n\treturn func(next http.Handler) http.Handler {\n\t\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\t\tif !tb.Allow() {\n\t\t\t\thttp.Error(w, \"Too Many Requests\", http.StatusTooManyRequests)\n\t\t\t\treturn\n\t\t\t}\n\t\t\tnext.ServeHTTP(w, r)\n\t\t})\n\t}\n}\n\nfunc main() {\n\ttb := NewTokenBucket(10, 5) \u002F\u002F capacity=10, fillRate=5 tokens\u002Fs\n\n\tmux := http.NewServeMux()\n\tmux.HandleFunc(\"\u002Fapi\", func(w http.ResponseWriter, r *http.Request) {\n\t\tw.Write([]byte(\"OK\"))\n\t})\n\n\thttp.ListenAndServe(\":8080\", RateLimit(tb)(mux))\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>This implementation:\u003C\u002Fp>\u003Cp>✔ Supports burst traffic\u003Cbr>✔ Thread-safe with mutex\u003Cbr>✔ Middleware-ready\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🟦 Sliding Window (Go)\u003C\u002Fh3>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext language-go\">var (\n\trequests = make(map[string][]time.Time)\n\tmu       sync.Mutex\n\tlimit    = 5\n\twindow   = 10 * time.Second\n)\n\nfunc SlidingWindow(next http.Handler) http.Handler {\n\treturn http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {\n\t\tip := r.RemoteAddr\n\t\tnow := time.Now()\n\n\t\tmu.Lock()\n\t\thistory := requests[ip]\n\n\t\t\u002F\u002F keep only valid timestamps\n\t\tvalid := history[:0]\n\t\tfor _, t := range history {\n\t\t\tif now.Sub(t) &lt;= window {\n\t\t\t\tvalid = append(valid, t)\n\t\t\t}\n\t\t}\n\n\t\tif len(valid) &gt;= limit {\n\t\t\tmu.Unlock()\n\t\t\thttp.Error(w, \"Too Many Requests\", http.StatusTooManyRequests)\n\t\t\treturn\n\t\t}\n\n\t\trequests[ip] = append(valid, now)\n\t\tmu.Unlock()\n\n\t\tnext.ServeHTTP(w, r)\n\t})\n}\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>This pattern provides:\u003C\u002Fp>\u003Cp>✔ High accuracy\u003Cbr>✔ Great for security endpoints\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ 4) Production-Ready Node.js Implementation\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🟧 Token Bucket (Node.js)\u003C\u002Fh3>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext language-js\">class TokenBucket {\n  constructor(capacity, fillRate) {\n    this.capacity = capacity;\n    this.tokens = capacity;\n    this.fillRate = fillRate;\n    this.lastRefill = Date.now();\n  }\n\n  allow() {\n    const now = Date.now();\n    const elapsed = (now - this.lastRefill) \u002F 1000;\n\n    this.tokens = Math.min(\n      this.capacity,\n      this.tokens + elapsed * this.fillRate\n    );\n\n    this.lastRefill = now;\n\n    if (this.tokens &gt;= 1) {\n      this.tokens -= 1;\n      return true;\n    }\n    return false;\n  }\n}\n\nfunction rateLimit(bucket) {\n  return (req, res, next) =&gt; {\n    if (!bucket.allow()) {\n      return res.status(429).send(\"Too Many Requests\");\n    }\n    next();\n  };\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Works great for:\u003C\u002Fp>\u003Cp>✔ Microservices\u003Cbr>✔ CPU-sensitive endpoints\u003Cbr>✔ API Gateway layers\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>🟧 Sliding Window (Node.js)\u003C\u002Fh3>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext language-js\">const windowMs = 10 * 1000;\nconst limit = 5;\nconst history = new Map();\n\nfunction slidingWindow(req, res, next) {\n  const ip = req.ip;\n  const now = Date.now();\n\n  const reqLog = history.get(ip) || [];\n  const filtered = reqLog.filter(t =&gt; now - t &lt;= windowMs);\n\n  if (filtered.length &gt;= limit) {\n    return res.status(429).send(\"Too Many Requests\");\n  }\n\n  filtered.push(now);\n  history.set(ip, filtered);\n\n  next();\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Perfect for:\u003C\u002Fp>\u003Cp>✔ Login rate limits\u003Cbr>✔ Fraud prevention\u003Cbr>✔ Abuse detection\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ 5) Production Tips (VERY Important)\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>✔ Use Redis for Multi-Instance Environments\u003C\u002Fp>\u003Cp>If you run multiple pods\u002Fcontainers, in-memory counters won't sync.\u003C\u002Fp>\u003Cp>✔ Apply Multi-Layer Rate Limiting\u003C\u002Fp>\u003Cul>\u003Cli>API Gateway (Cloudflare, Nginx, Traefik)\u003C\u002Fli>\u003Cli>Load Balancer\u003C\u002Fli>\u003Cli>Application-level\u003C\u002Fli>\u003C\u002Ful>\u003Cp>✔ Sliding Window → Best for Public APIs\u003C\u002Fp>\u003Cp>Accurate and security-friendly.\u003C\u002Fp>\u003Cp>✔ Token Bucket → Best for Microservices\u003C\u002Fp>\u003Cp>Burst-friendly and efficient.\u003C\u002Fp>\u003Cp>✔ Use exponential backoff for retries\u003C\u002Fp>\u003Cp>Protects system stability.\u003C\u002Fp>\u003Cp>✔ Log &amp; Monitor\u003C\u002Fp>\u003Cp>Expose metrics for:\u003C\u002Fp>\u003Cul>\u003Cli>Rejected requests\u003C\u002Fli>\u003Cli>Token usage\u003C\u002Fli>\u003Cli>CPU\u002FMemory load\u003C\u002Fli>\u003C\u002Ful>\u003Cp>✔ Return clear error responses\u003C\u002Fp>\u003Cpre>\u003Ccode class=\"language-plaintext language-json\">{\n  \"error\": \"Too Many Requests\",\n  \"retry_after\": 3\n}\n\u003C\u002Fcode>\u003C\u002Fpre>\u003Cp>&nbsp;\u003C\u002Fp>\u003Chr>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>⭐ Final Summary\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Rate Limiting is the core defensive layer of any API in production.\u003Cbr>It protects your system from:\u003C\u002Fp>\u003Cul>\u003Cli>Traffic spikes\u003C\u002Fli>\u003Cli>Bots and attackers\u003C\u002Fli>\u003Cli>Resource overload\u003C\u002Fli>\u003Cli>Cost escalation\u003C\u002Fli>\u003Cli>Unstable user experience\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>Both Go and Node.js handle Rate Limiting effectively but with different strengths\u003C\u002Fp>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch2>🔵 NEXT EP JS2GO EP.44\u003C\u002Fh2>\u003Cp>&nbsp;\u003C\u002Fp>\u003Ch3>Database Connections: SQL &amp; NoSQL in Go and JavaScript\u003C\u002Fh3>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cp>You will learn:\u003C\u002Fp>\u003Cul>\u003Cli>PostgreSQL \u002F MySQL \u002F MongoDB \u002F Redis connections\u003C\u002Fli>\u003Cli>Example code (Go Fiber + Node.js Express)\u003C\u002Fli>\u003Cli>Recommended ORM\u002FQuery Builders\u003C\u002Fli>\u003Cli>Connection Pool Best Practices\u003C\u002Fli>\u003Cli>Production Do’s &amp; Don'ts\u003C\u002Fli>\u003C\u002Ful>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cdiv class=\"raw-html-embed\">\u003Cdiv style=\"margin:0 0 6px 0; font-weight:700;\">Read more:\u003C\u002Fdiv>\n\u003Cul style=\"list-style:none; padding:0; margin:0; line-height:1.4;\">\n  \u003Cli style=\"margin:0;\">\u003Ca href=\"\u002Fen\u002Fblogs\u002Fcategories\u002FGolang\" title=\"Golang The Series\">Golang The Series\u003C\u002Fa>\u003C\u002Fli>\n  \u003Cli style=\"margin:0;\">\u003Ca href=\"\u002Fen\u002Fblogs\u002Fcategories\u002FJS2GO\" title=\"JS2GO\">JS2GO\u003C\u002Fa>\u003C\u002Fli>\n  \u003Cli style=\"margin:0;\">\u003Ca href=\"\u002Fen\u002Fblogs\u002Fcategories\u002FTailwind%20CSS\" title=\"Tailwind CSS\">Tailwind CSS\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\u003C\u002Fdiv>\u003Cp>&nbsp;\u003C\u002Fp>\u003Cdiv class=\"raw-html-embed\">\n  \u003Cp style=\"margin:0 0 6px 0;\">\u003Cstrong>Follow Us:\u003C\u002Fstrong>\u003C\u002Fp>\n  \u003Cul style=\"list-style:none; padding:0; margin:0; line-height: 0.4;\">\n    \u003Cli style=\"display:flex; align-items:center; gap:6px; margin:0;\">\n      \n      \u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"#1877F2\" aria-hidden=\"true\">\n        \u003Cpath d=\"M22 12.07C22 6.48 17.52 2 11.93 2S2 6.48 2 12.07c0 5 3.66 9.14 8.44 9.93v-7.02H7.9v-2.91h2.54V9.41c0-2.5 1.49-3.88 3.77-3.88 1.09 0 2.24.2 2.24.2v2.46h-1.26c-1.24 0-1.63.77-1.63 1.56v1.87h2.78l-.44 2.91h-2.34V22c4.78-.79 8.44-4.93 8.44-9.93Z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Ca href=\"https:\u002F\u002Fwww.facebook.com\u002Fsuperdev.academy.th\" target=\"_blank\" rel=\"noopener\" title=\"Follow Superdev Academy on Facebook\">Facebook: Superdev Academy\u003C\u002Fa>\n    \u003C\u002Fli>\n\n    \u003Cli style=\"display:flex; align-items:center; gap:6px; margin:0;\">\n      \n      \u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"#FF0000\" aria-hidden=\"true\">\n        \u003Cpath d=\"M23.5 6.2a3 3 0 0 0-2.1-2.1C19.5 3.5 12 3.5 12 3.5s-7.5 0-9.4.6A3 3 0 0 0 .5 6.2 31.5 31.5 0 0 0 0 12a31.5 31.5 0 0 0 .5 5.8 3 3 0 0 0 2.1 2.1c1.9.6 9.4.6 9.4.6s7.5 0 9.4-.6a3 3 0 0 0 2.1-2.1A31.5 31.5 0 0 0 24 12a31.5 31.5 0 0 0-.5-5.8ZM9.75 15.02V8.98L15.5 12l-5.75 3.02Z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002F@SuperdevAcademy\" target=\"_blank\" rel=\"noopener\" title=\"Watch on YouTube\">YouTube: Superdev Academy\u003C\u002Fa>\n    \u003C\u002Fli>\n\n    \u003Cli style=\"display:flex; align-items:center; gap:6px; margin:0;\">\n      \n      \u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"#E4405F\" aria-hidden=\"true\">\n        \u003Cpath d=\"M7 2h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H7a5 5 0 0 1-5-5V7a5 5 0 0 1 5-5Zm10 2H7a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3Zm-5 3.5A5.5 5.5 0 1 1 6.5 13 5.5 5.5 0 0 1 12 7.5Zm0 2A3.5 3.5 0 1 0 15.5 13 3.5 3.5 0 0 0 12 9.5Zm5.75-2.75a1.25 1.25 0 1 1-1.25 1.25 1.25 1.25 0 0 1 1.25-1.25Z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Ca href=\"https:\u002F\u002Fwww.instagram.com\u002Fsuperdevacademy\u002F?hl=en target=\" _blank\"=\"\" rel=\"noopener\" title=\"See behind-the-scenes on Instagram\">Instagram: Superdev Academy\u003C\u002Fa>\n    \u003C\u002Fli>\n\n    \u003Cli style=\"display:flex; align-items:center; gap:6px; margin:0;\">\n      \n      \u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"#000000\" aria-hidden=\"true\">\n        \u003Cpath d=\"M21 8.12a6.86 6.86 0 0 1-4.8-2V16a6 6 0 1 1-6-6 5.9 5.9 0 0 1 1.63.23V8.05a9.08 9.08 0 0 1-1.63-.15V4.5a6.86 6.86 0 0 0 4.8 2.05V6.5a6.86 6.86 0 0 0 4.8 1.62ZM9.2 12.5A3.5 3.5 0 1 0 12.7 16V9.94a6 6 0 0 1-1.63-.27v3.95a3.5 3.5 0 0 1-1.87 3.17 3.5 3.5 0 0 1-4.78-3.23 3.5 3.5 0 0 1 4.78-3.06Z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Ca href=\"https:\u002F\u002Fwww.tiktok.com\u002F@superdevacademy\" target=\"_blank\" rel=\"noopener\" title=\"Watch short tips on TikTok\">TikTok: @superdevacademy\u003C\u002Fa>\n    \u003C\u002Fli>\n\n    \u003Cli style=\"display:flex; align-items:center; gap:6px; margin:0;\">\n      \n      \u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"#111827\" aria-hidden=\"true\">\n        \u003Cpath d=\"M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2Zm6.93 6h-3.26a15.6 15.6 0 0 0-1.39-3.62A8.03 8.03 0 0 1 18.93 8ZM12 4c.73.93 1.7 2.74 2.2 4H9.8C10.3 6.74 11.27 4.93 12 4ZM8.72 4.38A15.6 15.6 0 0 0 7.32 8H4.07a8.03 8.03 0 0 1 4.65-3.62ZM4.07 16h3.25a15.6 15.6 0 0 0 1.4 3.62A8.03 8.03 0 0 1 4.07 16ZM12 20c-.73-.93-1.7-2.74-2.2-4h4.4C13.7 17.26 12.73 19.07 12 20Zm3.28-.38A15.6 15.6 0 0 0 16.68 16h3.25a8.03 8.03 0 0 1-4.65 3.62ZM20 14h-3.54a13.8 13.8 0 0 1-.26-4H20a7.98 7.98 0 0 1 0 4Zm-12.2 0H4a7.98 7.98 0 0 1 0-4h3.54a13.8 13.8 0 0 1-.26 4Zm2 .5h4.4a17.8 17.8 0 0 1-.72-4.5c0-1.58.25-3.1.72-4.5H9.8a17.8 17.8 0 0 1 .72 4.5c0 1.58-.25 3.1-.72 4.5Z\">\u003C\u002Fpath>\n      \u003C\u002Fsvg>\n      \u003Ca href=\"https:\u002F\u002Fwww.superdevacademy.com\u002F\" target=\"_blank\" rel=\"noopener\" title=\"Visit the official website of Superdev Academy\">Official Website: Superdev Academy.com\u003C\u002Fa>\n    \u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Fdiv>\u003Cp>&nbsp;\u003C\u002Fp>","cover_image_js2_go_rate_limiting_and_throttling_in_go_and_node_7qytbnribo.js.webp","https:\u002F\u002Ftwsme-r2.tumwebsme.com\u002Fsclblg987654321\u002Fn1ttpsetag4uno1\u002Fcover_image_js2_go_rate_limiting_and_throttling_in_go_and_node_7qytbnribo.js.webp","2026-03-04 08:45:14.874Z","",{"keywords":15,"locale":43,"school_blog":53},[16,23,28,33,38],{"collectionId":17,"collectionName":18,"created":19,"created_by":13,"id":20,"name":21,"updated":22,"updated_by":13},"sclkey987654321","school_keywords","2026-03-04 08:34:07.915Z","921nl48h9in67sw","Rate Limiting","2026-04-10 16:08:07.808Z",{"collectionId":17,"collectionName":18,"created":24,"created_by":13,"id":25,"name":26,"updated":27,"updated_by":13},"2026-03-04 08:45:14.634Z","k64fy7g22x7ash7","Throttling","2026-04-10 16:12:56.314Z",{"collectionId":17,"collectionName":18,"created":29,"created_by":13,"id":30,"name":31,"updated":32,"updated_by":13},"2026-03-04 08:20:11.547Z","ey3puyme01a9bsw","Go","2026-04-10 16:07:25.893Z",{"collectionId":17,"collectionName":18,"created":34,"created_by":13,"id":35,"name":36,"updated":37,"updated_by":13},"2026-03-04 08:44:38.026Z","m3dqo2zalnfaoof","Token Bucket","2026-04-10 16:12:47.845Z",{"collectionId":17,"collectionName":18,"created":39,"created_by":13,"id":40,"name":41,"updated":42,"updated_by":13},"2026-03-04 08:24:40.405Z","05u3tysava2z6ga","Node.js","2026-04-10 16:07:29.504Z",{"code":44,"collectionId":45,"collectionName":46,"created":47,"flag":48,"id":49,"is_default":50,"label":51,"updated":52},"en","pbc_1989393366","locales","2026-01-22 11:00:02.726Z","twemoji:flag-united-states","qv9c1llfov2d88z",false,"English","2026-04-10 15:42:46.825Z",{"category":54,"collectionId":55,"collectionName":56,"created":13,"expand":57,"id":71,"slug":72,"updated":13,"views":73},"hsa1afr8fcnd6qb","pbc_2105096300","school_blogs",{"category":58},{"blogIds":59,"collectionId":60,"collectionName":61,"created":62,"created_by":13,"id":54,"image":63,"image_alt":13,"image_path":64,"label":65,"name":66,"priority":67,"publish_at":68,"scheduled_at":13,"status":69,"updated":70,"updated_by":13},[],"sclcatblg987654321","school_category_blogs","2026-03-04 08:24:37.986Z","js2_go_2_11zon_y6paxmuz32.webp","https:\u002F\u002Ftwsme-r2.tumwebsme.com\u002Fsclcatblg987654321\u002Fhsa1afr8fcnd6qb\u002Fjs2_go_2_11zon_y6paxmuz32.webp",{"en":66,"th":66},"JS2GO",10,"2025-08-11 03:41:08.820Z","published","2026-04-25 02:32:14.339Z","wwe3lx7mcx6mdo4","js2go-ep43-rate-limiting-throttling-go-nodejs-en",204,"n1ttpsetag4uno1",[20,25,30,35,40],"2025-12-03 14:28:21.708Z","Learn how to protect your API from overload using Rate Limiting and Throttling techniques such as Token Bucket, Leaky Bucket, and Sliding Window, with real production-ready examples in Go and Node.js.","2026-05-08 06:52:06.658Z",1,{"th":72,"en":72}]