I'm developing my CBT and I need guidance on how best to do some parts of the system.
Description:
It is a system for optimizing the use of laboratories. Such a system should have web frontend on the client side and a web service on the server side.
Frontend - Simple system that should have a list of laboratories and some information, such information should be sent to the server through the web service. The frontend should also have a "RUN" button, which should communicate to the server side web service, the server will execute the optimization algorithm and return the response to frontend to be displayed to the user.
Server - must have an rest (or similar) for communication with the frontend . I already have a DLL with the definition of the system classes, datacontext for entityframework and implemented optimization algorithm. The server side should run the optimization algorithm at predefined times and when the "RUN" button on the frontend is clicked.
Problems I've been experiencing:
I thought of implementing a state machine (such as console application ) on the server to do this control when running the algorithm. But I do not know if this is the best way to do it.
I am open to possible solutions to these specific problems, or even change the system architecture.
The only thing I can not stop is the DLL with the classes and methods for the algorithm, but I can make minor modifications to it.