web stats
Multiple SFTP Readers/Writers to same destination - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 12-19-2019, 05:35 AM
mike_pose mike_pose is offline
What's HL7?
 
Join Date: Sep 2019
Posts: 5
mike_pose is on a distinguished road
Default Multiple SFTP Readers/Writers to same destination

We have an SFTP writer channel and multiple SFTP reader channels writing and reading from the same SFTP server (but different folders).
Will they all share/reuse the same SFTP connection or should we stagger the write/read times so they don't fall on the same time?
I know the FileWriter has now the "Keep connection Open" property, but our concern is that the readers causing conflicts polling at the same time?
Any experiences/best practices appreciated.
Mike
Reply With Quote
  #2  
Old 01-06-2020, 12:17 PM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 607
kirbykn2 is on a distinguished road
Default

Are you using the same credentials? If so, do you need to have multiple readers?

Could you use one reader and then use the folder path to determine what action to perform.

I have a scenario where are hit the same SFTP server but have different credentials. In my case, I stagger the reads using CRON on the source.
__________________
Best,

Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.4
Mirth Connect Version 3.8.0
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_181-b13
PostgreSQL Version 9.6.8
Reply With Quote
  #3  
Old 01-06-2020, 03:56 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,095
agermano is on a distinguished road
Default

sftp readers/writers establish their own connections and don't share.

An alternative to force the sharing of the connection could be to mount the sftp server and treat it as a local file.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:13 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation