I have a simple DropWizard service, and I would like the REST API to run a long-term processing task - both with the CPU and with the I / O interface. A REST call will not wait for the task to complete, notification will occur by polling / long polling / web socket.
Currently, I would prefer if I can do this in Dropwizard and save everything in one deployable JAR. What are my options?
UPDATE: I am interested in what my options are for launching long running tasks in Dropwizard, deployed as a single banner without external dependencies. Just create a new thread? Assuming that only a few such queries are likely to work, but there should be better options.
bh213 source share