cancel
Showing results for 
Search instead for 
Did you mean: 

Which is the best media strategy?

Former Member
0 Kudos

Hi,

Do you know which is the best media strategy out of available 4 :

1) LocalFileMediaStorageStrategy 2) S3MediaStorageStrategy 3) WindowsAzureBlobStorageStrategy 4) GridFSMediaStorageStrategy

Could you please share Pros & Cons. Also, could you please suggest best architecture regarding managing system & content media storage.

Thanks, Gaurav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In reality, most projects end up using a customization of the local storage strategy (typically to stop people from loading media), and store a URL to an externally hosted media provider in the Media items that can be used to serve the images closer to a customer via a CDN.
Really, hybris is the wrong place to store images as image data tends to be of a static nature. Hybris tends to be the consumer of images, rather than a solution for managing images in the majority of cases.
While you can use hybris as a kind of mini-DAM solution, it's not generally the best way to go.

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

Best? Depends on your requirements.

If you are storing your media in Amazon S3 then I'd imagine the WindowsAzureBlobStorageStrategy is not the optimal choice.

If you are using local storage in a clustered environment then you'll need some other mechanism to share the files amongst your nodes such as NFS or you'll upload a file onto one node and it won't be available on the others. This is what using one of the other storage strategies gives you, a shared storage area. You can either serve directly from the remote storage to take the load away from your Hybris cluster or use a local cache on each node to save having to connect up to the remote storage for each media request.

Have a read of Media Storage Overview

Former Member
0 Kudos

We are using NFS for local media storage and shared between nodes.

1) Based on this we should move to remote media storage or not? 2) What are the pros n cons of each storage?

Thank You!!

andyfletcher
Active Contributor
0 Kudos

1) Is it working? If yes, then why would you change it?

2) I've never used a non local storage strategy so can't comment on how well they work. The benefits I'd see might be managed backup, redundancy etc. and the possibility of serving from a local (to the end user) endpoint but that might be nullified by increased cost and complexity. WIthout knowing about your current environment and costs, the amount of data you have, the number of users etc. then it's all just guesswork.

You need to read the Hybris documentation and draw your own conclusions based on your requirements.

Former Member
0 Kudos

Current setup is working fine except that media folder became very big but it requires cleanup jobs to be configured. Cleanup job configuration is one of the scope, Business team also needs to know if remote storage should be used in place of local media storage. So wanted to know if anyone is using remote media storage and what was the driving factor behind choosing remote media storage over local.