Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am unfamiliar with how Go HTTP frameworks do things but in Elixir each request is a new process... and running in BEAM which was designed for massive concurrency from the beginning. Go is frequently compared to BEAM solutions so I'm curious if each request in a Go web framework spawns a separate process per request.


Go’s web framework does spawn a goroutine for each request.


Go shouldn't be compared to BEAM at all. It doesn't have processes. It spawns a lightweight thread (goroutine) on each request.


BEAM's "processes" are lightweight too AIUI, pretty similar to goroutines.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: