Distributed v0.1.0 Distributed.Scaler.GenServer View Source

The functions in Distributed.Scaler.GenServer module helps to scale projects by processing every event on the next node, in order.

Note: Since this module is only a wrapper for GenServer module, there is no need to write a detailed documentation for this module. Please check documentation of the GenServer module; you can basically think that the functions of the module run on the next node without specifying the node, and you will be replied with the result of the process.

You can use this module mostly for read operations, loop actions or background tasks. It is suitable when you do not need replication of events.

Link to this section Summary

Functions

Makes synchronous calls to the servers on nodes and waits for their replies. See GenServer.call/3

Sends asynchronous requests to the servers on nodes. See GenServer.cast/2

Sends messages to the given dest on nodes and returns the message. See Kernel.send/2

Link to this section Functions

Link to this function call(server, term, opts \\ []) View Source
call(server :: atom, term, opts :: [any]) :: term

Makes synchronous calls to the servers on nodes and waits for their replies. See GenServer.call/3

Link to this function cast(server, term) View Source
cast(server :: atom, term :: term) :: term

Sends asynchronous requests to the servers on nodes. See GenServer.cast/2

Link to this function info(dest, msg) View Source
info(dest :: pid | port | atom, msg :: any) :: any

Sends messages to the given dest on nodes and returns the message. See Kernel.send/2