[erlang-questions] pg2 vs gproc?

Loïc Hoguin essen@REDACTED
Wed Jun 6 14:27:48 CEST 2012


On 05/26/2012 10:38 PM, Motiejus Jakštys wrote:
> Hi,

Hello,

> For term() to pid() mapping I've always used gproc. For the same thing
> my coworker always used pg2.
>
> I am making a comparison now. There are some features in gproc which are
> not in pg2:
>
> * Await for registration
> * Per-process properties
> * Aggregate counters
> * QLC
>
> Whereas pg2 "natively" supports mapping one key to several processes
> (which can be easily achieved with QLC in gproc).

Unless I misunderstand, gproc's properties are exactly this, mapping one 
key to several processes.

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines



More information about the erlang-questions mailing list