qmetrics.net

ants

Fixed-capacity goroutine pool for Go concurrency

Frameworks & PlatformsDesktop/CLI app
ants screenshot

ants is a Go library that implements a goroutine pool with a set capacity. It recycles workers so concurrent programs can cap how many goroutines run at once.

Overview

The ants package provides a pool that manages a large number of goroutines under a fixed limit, aimed at programs that would otherwise spawn unbounded goroutines. It automatically recycles workers and can purge overdue goroutines on a schedule.

You submit work with pool APIs, inspect how many goroutines are active, change capacity at runtime, and release or reboot the pool when needed. Panics inside workers are handled so they do not take down the whole program. An optional ring-buffer preallocation can cut allocation overhead for very large pools with long-running tasks.

Task order is not guaranteed because work is spread across concurrent workers. The library offers a nonblocking submission mode and is used as a dependency in many production Go codebases for HTTP services, databases, and networking stacks.

Install it as a Go module dependency; configuration is done through constructor options and functional option helpers rather than a standalone server.

Key features

  • Fixed-capacity goroutine pool
  • Automatic worker recycling
  • Periodic purge of stale workers
  • Runtime pool capacity tuning
  • Pool release and reboot
  • Graceful panic handling
  • Optional preallocated task queue
  • Nonblocking task submission

Use cases

  • Limit goroutines in web services
  • Bound concurrency in data pipelines
  • Worker pools for RPC frameworks
  • Throttled background job processing
  • High-volume network event handling

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT