Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.08 KB

README.md

File metadata and controls

24 lines (19 loc) · 1.08 KB

Throttler

Go Reference
License
📖 Read the full article on Medium

Throttler is a Go library for managing task execution with features like:

  • Rate Limiting to handle API or database constraints.
  • Task Scheduling with retries, backoff, and priority management.
  • Circuit Breaking to avoid cascading failures.

Features

  • Flexible APIs for defining tasks: Use closures or the Executable interface.
  • Automatic retry with backoff for failed tasks.
  • Rate limit enforcement to handle throughput-heavy workloads.
  • Priority-based task execution with first-in-first-out (FIFO) fallback.
  • Built-in metrics collection for monitoring queue size and execution.

Installation

go get github.com/gopal96685/throttler