Question

How can one droplet access another and write files

Hello, My company is pushing a new service live and we want you guys to be the web hosting providers, simply because you are awesome and I have had a great experience with you so far! I will not get into small details on what does the service do but will explain it conceptually so hopefully, you will be able to tell me if something like this is doable and if it is what is the best approach for it.

Ok so… I have a root droplet in which I have my Spring boot application which users from all around the world can use. Now what I need is to get files that are being processed by the application and write them onto another Droplet accordingly (which may or may not be on the account where the root droplet is). So in a sense, I need for my root droplet to have access to child droplets with writing privileges in certain folders, of course in a secure manner.

Is something like this possible? And if it is what is the best approach?

Kind Regards, Luka Balac


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi Luka,

I believe that there are two ways to do that:

  • Setup an NFS server on your main droplet and then on the secondary droplets mount you NFS share. Here’s how you could do that:

https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-16-04

  • Use the Lsyncd service to mirror your local directory to your secondary remote droplets. Here’s a great article on DigitalOcean on how to set that up:

https://www.digitalocean.com/community/tutorials/how-to-mirror-local-and-remote-directories-on-a-vps-with-lsyncd

Hope that this is what you are after!

Regards, Bobby