A common library shared by both client and agent sounds more appropriate to allow simple cases such as just using the client and avoid the overhead of having to set up an extra service locally.
Duplicated code sections - move to a service?
-
11-03-2022 - |
Domanda
I have a C#
application that enables users to write a test and execute it (client
). It also supports distributed execution over multiple machines using a central server
and agents
on said machines.
The agent
is practically a duplication of the original execution ability but it is in a standalone solution.
We'd like to refactor that because:
- Code duplication.
- If a user will try to write and execute on a machine that runs an
agent
, there will be a problematic collision.
I'm considering 2 options:
- Move this execution to a service, that both
client
andagent
will use. I mean a service that will run locally, not a web service. - Merge
client
andagent
- we'll have noagent
, but theserver
will communicate with theclient
as anagent
instead.
I have no experience in working with services. Are there any known advantages/disadvantages to either options?
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow