Mark Payne created NIP-27:
-----------------------------

             Summary: Move Processors to using Virtual Threads
                 Key: NIP-27
                 URL: https://issues.apache.org/jira/browse/NIP-27
             Project: NiFi Improvement Proposal
          Issue Type: Improvement
            Reporter: Mark Payne
            Assignee: Mark Payne


When we moved to Java 21 for NiFi 2.0 one of the exciting capabilities that we 
discussed was the ability to move to virtual threads for scheduling processors. 
This provides a handful of benefits:
 * The scheduling code becomes much simpler
 * It's a bit more efficient, with no need to constantly schedule tasks and 
then cancel futures in the case of a yield, etc.
 * We could use ThreadLocal whereas right now it does not work well
 * Use of Logging MDC could be improved
 * Thread dumps are much clearer because we pin a given 'task' to a single 
thread. So things like AbstractProcessor calling ProcessSession.commit can be 
tracked back to a specific thread and therefore a specific processor, etc.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to