The idea of this server is to be stateless. But a central task present in several tools is the fittiong of the surrogate model.
Perhaps this could be cached and only refit if the surrogate json and measurements json changes.
This will provide a nice time saving if there are sequential calls from the same suer. It will not have a benefit in situations where several users are using the server at the same time.
This could e further improved by something like a session id, but that would be very much contrary to the stateless idea and increase the complexity unnecessarily.
The idea of this server is to be stateless. But a central task present in several tools is the fittiong of the surrogate model.
Perhaps this could be cached and only refit if the surrogate json and measurements json changes.
This will provide a nice time saving if there are sequential calls from the same suer. It will not have a benefit in situations where several users are using the server at the same time.
This could e further improved by something like a session id, but that would be very much contrary to the stateless idea and increase the complexity unnecessarily.