Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmeiklejohn/riak_pg
Distributed process groups with riak_core.
https://github.com/cmeiklejohn/riak_pg
Last synced: about 2 months ago
JSON representation
Distributed process groups with riak_core.
- Host: GitHub
- URL: https://github.com/cmeiklejohn/riak_pg
- Owner: cmeiklejohn
- License: apache-2.0
- Created: 2013-05-24T23:05:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T14:32:43.000Z (over 5 years ago)
- Last Synced: 2024-10-26T08:57:53.377Z (2 months ago)
- Language: Erlang
- Homepage: https://github.com/cmeiklejohn/riak_pg
- Size: 2.48 MB
- Stars: 72
- Watchers: 17
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Riak PG
## Overview
Distributed process groups with riak\_core.
## Usage
Join a process to a group (no need to pre-declare)
```erlang
join(term(), pid()) -> ok | {error, timeout}.
```What about removing?
```erlang
leave(term(), pid()) -> ok | {error, timeout}.
```You can delete process groups.
```erlang
delete(term()) -> ok | {error, timeout}.
```You can also return the members, local members or connected members of a
group.```erlang
members(term()) -> {ok, list(pid()) | {error, timeout}.
local_members(term()) -> {ok, list(pid()) | {error, timeout}.
connected_members(term()) -> {ok, list(pid()) | {error, timeout}.
```You can list the groups that have been created and currently have members.
```erlang
groups() -> {ok, list(term())} | {error, timeout}
```## Copyright
Copyright (C) 2013 Christopher Meiklejohn