title: using node watchFile reliably - nfs, cifs, scp?
body: <p>I am trying to implement a db-to-server push model using node's watchFile functionality.  Right now I am exporting an nfs4 share from the db.  The server mounts that share.  When the db processes new data, it touches files in its export location.  The server sees the time change of the files and performs its push to clients.</p>
  
  <p>Problem is that the server isn't seeing the files being updated until it performs a subsequent poll request.  This effectively makes it a pull model, not a push.  If I unmount the share serverside and touch files in the mount folder, watchFile performs just fine and sees changes within the default 5007ms window.</p>
  
  <p>My alternate ideas include using scp to push files from the db to the server, - seems cludgy but I've tested it and watchFile works with it.  I haven't gone the cifs route yet.</p>
  
  <p>Should I give up on relying on nfs4 to behave with node's watchFile()?  If not, what should I tweak/test?  What alternative methods have worked for you?</p>