开发者

File access in cluster/Tomcat/Springs

I have a application which stores documents on the file system (PDF, WORD etc).. The size of the folder can be in GB's

It indexes those as well and had the capability to download files etc.

Now I want to make this a clustered application for scalability. I am using tomcat/springs/hibernate.

How do all the nodes have access to the files? How do all the nodes have access to the indexes?

We might change some file attribute as metadata and hence want to reindex and thus need write access as well.

What should be the best architecture to 开发者_Go百科achieve this? Shared file system might be slow and have race condition when we are writing indexes again.

Thanks in advance for the guidance over this.


Have you considered using mongodb/GridFS to store the files? That would give you the benefits of not having to manage the filesystem yourself and you can use backups, replication, clustering the database. etc.

See also this SO article

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜