Start worker only on first instance

This is an interesting problem. In the Rails world, you’d do this with two [processes]: Preview: multi process apps (get your workers here!)

That would probably work for your Elixir app too.

You could use postgres to elect a “leader” VM, but it’d take some work.

1 Like