Restructuring of Chinese Valentine's Day

Preface

    With a pinch, the Qixi Valentine's Day, which has not happened in ten years, is coming soon. Are you ready? . .

    It's okay to see me upset, but if you have to beat my friend, he is not as simple as beating me. He even beats himself when he gets angry.

Rumors

    1 Restructuring

    The system is too slow, try to find out the slow SQL optimization, the development efficiency is low, the system is split and split, a system, if the failure occurs frequently and can not find the failure point, then how to optimize, if the system bottleneck is not found, So how to optimize it?

    Take over a bad system, emmm. . . In order to maintain the face of some people, we can't say that it is bad, but there is still a lot of room for improvement, so we can restructure the architecture. . .

    The prerequisite for the architecture reconstruction is, if the system is designed from 0 to 1, what is the difference from the current system? What known issues can be resolved? For these known problems, how many times the improvement can be achieved. . . This requires a lot of pre-work to analyze the current system architecture and find a list of existing problems. . .

    In detail, architecture reconstruction and divorce seem to be very similar. When architecture reconstruction, two things need to be considered. One is the reconstruction of the application layer architecture, which can be split to reduce the dependence between systems. Just like divorce, oh, two people are separated. It’s not that they don’t love, but that they can’t bear some of the current problems. Look at the application refactoring. The same is true. You can’t stand the dependency on mutual modules or functions, and one has a problem. The entire system is affected, just like a divorce quarrel, a quarrel, it’s not easy. . . Without dependence, there is no harm. . .

    Another thing is the reconstruction of the persistence layer, just like the division of property during divorce. I bought this one, and that is the same. This is just like the reconstruction of a database. Some data in this table belongs to the business system. Some data is in the management system, everything is mixed together. . . In divorce, children are the ones who suffer, just like various unstructured data in the persistence layer, such as file storage and key-value storage. . . It is quite troublesome to separate them. . . The reconstruction of the persistence layer either requires data cutover or treats the child as a common part. This part will not be dismantled. After all, storage dismantling is still very troublesome. . .

    We always say that we need to refactor, but behind the various outbreaks, what is the core problem and what is the problem we want to solve? Just like in a divorce, what does the divorce resolve? Doesn't the same problem occur with another object? The reconstruction is better, after all, it is a targeted solution, and the time can be estimated. . . However, remarriage after divorce is hard to say. After all, it is hard to say that someone caused the problem. . . Many people say that one slap will not sound, but I have never believed it. . . You stretch out your face and I slap you to see if it smells. . .

    When you want to restructure the architecture, think clearly about a problem, risk, which means that the business has been launched, how to make the product and technology bear the risk of replacing the system; value, which means how to convince the boss to invest resources to do this; plan, This means that there is a clear point in time to achieve the goal; input cost, time spent, and manpower consumed. . . The final benefit is value minus cost. . . Measurable indicators, measurable goals. . .

    2 The origin of bad architecture

    In fact, it cannot be said to be a bad architecture. It cannot be blamed, complained, or complained. It should be said that this architecture is not suitable for the development of the current business. When it was originally designed, it was limited by manpower and time, which resulted in the architecture not being properly designed. , Forced by the urgency of the business, which led to today. . .

    Just like getting married, it’s not because of love, but because of pressure from the environment, pressure from age, and pressure from peers, which makes it impossible to do it obediently. . . love? The beauty of thinking. . . Hahaha

    Meet the right you at the right age. . . This is a good structure that can grow together, be tolerant, and be different, then the problem is coming. . . Do you choose what you love, or choose to love you. . .

    Generally, if you choose the one you love, then there will be a situation where you cannot control this kind of architecture ability, perhaps because of insufficient technology, or insufficient ability, which will lead to various failures, which seem to be proactive. Actually passive. . .

    In fact, if there is a problem with the structure, it is also a good thing. It shows that the business is developing rapidly, and if the structure has not had any problems, it means that the business is just like that, and it may become pornographic one day. . . Therefore, opportunities and challenges coexist. . .

    We live today, but we are planning tomorrow. . . So the question is, what are you drawing? . .

    It's hard to love someone, just like the Cowherd and the Weaver Girl. . . I only meet once a year, so there are many things, not just hard work, don’t ask why. . . Asking is because of love. . . There is no love for no reason, and no hate for no reason. . . Don't ask, ask because of love. . . Hahaha

    Say good Valentine's Day, say nothing. . Which pot does not open and lift which pot is not intentional, but intentional. . . Blame me. .

    I recently read a book called Architecture is the Future. . . Look, how do you feel. . . Kneeling is the future. . . You taste, you taste carefully. . .

    Don't ask me what I think about every day. . . I have no brains at all, hahaha. . . Buy first and then open to win or lose without any complaints. . . Since it is a salted fish, don't add drama to yourself, after all. . . Salted fish turned over or salted fish. . .

Guess you like

Origin blog.csdn.net/TM6zNf87MDG7Bo/article/details/108177589