-
I am converting COSMOS 4 targets to COSMOS 5 and am wondering the best method to create something similar to how background tasks work in COSMOS 4. I created a microservice that appears to work, but I now realize there is no way to have a microservice stop and start via a script (As there was in COSMOS 4). It is not really a problem for 90% of our targets, but there is one target that needs to have the background task stop before sending it any other commands. Is a microservice the wrong way of doing this or is there a way to stop and start a microservice programmatically? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Microservices are the right way to do this in COSMOS 5. If you need to interact with the microservice, you could create an interface and have it be able to command the microservice. Alternatively, you can just create an interface, and have it run a background thread that acts as your microservice. You would then command the interface directly. |
Beta Was this translation helpful? Give feedback.
Microservices are the right way to do this in COSMOS 5. If you need to interact with the microservice, you could create an interface and have it be able to command the microservice.
Alternatively, you can just create an interface, and have it run a background thread that acts as your microservice. You would then command the interface directly.