Question

How you manage static content?

Hello i have 2 hosting with loadbalancer…

Before using loadbalancer, to server static content i use json or txt generate from localdatabase…

When i use LD i cant use same trick because when i update my json using link, it always update one json not both because of LD redirect to one of it…

I want to how you guys server static content? I prefer some way that cost less…

Because i have 2 hosting and 1 db hosting. So i prefer cheap way to do it, but if you think spend money is a must then its ok, i accept all input… Thx


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.

The easiest solution that requires the least amount of overhead is to serve your static content from Spaces Object Storage. This way all of your static content is read, written, and served from a single location and you can also enable the built in CDN to improve download speeds for your users.

This also means you don’t have to worry about a particular droplet and access to the data, or how to update static files when you have multiple droplets as everything is written to a central location through a managed service.