|
|
|
|
|
by acdibble
2225 days ago
|
|
If there is only one process running this GenServer, there will only be one instance of the job in the system. An BEAM process, and therefore a GenServer, has an atomic message queue built in. Only the process itself can pop messages out of its queue, so there is no need for locking. It is not possible to get messages out of the queue concurrently. Messages can be processed concurrently, but that's after they've already been removed from the queue. |
|
Just curious as to how the BEAM solves it as I imagine it can.