Mark Elston (105) [Avatar] Offline
#1
I seem to have completely misunderstood the GenServer example in chapter 4. When the idea of GenServer was presented it sounded like a general purpose (or generic) communications channel between client and server applications. I expected to see the client making theGenServer call and cast functions. However, it is the server code (Metex.Worker) that is making these calls. This makes it appear that GenServer is placed between the server and the server, if that makes sense.

I am not sure what to make of this example or what GenServer is doing for us in this case.