Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 07-04-2017 07:37 PM
Hello All,
Does NiFi preserve order of transactions in a cluster? Is their a way to guarantee that Inserts will be processed before Updates? I can use Kafka Connect with single partition and 3 replicas to ensure HA and Transaction Order. Wondering if their is anyway to achieve this in a NiFi cluster.
Thanks!!
Created 07-04-2017 09:11 PM
Hi @M R
NiFi can do this. You may want to look at the EnforceOrder processor in the latest NiFi version. In a clustered enviornment, you can have most of your processors distributed throughout the cluster but one of the last processors in the flow could be EnforceOrder, which should be run only on a Primary Node to ensure that the order is maintained. Also, use FIFO prioritization with it.
Created 07-04-2017 09:11 PM
Hi @M R
NiFi can do this. You may want to look at the EnforceOrder processor in the latest NiFi version. In a clustered enviornment, you can have most of your processors distributed throughout the cluster but one of the last processors in the flow could be EnforceOrder, which should be run only on a Primary Node to ensure that the order is maintained. Also, use FIFO prioritization with it.
Created 07-05-2017 06:33 PM
Using a single partition in Kafka is similar to using a single Node in NiFi to maintain order. The enforceOrder processor is a great new addition for enforcing order of FlowFiles, but it will only enforce orders on those FlowFiles that reside on the same node in a NiFi cluster. So if you are trying to enforce processing order of FlowFiles across numerous nodes, this processor will not do that. You would need to get all FlowFiles for which you want to enforce order on to the same node before using this processor.
I don't fully understand you entire use case, but a couple other processor you may want to look at include wait ad notify processors. These are also new in the latest HDF 3.0 and NiFi 1.2.0 releases.
Thanks,
Matt