Report this

What is the reason for this report?

How you manage static content?

Posted on December 28, 2020

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



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.