{"id":287,"date":"2026-04-26T09:00:00","date_gmt":"2026-04-26T03:30:00","guid":{"rendered":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/"},"modified":"2026-10-10T21:20:56","modified_gmt":"2026-10-10T15:50:56","slug":"go-worker-pool-pattern","status":"publish","type":"post","link":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/","title":{"rendered":"Go Worker Pool Pattern Explained Simply"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A Go worker pool runs many jobs with a fixed number of goroutines. So your program stays fast without overloading the machine. In this post, you will build a pool with channels and a WaitGroup. Then you will collect results and limit work with a simple semaphore. Each step comes with code that you can run yourself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This lesson combines three earlier topics. First, review <a href=\"https:\/\/smitabharat.com\/blog\/go-goroutines-beginners-guide\/\">goroutines in Go for beginners<\/a> and <a href=\"https:\/\/smitabharat.com\/blog\/go-channels-examples\/\">channels in Go with examples<\/a>. We also use <code>sync.WaitGroup<\/code> from <a href=\"https:\/\/smitabharat.com\/blog\/go-sync-package-waitgroup-mutex\/\">the Go sync package<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Is a Go Worker Pool?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Imagine a restaurant kitchen with three cooks and a rail of order tickets. New tickets go on the rail, and any free cook grabs the next one. The kitchen never hires a new cook for every order. Instead, three cooks share the work.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A Go worker pool works the same way. A <code>jobs<\/code> channel is the ticket rail, the workers are the cooks, and a <code>results<\/code> channel collects the finished dishes. The diagram below shows the full flow.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-1024x640.png\" alt=\"Go Worker Pool diagram showing nine jobs shared by three workers that send results to one channel\" class=\"wp-image-265\" srcset=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-1024x640.png 1024w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-300x188.png 300w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-768x480.png 768w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-1536x960.png 1536w, https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-diagram-2048x1280.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Jobs flow from one channel to three workers, and each worker sends its result into a shared results channel.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use a Go Worker Pool?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Goroutines are cheap, but the work inside them is not. For example, starting 10,000 goroutines that all call a database at once can exhaust its connections. A Go worker pool caps how much work runs at the same time, so the system stays stable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Building a Go Worker Pool Step by Step<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: The Worker<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>type Result struct {\n\tJob    int\n\tSquare int\n\tWorker int\n}\n\nfunc worker(id int, jobs &lt;-chan int, results chan&lt;- Result, wg *sync.WaitGroup) {\n\tdefer wg.Done()\n\tfor j := range jobs {\n\t\ttime.Sleep(100 * time.Millisecond) \/\/ pretend this is slow work\n\t\tresults &lt;- Result{Job: j, Square: j * j, Worker: id}\n\t}\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Each worker loops over the <code>jobs<\/code> channel until it closes. The arrows in <code>&lt;-chan<\/code> and <code>chan&lt;-<\/code> make the channels receive-only and send-only, so the compiler stops mistakes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Start Workers and Send Jobs<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>jobs := make(chan int, 10)\nresults := make(chan Result, 10)\n\nvar wg sync.WaitGroup\nfor w := 1; w &lt;= 3; w++ {\n\twg.Add(1)\n\tgo worker(w, jobs, results, &amp;wg)\n}\n\nfor j := 1; j &lt;= 9; j++ {\n\tjobs &lt;- j\n}\nclose(jobs)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Closing <code>jobs<\/code> tells the workers that no more work is coming. Without it, their <code>range<\/code> loops would wait forever.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Collect the Results<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>go func() {\n\twg.Wait()\n\tclose(results)\n}()\n\nsum, count := 0, 0\nfor r := range results {\n\tsum += r.Square\n\tcount++\n}\nfmt.Println(\"results:\", count, \"sum of squares:\", sum)\n\/\/ results: 9 sum of squares: 285\n\/\/ took about 300ms<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A small goroutine waits for every worker, then closes <code>results<\/code>. As a result, the final <code>range<\/code> loop ends on its own. Nine jobs of 100 ms each finish in about 300 ms, because three workers share them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A Simpler Limit: The Semaphore Pattern<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sem := make(chan struct{}, 2)\nfor i := 0; i &lt; 6; i++ {\n\twg.Add(1)\n\tgo func(n int) {\n\t\tdefer wg.Done()\n\t\tsem &lt;- struct{}{}        \/\/ take a slot\n\t\tdefer func() { &lt;-sem }() \/\/ give it back\n\t\t\/\/ do the work here\n\t}(i)\n}\nwg.Wait()\n\/\/ max running at once: 2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you just want &#8220;at most N at a time&#8221;. In that case, a buffered channel works as a semaphore. Each goroutine takes a slot before working and returns it afterwards. So only two run together, even though six were started.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Choosing the Go Worker Pool Size<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There is no magic number. For CPU-heavy work, start with <code>runtime.NumCPU()<\/code>. For network or database calls, however, the limit usually comes from the other system, such as a database connection limit. So measure first, then adjust the number of workers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with a Go Worker Pool<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Problem you see<\/th><th>Why it happens<\/th><th>How to fix it<\/th><\/tr><\/thead><tbody><tr><td>fatal error: all goroutines are asleep &#8211; deadlock!<\/td><td>The code never closed <code>jobs<\/code> or <code>results<\/code>.<\/td><td>Close jobs after sending, close results after <code>wg.Wait()<\/code>.<\/td><\/tr><tr><td>Results are missing<\/td><td><code>main<\/code> exited before workers finished.<\/td><td>Wait on the WaitGroup or drain results.<\/td><\/tr><tr><td>WARNING: DATA RACE<\/td><td>Workers update a shared variable.<\/td><td>Send results through a channel or use a mutex.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Run your program with <code>go run -race .<\/code> to catch the last problem early. Worker pools also appear in many system design interviews, so practise with my <a href=\"https:\/\/smitabharat.com\/blog\/go-lang-interview-questions-and-answers\/\">Go interview questions and answers<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These pages come straight from the Go team, so they stay accurate and up to date.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/go.dev\/blog\/pipelines\">Go blog: Pipelines and cancellation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pkg.go.dev\/sync\">sync package documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/go.dev\/doc\/effective_go#concurrency\">Effective Go: Concurrency<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Go worker pool runs many jobs with a fixed number of goroutines.<\/li>\n\n\n\n<li>Workers read from a jobs channel and write to a results channel.<\/li>\n\n\n\n<li>Close jobs when sending is done, and close results after <code>wg.Wait()<\/code>.<\/li>\n\n\n\n<li>A buffered channel can act as a simple semaphore.<\/li>\n\n\n\n<li>Size the pool by measuring, not guessing.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s Next?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can now process jobs in parallel safely. Next, we will work with dates, durations and timers using the time package.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Next lesson: <a href=\"https:\/\/smitabharat.com\/blog\/go-time-package-examples\/\">Go Time Package: Dates, Durations and Timers<\/a><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>A Go worker pool runs many jobs with a fixed number of goroutines. So your program stays fast without overloading the machine. In this&hellip;<\/p>\n","protected":false},"author":1,"featured_media":264,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[15],"tags":[11,23,53,21],"swapz_series":[],"class_list":["post-287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-go-lang","tag-go-lang","tag-go-tutorial","tag-go-worker-pool","tag-golang-basics"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Go Worker Pool Pattern Explained with Examples<\/title>\n<meta name=\"description\" content=\"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go Worker Pool Pattern Explained with Examples\" \/>\n<meta property=\"og:description\" content=\"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/\" \/>\n<meta property=\"og:site_name\" content=\"Smita Bharat - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-04-26T03:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-10T15:50:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Smita\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Smita\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/\"},\"author\":{\"name\":\"Smita\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"headline\":\"Go Worker Pool Pattern Explained Simply\",\"datePublished\":\"2026-04-26T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/\"},\"wordCount\":638,\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-worker-pool-pattern-featured.png\",\"keywords\":[\"Go Lang\",\"Go Tutorial\",\"Go Worker Pool\",\"Golang Basics\"],\"articleSection\":[\"Go Lang\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/\",\"name\":\"Go Worker Pool Pattern Explained with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-worker-pool-pattern-featured.png\",\"datePublished\":\"2026-04-26T03:30:00+00:00\",\"dateModified\":\"2026-10-10T15:50:56+00:00\",\"description\":\"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#primaryimage\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-worker-pool-pattern-featured.png\",\"contentUrl\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/go-worker-pool-pattern-featured.png\",\"width\":2400,\"height\":1260,\"caption\":\"Go Worker Pool featured image: cards for jobs, workers and results\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/go-worker-pool-pattern\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go Worker Pool Pattern Explained Simply\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/\",\"name\":\"Smita Bharat Blog\",\"description\":\"Golang &amp; Backend Development Tutorials and Interview Questions\",\"publisher\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\"},\"alternateName\":\"Smita Bharat\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/27a1b1067d396703215c54acedbfd339\",\"name\":\"Smita\",\"logo\":{\"@id\":\"https:\\\/\\\/smitabharat.com\\\/blog\\\/#\\\/schema\\\/person\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/smitabharat.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Go Worker Pool Pattern Explained with Examples","description":"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.","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:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/","og_locale":"en_US","og_type":"article","og_title":"Go Worker Pool Pattern Explained with Examples","og_description":"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.","og_url":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/","og_site_name":"Smita Bharat - Blog","article_published_time":"2026-04-26T03:30:00+00:00","article_modified_time":"2026-10-10T15:50:56+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png","type":"image\/png"}],"author":"Smita","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Smita","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#article","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/"},"author":{"name":"Smita","@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"headline":"Go Worker Pool Pattern Explained Simply","datePublished":"2026-04-26T03:30:00+00:00","dateModified":"2026-10-10T15:50:56+00:00","mainEntityOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/"},"wordCount":638,"publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png","keywords":["Go Lang","Go Tutorial","Go Worker Pool","Golang Basics"],"articleSection":["Go Lang"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/","url":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/","name":"Go Worker Pool Pattern Explained with Examples","isPartOf":{"@id":"https:\/\/smitabharat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#primaryimage"},"image":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#primaryimage"},"thumbnailUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png","datePublished":"2026-04-26T03:30:00+00:00","dateModified":"2026-10-10T15:50:56+00:00","description":"Learn the Go worker pool pattern with simple examples: jobs and results channels, a WaitGroup, safe shutdown and a semaphore to limit work.","breadcrumb":{"@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#primaryimage","url":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png","contentUrl":"https:\/\/smitabharat.com\/blog\/wp-content\/uploads\/2026\/10\/go-worker-pool-pattern-featured.png","width":2400,"height":1260,"caption":"Go Worker Pool featured image: cards for jobs, workers and results"},{"@type":"BreadcrumbList","@id":"https:\/\/smitabharat.com\/blog\/go-worker-pool-pattern\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smitabharat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Go Worker Pool Pattern Explained Simply"}]},{"@type":"WebSite","@id":"https:\/\/smitabharat.com\/blog\/#website","url":"https:\/\/smitabharat.com\/blog\/","name":"Smita Bharat Blog","description":"Golang &amp; Backend Development Tutorials and Interview Questions","publisher":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339"},"alternateName":"Smita Bharat","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smitabharat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/27a1b1067d396703215c54acedbfd339","name":"Smita","logo":{"@id":"https:\/\/smitabharat.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/smitabharat.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/comments?post=287"}],"version-history":[{"count":1,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/posts\/287\/revisions\/302"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media\/264"}],"wp:attachment":[{"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/media?parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/categories?post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/tags?post=287"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/smitabharat.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}