How to stream data to an FTP server
Posted on 2009-12-18
I would like an advice.
I have a huge amount of data that must go to node C BUT through node A and B.
I have to be fast so I want the data not to be writen to nodes A and B.
Simply I am thinking of using A and B as the neccessary hoping nodes in order to reach node C.
Possible Solution 1:
Use NETTY HTTPFileServer change it in orer to immediately forwad all traffic to node A, B and from there use an FTP client (ftpj possibly or something similar) in order to write the data to node C. Node A and B would have a seperate Netty server installed in order to forward the data (without writing anything on the HDD). Something like tunneling.
Possible solution 2:
Make Java clients on node A and B (with Channels and streams) that would send all data to the destination node C (with the use of an ftp client again).
Possible solution 3:
Something off the self ? Maybe something native and not Java.
Is there any FTP sotware that basically "tunnels" or forwards all the data to the fial FTP server?
I have searched for FTP bridge but I have found irrelevant topics.
Is it possible to provide your solution to this problem ?
Is Netty really worths using instead of the Java new NIO (1.5 or 1.6)/The documentation is really not a lot. Have you found any good documentation except the user's guide that they have online?
As the FTP server I am thinking Filezilla server.
FreeNas or Filezlla do you think that could be faster ? (If I could ask such a question)
My aim is to transfer lot of files with Java to node C (ftp server)
Thank you in advance,