Xi'an's health code crashed twice in a row, and the incident continued to ferment on the Internet. The relevant responsible persons were suspended, which was considered an explanation to everyone. However, the Yimatong incident is not over yet. Some netizens found that in a report on the Yimatong project in June 2021, there was a suspicion of exaggerating the "technical difficulty". The report mentioned: "In order to ensure that the system runs more efficiently, they compressed a picture from 1MB to 500KB, and then optimized it from 500KB to 100KB." The report also emphasized the technical difficulty of this matter. The technicians stayed in front of the computer for two days and two nights and finally overcame the "difficulty." So, is it true that the Xi'an health code crashed twice in a row because of "image compression technology"? How difficult is image compression technology?First, you need to determine whether the image can be compressed. Images such as health code images and advertising images can be compressed. The screen size of a mobile phone is limited, and the display effect of a 1MB image is no different from that of a 100KB image. Image compression is not a difficult technology. Converting png to jpg, modifying the image resolution, etc. can achieve the effect of compressing images. It is impossible to optimize a 1MB image to 100KB in two days and nights. Moreover, in high-frequency usage scenarios, using such a large image itself has defects in product design. The key to the problem is not the difficulty of compressing images, but whether the technology used to develop the application is up to standard. In this regard, netizens raised a question: Is the QR code generated on the client? You should know that the information transmitted by the QR code is a string of characters, which may be a website, product information or a download link. The server only needs to transmit these characters to the client, and then the client generates a QR code image. In this way, the size is at the 1k level, and 100KB is not needed at all. If the QR code image is generated on the server side and then transmitted to the client, this is a very stupid approach, because it will take up a lot of bandwidth, and when there are too many users, it is easy to crash, and most developers will not adopt this approach. In view of the report of "compressing images for two days and two nights", many insiders have to doubt whether Yimatong will adopt this approach. If so, it is not surprising that it crashed twice in a row. After capturing the packet of YimaTong, netizens found that this situation did not occur. YimaTong indeed uses the method of generating QR codes at the front end. Obviously, the picture mentioned in the report that was optimized from 1MB to 100KB was not a QR code, but an image such as an advertisement or logo. The reason why Yimatong crashedNetizens discovered some existing problems with Yimatong by capturing packets, such as an 87KB "breaking news" picture that appeared on the homepage, which was just a thumbnail of an article. If during rush hour, many users open the One-Code Page for the first time and it is not cached locally, the server will inevitably be under tremendous pressure and may easily crash. In this high-concurrency scenario, such large images should not exist. Another factor may be that the bandwidth of the OneCode is not enough to support the needs of citizens during the peak period of code usage. It is not important whether the problem is that the technology of One-Code Pass is not up to standard or the bandwidth itself is not enough. What is important is how we should learn from these two lessons and avoid such situations from happening again. After all, during the epidemic, the inability to check the health code will not only affect travel, but also cause many indirect losses. |
<<: One skill a day: You can make a mistake in splicing a URL, and write a crawler
>>: 5G messaging accelerates commercialization and may become the first batch of 5G applications
From 5G to Wi-Fi 6, connectivity is opening up ne...
According to Sina Technology, at the 2021 Technol...
Ethernet is a technology used to connect various ...
In the early years, when I was a student, I often...
What we are going to talk about today is other co...
In the current network, if the same RRM (Radio Re...
Recently, the U.S. aviation and telecommunication...
1. About TCP retransmission TCP retransmission is...
CloudServer is a foreign hosting company founded ...
Today, digital transformation has become a global...
[[434247]] Reasonable configuration of channel wi...
With the popularization of the Internet, 5G integ...
Security researchers from Nepal recently discover...
[[414223]] This article is reprinted from the WeC...
[[422647]] The fact is that the global outbreak o...