Answer the question
In order to leave comments, you need to log in
Transferring data from server to server?
Good day to all! Faced such problem:
There is an architecture "Client-Server-Server-Client". I am sending some file (text or .jpg) from the client to the server and I need to somehow transfer this file to another server. Can you tell me how to do it? Thanks in advance.
Answer the question
In order to leave comments, you need to log in
And you can, as usual, send a post request from server to server and you don’t have to redo or finish anything.
REST service? Then you can put the PUT file with a request. Here is an example code to upload to Amazon . It's in php, but the idea is the same.
- If you only need to put a file on the second server, then you can simply mount the directory via nfs.
- If data processing is also important on the second server, then you can use soap / xml-rpc
If I understand the question correctly, then it is possible to implement the client part on the server through sockets. form an HTTP request with a picture that came to the server and send it to another address. If interested, I can share the code (in PHP).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question