Loadbalance Assets

Hi Sebastian,

Let’s consider structures with load balancing systems and running squidex on many servers in the background. So how do we manage assets? Can you share information about this?

I tried to draw the system as much as possible. How do we resolve the issue of syncing assets?

Ps. assets are kept in a assets folder on app1.

Thank you.

As long as you do not use the Folder storage type it works.

Can you clarify a little further? Is there a way to not store the asset files in a folder?

When you have multiple servers you need a way to share assets between the servers. The only asset storage implementation that does not do it is the folder storage where the assets are located in the local file system.

All other supported implementation do it by default: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/appsettings.json#L356

I either recommend (MongoDB) as it is the simplest approach because you do not need extra config or one of the cloud implementation (S3, AzureBlob, Google Storage)

1 Like