Joke Collection Website - Joke collection - What kind of behavior is it for programmers to delete libraries and run away? _ code to delete the library and run it.

What kind of behavior is it for programmers to delete libraries and run away? _ code to delete the library and run it.

IT is said that the first lesson learned by IT operation and maintenance personnel is "from deleting the database to running away". Although this is a joke, in some IT companies that are not very standardized, many operations of IT operation and maintenance are online, which will bring disastrous consequences to the database of enterprises if they are not careful. If there is no backup and the customer's data can't be retrieved, then most enterprises will be ruined, and some even have to compensate customers for their economic losses. Therefore, an important part of IT enterprise operation is backup. Formal enterprises will have a variety of backup methods, such as remote backup and cloud backup. Moreover, there is more than one IT operation and maintenance personnel in regular enterprises, and each operation and maintenance has different permissions. Generally speaking, the operation and maintenance personnel who can access the data do not have the authority to operate the backup data, in order to avoid an operation and maintenance "insanity" and put the data and backup in a pot.

Tencent is the leader of IT enterprises, and its rules and regulations and backup mechanism are definitely the most perfect. Therefore, if WeChat is deleted by the operation and maintenance department, then there will definitely be other operation and maintenance departments to replace each other's work for the first time, and then restore the data through backup. In this case, WeChat may not be able to log in, send messages, open official WeChat accounts, applets, etc. The duration is determined by the data recovery speed of operation and maintenance personnel. Generally speaking, as long as the server storing the data has not suffered physical damage, the data deleted by ordinary means can basically be recovered. Even if the database is completely emptied and the backup is gone, data can be retrieved by restoring the hard disk. Just a little slow. For example, Wei Meng, which was deleted in this incident, has announced that it has completely retrieved the data and will officially resume online from the evening of March 2 10 to 9: 00 am on March 3.

As for the number of users of WeChat is 65.438+0 billion, so the data and backup involved have reached several orders of magnitude. Therefore, it is very likely that the database of WeChat is not mastered by an operation and maintenance personnel, but is divided into several or even hundreds of parts, which are controlled by different operations. The permissions of each operation and maintenance are different, so they cannot access each other. Even every piece of data is kept in a different place. In this way, even if one of the operations deletes the database and runs away, it may be a small part of the database that affects WeChat, and it will not affect the whole. For example, deleting a user database may only cause hundreds of thousands or millions of WeChat users to log in normally, while most other users may not feel any impact at all.

In addition, the chat data of WeChat is not stored in the server, but in the user's mobile phone. Therefore, even if WeChat is deleted, the user's chat record will not be affected, as long as the user guarantees that the chat record in the mobile phone will not be deleted. Conversely, if the chat record in the mobile phone is deleted, there is basically no way to get it back. In short, WeChat data must have strict and safe protection methods and a very safe and effective data recovery scheme. Therefore, even if the operation and maintenance deletes the WeChat database he is responsible for, it may not have much impact on WeChat as a whole. The situation that data can't be retrieved after being deleted by the operation and maintenance department usually only happens in non-standard small and medium-sized enterprises.