Using Erlang, how should I distribute load amongst a cluster?

前端 未结 3 2026
灰色年华
灰色年华 2021-02-04 18:14

I was looking at the slave/pool modules and it seems similar to what I want, but it also seems like I have a single point of failure in my application (if the master node goes d

3条回答
  •  醉话见心
    2021-02-04 19:09

    I recently remembered the pg module which allows you to setup process groups. messages sent to the group go to every process in the group. It might get you part way toward what you want. you would have to write the code to decide which process handles the request for real but you would get a pool without a master using it.

提交回复
热议问题