Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Comparison of advantages and disadvantages between object storage service and picture server

Shulou Source: shulou.com Published: 2022-06-02 22:16:19 10月18日 Update

Today, I once again discussed the topic of storing pictures on the website, so I thought of the classic virtual application of storing pictures. That is, the "add virtual directory" function when IIS is released. Now this function has been gradually replaced by object storage service in the use of picture sharing.

In the traditional architecture, the virtual directory function is very popular because it enables multiple websites to share the same "picture read and write path". At the same time, it also achieves the function of centralized storage of pictures. However, with the development of cloud architecture, this usage is rare at present. Instead, static files such as pictures are shared and stored in the "object Storage" service.

There are many providers of object storage services. The object storage service provided by Aliyun is referred to as OSS, which can be purchased with coupons: http://2bit.cn/q. Thank you for your coupon support.

Why is the picture server no longer advocated? The editor temporarily thought of the following shortcomings:

1. Under the index performance caused by too many images in the same directory. Multi-level directory management is tedious, directory path is too deep and so on. Disk fragments are serious

2. Bandwidth bottlenecks caused by future concurrent traffic outbreaks, network contention caused by dynamic and dynamic resource sharing bandwidth, and slow website opening.

3, the requirement of independent deployment caused by the concurrent traffic in the future, which is deployed as a picture server independently, the process of independent deployment is tedious, and even needs to modify the source code to cooperate.

4, lack of high availability features, picture server downmachine, all referenced sites affected can not load pictures.

What are the advantages of replacing the current cloud architecture solution? The advantages of object storage are as follows:

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

2. There is no upper limit of bandwidth (in other words, the upper limit of bandwidth is very large, often 100 megabits start as standard configuration), which directly increases the difficulty of triggering bandwidth bottlenecks.

3. The storage space is expanded at will, and the obvious characteristic of cluster service is dynamic additional resources, which makes the business reduce or even avoid interruption.

4. Supporting services often support enabling CDN services with one click, which makes it easy to achieve further node acceleration.

5. Support additional processing functions, such as hotlink protection settings, image watermarking, access statistics, etc.

6. Pay by quantity, the most expensive thing for object storage service is often the traffic fee, but this fee is paid as much as possible. Therefore, we need to pay extra attention here, do not disclose private services to the public network. In addition to the purpose of preventing private files from being stolen, it is also necessary to prevent malicious brush traffic. In this step, improper setting is tantamount to turning advantages into disadvantages.

Original address: https://www.opengps.cn/Blog/View.aspx?id=59, the updated editor of the article shall be subject to this link. Welcome to follow the original articles of Origin Server!

Tags: Picture storage service object function bandwidth directory server business file architecture feature website support independent tedious replace it upper limit advantage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi macOS NVidia vpn Huawei