quchen / amoeba

Amœba is a distributed network.
Other
18 stars 1 forks source link

Per-client housekeeping #29

Closed quchen closed 10 years ago

quchen commented 10 years ago

Current housekeeping is centralized. It would probably be nicer to spawn a housekeeper for each client, similar to how workerWatcher works right now. This would also make the housekeeping loops simpler, and might even eliminate the need to store the clients' ThreadId/Async in the DB.

quchen commented 10 years ago

Tried to implement it, ran into stupid bug. Came to think of it, I couldn't really see any reasonable benefit of building (debugging) this.

It may be more efficient than filtering the entire DB each time the housekeeping loop runs, but that's far from being a bottleneck.

Closing as unnecessary.