You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jerry Cwiklik (JIRA)" <de...@uima.apache.org> on 2017/11/08 15:58:00 UTC

[jira] [Created] (UIMA-5640) UIMA-DUCC: JP/Service wrapper should not sleep when Work Item is not available

Jerry Cwiklik created UIMA-5640:
-----------------------------------

             Summary: UIMA-DUCC: JP/Service wrapper should not sleep when Work Item is not available
                 Key: UIMA-5640
                 URL: https://issues.apache.org/jira/browse/UIMA-5640
             Project: UIMA
          Issue Type: Improvement
          Components: DUCC
            Reporter: Jerry Cwiklik
            Assignee: Jerry Cwiklik
             Fix For: 2.2.2-Ducc


Currently when JD/Protocol Handler runs out of work it returns null back in response to GET. In this case, the service wrapper sleeps for a fixed amount of time and tries again. The sleeping should be done in the client (JD/Protocol Handler) to reduce latency. Instead of waiting for a fixed amount of time, the client code can use notification/interrupt to wake up a sleeping GET thread when a new work items becomes available. The service wrapper will block in http get request until a reply comes or the get request times out. On timeout, the service will immediately call the client (JD/Protocol Handler).  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)