-
Notifications
You must be signed in to change notification settings - Fork 0
Removing possibly outdated code from TrellServer.cs #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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? |
@@ -31,9 +31,6 @@ service TrellServer { | |||
|
|||
// -------------------- 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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