What language and architecture is Taobao trading system designed in, and how many travel itinerary are there?
Taobao Framework I. Personal Website On April 7, 2003, Ma Yun, in Hangzhou, set up a mysterious organization. He called ten employees and asked them to sign an agreement, which required them to leave Alibaba immediately to work on a mysterious project. This project requires absolute secrecy, and Lao Ma joked that "even talking in his sleep can't be heard by his wife. If anyone leaks it, I will chase it to the ends of the earth. " This agreement is in English. In a hurry, most people didn't have time to understand it, but out of trust in the old horse, they all packed up and left Alibaba. They went to a mysterious stronghold-an undecorated house in the lakeside garden community, and the owner of the house was Ma Yun. When he first joined the company, Ma Yun assigned them a task, that is, to build a person-to-person (C2C) commodity trading website in the shortest time. Now ask the reader a question to see if you are suitable for Taobao's entrepreneurial team. Honey, what would you do if you were asked to do it? Before I say this answer, let me introduce the members of this entrepreneurial team: three development engineers (Xu Zhu, Sanfeng and Duo Long), one UED (second in command), three operations (Bao Xiao, Ake and Tianbao), one manager (God of Wealth), and Ma Yun and his secretary. At that time, the biggest pressure of the whole project team was time. How to build a website from scratch in the shortest time? Anyone who knows the history of Taobao knows that Taobao was launched on May 2003 10, which is only one month. If you were in this team, what would you do? Our answer is: buy one. Buying a website is obviously easier than making a website, but their dream is not to make a small website. If they want to be big, they shouldn't just buy one. They should have relatively low maintenance cost and can be easily expanded and developed again. Then there is the second question: what kind of website to buy? The answer is: lighter and simpler, so I bought a website with this architecture: LAMP(Linux+Apache+MySQL+PHP). Until now, this is still a very common website architecture model. The advantages of this architecture are: no need to compile and publish fast and powerful PHP, it can do everything from page rendering to data access, and the technologies used are open source and free. We bought an American website system at that time. The name of this system is PHPAuction (their official website). The framework is easy to expand and facilitate component development. Its page template supports JSP and Velocity, the persistence layer supports iBATIS and Hibernate, and the control layer can use EJB and Spring(Spring came later). The project team chose this powerful framework. If this framework had been open source, there might not have been WebWork and Struts2. In addition, at that time, sun vigorously promoted his own in the world. Although the architect of Taobao thinks this thing is unnecessary, he still insists on doing it. After many technical discussions, arguments and quarrels, the architecture of this system becomes the following figure: Taobao architecture framework Java application server is Weblogic, MVC framework is WebX, control layer is EJB, and persistence layer is iBATIS. In addition, in order to reduce the pressure of database, commodity query and store query are put on search engine. Isn't this architecture better, dear? After these Sun engineers developed Taobao's website, they made a great website called Alipay. In fact, at any time, the development language itself is not the bottleneck of the system, and the pressure brought by business is on data and storage. The last article mentioned that when MySQL failed, Oracle was replaced. At first, Oracle's storage was on this machine, and later on NAS, it could not support EMC's SAN storage, and then Oracle's RAC failed, so we had to consider using minicomputers for data storage. In the summer of 2004, DBA Seven, Guo Fu, a test engineer, and the architect went crazy and embarked on the road of testing minicomputers in Beijing. When they came back with minicomputers, we welcomed them like leaders, because it was our most valuable equipment, and the figures on the price list were scary. After the minicomputer was bought, we rushed to take a group photo, and then Oracle ran on the minicomputer. In terms of storage, we jumped from EMC low-end cx storage to Sunoemhds high-end storage and then to EMCdmx high-end storage. So far, we have used IBM minicomputer, Oracle database and EMC storage. These things are very expensive, and those years can be said to have cost money like water. Someone once said that "nothing money can solve is a problem", but with the development of Taobao, money will not solve our problems in the near future. Spending money on luxury configuration may support a website with 65.438+0 billion PV, but the development of Taobao is really too fast. What if it reaches 654.38+0 billion? To10 billion. Why? N years later, we will create technology to solve these problems that only the world's top websites will encounter. Later, we independently developed on the basis of open source software, and removed IOE(IBM minicomputer, Oracle, EMC storage) step by step. Just like in Journey to the West, monsters can get the weapons of the immortals, even monkeys can beat them, but the most awesome immortals don't need these artifacts. They waved their sleeves and turned their palms, which was very powerful. The part of going to IOE will be discussed in the last chapter, and a thousand miles of foreshadowing will be laid here first. Listen to the next decomposition.