crodrigoquero / C4Imaging

Workflow system based in Windows 10 / Linux services.
1 stars 0 forks source link

How to comunicate with a windows service (?) #3

Open crodrigoquero opened 3 years ago

crodrigoquero commented 3 years ago

Yes I can create an instance of msg broker RabbitMq client (producer-receiver) into the service code, but I don't like the idea (I want the service be able to get installed and used in a desktop computer without worriying about its dependences), i.e. Not only do I want the service to be useful in the backend of a web application / microservices, but also to be usable by any user.

To achieve this, these communication capabilities must be provided by a third component, which can be installed or uninstalled depending on the usage scenario. In this way, the entire system is much more modular, flexible and configurable.

The third component could make use of RabbitMq, but the PROBLEM IS STILL THERE: how does this third component communicate with its targeted service? How will that third component know if a job has been executed successfully? obviously you need to know that to send the correct message to RabbitMq.

Obviously I'm not going to analyze the service log to know that ... and also to achieve that the target service should log everything it does, which would give rise to huge logs.

crodrigoquero commented 3 years ago

I will perform some experiments by creating a plugIn with comunicacion funcitionality to RabbitMq msg broker, in a way that such plugIn can receive status updates from the WorkFlow Node (serice) and send them to a certain RabbitMq queue.