Implement a REST server in Julia?

I don’t use the REST server anymore, but I remember to have the same problem. You might want to try with @async or Threads.@spawn. There is more discussion here:

In the end, I had one HTTP request to start the long calculation, and another HTTP request to check if it is completed.