Removing possibly outdated code from TrellServer.cs#43
Removing possibly outdated code from TrellServer.cs#43doug-jacob wants to merge 2 commits intomasterfrom
Conversation
|
I think we'd need to do the work first to see if that is needed. E.g., how are workers logging now - is that ok, or should it be centralized? |
| // -------------------- START INTERNAL API ----------------------------- | ||
|
|
||
| // Called from the worker (on a user's behalf) to log. | ||
| rpc Log(LogRequest) returns (google.protobuf.Empty); |
There was a problem hiding this comment.
If it does make sense to remove Log, it will make sense to remove LogRequest and any other messages/types it depends on.
|
Structurally, each worker process loads the implementation of |
Well the plugin could be loaded anywhere, so that doesn't seem like a difference in capability to me. One downside of the way we are doing it now is that the plugin may use scarce resources, such like connections, so it doesn't scale as well. E.g., a setup running 50 workers now needs 50 connections/connection-pools to redis or postgres (for example), when maybe 1 would do. Also the overhead of constantly starting/stopping those. |
|
We could define a Though maybe that's unnecessary complexity/work at this point. |
Following a conversation with Matthew during recent Trell cleanup, there was one notable section of commented-out code which we aren't sure is still relevant, so its removal is its own PR
EDIT: the purpose of the entire method was in question, so this PR changed to evaluate it wholistically