party icon indicating copy to clipboard operation
party copied to clipboard

Always use worker for server?

Open ronag opened this issue 5 years ago • 2 comments

If worker is available. Would it make sense to always run the server inside a Worker and even have the "leader" client act like a "follower" in relation to the worker?

ronag avatar Mar 07 '21 09:03 ronag

Also another way to pick the leader could be to check isMaster (cluster + worker) and make it so that the master is always the leader. We can skip the live retry that way?

Could maybe be achieve in user space with an option.

ronag avatar Mar 07 '21 09:03 ronag

If worker is available. Would it make sense to always run the server inside a Worker and even have the "leader" client act like a "follower" in relation to the worker?

We need to fix https://github.com/Level/leveldown/issues/667 (and possibly other issues) before level(down) can be used in a worker.

vweevers avatar Mar 07 '21 10:03 vweevers