Concurrency Comparison: Go v/s Elixir
Posted on 30 Jan, 2023
- One goroutine only knows about channels, its not aware about other goroutines.
- There are anonymous
- Message passing is synchronous.
- Go routines are managed by Go runtime.
- Avg size in order on 2KB.
go someFunction()
- Processes communicate directly to each other
- Elixir process has an id (non-anonymous).
- Managed by BEAM Virtual Machine.
- Separate stack & heap.
- Average size of 0.5KB.
spawn(fn -> ... end)