Worker Pool - A Pool of Generic Servers

worker_pool

I’m opening the main thread here for worker_pool - A simple but hevily battle-tested library to simplify handling a pool of gen_servers.

Abstract

The goal of Worker Pool is pretty straightforward: to provide a transparent way to manage a pool of workers and do the best effort in balancing the load among them, distributing the tasks requested to the pool.

You can just replace your calls to the gen_server module with calls to the wpool module, i.e., wherever you had a gen_server:call/N now you put a wpool:call/N, and that’s it!

For mor information, check out this article.

Maintainers

While the library was originally created by Inaka, it’s currently maintained mostly by @NelsonVides and myself :slight_smile: - and we do accept contributions.

Latest Release

We just released a brand-new OTP29-compatible version of the library: worker_pool | Hex

Repo

2 Likes