Today again with people to discuss the site picture storage topic, so I think of the classic picture storage virtual application. This was the “Add virtual directory” feature when IIS launched. This feature has been gradually replaced by object storage services for image sharing purposes.

This feature in the traditional architecture, the virtual directory function can achieve multiple sites to share the same “image read path” and is very popular, but also to achieve the centralized storage of images. But as cloud architectures evolve, this usage is now rare. Instead, static files such as images are centrally shared using an “object storage” service.

There are many providers of the object storage service. The object storage service provided by Ali Cloud, short for OSS, can be purchased with vouchers: http://2bit.cn/q. Thanks for the voucher support.

Why are image servers no longer advocated? Small make up temporarily think of such a few shortcomings:

1, the same directory under the number of pictures brought too much index performance. Multi-level directory management is cumbersome and the directory path is too deep. Severe disk fragmentation

2. Bandwidth bottleneck caused by the outbreak of concurrent traffic in the future, network contention caused by dynamic and static resource sharing bandwidth, and slow website opening

3, the future concurrent traffic will inevitably lead to the independent deployment requirements, independent deployment for picture server, its independent and separated deployment process is cumbersome, and even need to modify the source code to cooperate.

4, the lack of high availability features, the picture server down, all reference sites can not be involved in loading pictures.

What are the advantages of current cloud architecture solutions instead? Advantages of object storage are as follows:

1, high availability, object storage itself is a cluster, a single failure will not affect the entire system, multiple copies of files should not be lost.

2, there is no bandwidth upper limit (or the bandwidth upper limit is very large, usually 100 mbit/s start gigabit standard configuration), which directly increases the difficulty of triggering the bandwidth bottleneck.

3. Storage space expands at will. Cluster services are characterized by dynamic resource addition, which reduces services and even avoids interruption.

4. Supporting services often support one-click enabling of CDN services to easily realize further node acceleration.

5, support additional processing functions, such as anti-theft chain Settings, image watermarking, access statistics and so on

6. Pay by the amount. The most expensive object storage service is usually the data charge, but this charge is paid by the amount. Therefore, be careful not to expose private services to the public network. In addition to the purpose of preventing stolen private files to prevent malicious brush traffic. In this step, the wrong setting is the same as turning a strength into a weakness.

The original address: www.opengps.cn/Blog/View.a… , the update and editing of the article will follow this link. Welcome to pay attention to the source station original article!