Coquettish Rebirth

Chapter 1969 Difficulty of in-app purchase system

"Is an in-app purchase system so troublesome?" Jia Hongjian was surprised at the time.In his impression, before the Internet opened up for ticket purchases, when going to the train station to buy tickets, the conductors always typed on the computer, as if they typed in a pinyin abbreviation of the station they visited or something, and then Information such as the train number and time that can arrive can appear, and then you are sure to buy it, the conductor will operate to print out the ticket, and then the passenger will pay for it.For example, when he was on a business trip, it’s not that he never bought a train ticket, especially around the time of the Spring Festival travel rush. He waited for a few minutes!

"Troublesome, quite troublesome." Ni Guangnan shook his head at this time and said, "Mr. Jia, think about it this way, we have a total of 26 stations from Station Z to Station Z, and we have 25 ways to sell the bus just from the station. , that is, 25 tickets, that is, to b, to, to, to e... Then those who get on the train at station b can sell 24 kinds of tickets, and those who get on the train at station b can sell 23 kinds of tickets, and finally add up such a line with a total of 26 stations. We have 325 ways of selling. Then, the ticket sales system does not mean that after selling such a ticket to station b, there are still 324 kinds of tickets that can be bought, because the tickets that arrive at station b cannot be sold Now, even the ticket to z can’t be sold anymore, at most it can only be sold from b to z. So 25 sales methods are reduced at once. If a ticket is sold at station b, there are also different reductions. In the end, it can be said to be a very complicated mathematical algorithm. At the same time, we must also take care of the reality, not to say that it is enough to make a formula according to this single-line process, but also to have reverse real-time interaction, such as the arrival of the ticket. If it is dropped, the people will not leave when they turn around, and they come to refund the ticket, and then the refund will lead to the occurrence of to, to b, to, b to. b to. to so many tickets..."

Hearing what Ni Guangnan said, Jia Hongjian probably understood that the calculation amount of the program behind this can be said to be quite large, and the speed must be required.It cannot be said that after refunding a ticket and buying a ticket again, it will take him a long time to reflect.It doesn't take a few seconds to calculate.At least the ten-second level must be reached, right?

Then Ni Guangnan continued to complain: "And this matter is too troublesome to talk about. This system has very high requirements from the inside to the outside, starting from the server. The server, the switch, the server's operating system, and an interface for the front-end software Servers, databases, and even load balancers are needed... This load balancer means that it will not overload a server, and try to average the calculation data to each server. The total amount of this project is really not small. , it is no less difficult than our secrecy system, although there is no need for secrecy. However, if so many ticket offices across the country are inquired together, the calculation of each server has a physical upper limit, so it is impossible to say that thirty or forty servers can It’s done, maybe hundreds of servers are needed. Then, we can’t distribute so many products to many servers, we can’t say 5000 for this side and 5000 for that side, because the difference between tickets They are all interrelated... This posture is equivalent to selling things at the counter of our company, and then tens of thousands of people come with money and shout to buy, we finally gave a ticket to a customer, and then we have to turn around and shout The inventory needs to be reduced by more than a dozen, but the problem is that the colleagues behind us are also facing tens of thousands of people clamoring to buy things..."

Shit, is this such a hassle?Just when Jia Hongjian was surprised, he saw that Ni Guangnan hadn't finished speaking, "And it's not the end of the matter. The problem is what if both parties bought tickets at the same time. Although the probability is low, we can It has to be considered, just like our Huaxia Hi-Tech sells products. If the same unique product of the same model is sold by two salesmen at the same time, the money will be taken and the goods will be shipped to others. It turns out that Crashing, we can’t talk about quarreling temporarily, we have to have a solution designed in advance. If this solution is controlled by one or a group of servers with a single thread, for example, two servers transmit tickets at the same time The applications for the tickets arrive at the same time, and such a group of servers decides who comes first and who doesn’t, so all ticket purchase applications during the Spring Festival travel season across the country have to queue up for this server one by one, so the processing speed must be slow, because the server every time The amount of data that can be processed in seconds is limited, so maybe we can barely make it now, and the speed will slow down in two or three years when the 18 billion person-time Spring Festival travel period is really reached, and it will be too slow in a few years!"

Speaking of this, Ni Guangnan's mouth was a little parched, he poured a glass of water and took a sip before continuing: "And it's not just the Spring Festival, isn't it said that there will be a Golden Week next year, May Day will add up to 7 days Holidays, the National Day adds up to 7 days off, and the Spring Festival also has 7 days. It is expected to be the peak of the flow of people. At this time, you said that if we follow the standard of not delaying the time of the highest flow of people, ordinary days must be a waste of money. After all This server also needs to be maintained, and there are depreciation fees for electricity, bandwidth, and even hard disk usage. If it is not good enough, all hard disks will be thrown away in 3 years and all new ones will be bought. We cannot say that we can get it for 21 days a year. The remaining 300 are losing money every day! Anyway, it’s a troublesome thing!”

"Then what do you mean, we can't do it?" Jia Hongjian asked at this time, he felt that what Ni Guangnan said just now summed up such a meaning. "It's not that it can't be done. I was scared away before I did it. This is too embarrassing. What I mean is that we work hard, but whether we can really make it and whether we can really do it well, we will decide I can’t guarantee it, Mr. Jia, you also know in advance, after all, we are not as good as bm, bm has been playing this for decades, and he is an expert in this field. It is impossible to say that we are number one here God does it, and then some internal data can defeat bm, if this is true, bm will not survive today, and he was killed out of a sea of ​​people..."

Hearing this, Jia Hongjian nodded. He understood the difficulty of this matter, "That's fine. Let's adjust our goals this time. Needless to say, it's a victory if we can do it well." Ni Guangnan at this time He also nodded, "That's what I mean too. It's meaningless to aim too high. It's a major victory if you can do it. To be honest, the train transportation in our country is too much. The traffic during the Spring Festival travel is equivalent to people all over Japan People move back and forth ten times... If this short-term burst of transport capacity is used during the war, 15 billion person-times is equivalent to transporting 15 billion People's Liberation Army to the front line in one month... other countries in the world I guess it all depends on being dumbfounded. I heard people say that the railway system of the country in Europe is the layout of the railway system of a province in China... This kind of solution can be made, let's not say that we can catch up with BM, but At least it can become a well-known solution team in the world. At that time, it will sell tickets for the railway network in countries such as Europe or Japan. I guess it can be done easily with eyes closed..."

"Hehe. It's not good that there are too many people... American railways are still freight freight, which is relatively good, and they have few people. Thanksgiving and Christmas mainly rely on air transportation. We can only rely on railways here. We can increase the transportation capacity as much as possible. I hope that there will be more and more buses on the highway in the next few years. It would be nice if we can divert them a little..." Jia Hongjian just finished speaking, when he saw Ni Guangnan shaking his head, "Highway? Highway this year It is not reliable, and it is estimated that it will not be reliable in the next few years! Mr. Jia, do you know that when we contacted the Ministry of Railways, they also said that it was because we Huaxia Hi-Tech produced the Bujing 660, saying that the Ministry of Communications expected Before the Spring Festival this year, the roads in the east-west direction of the country may be blocked...Many people have bought cars, and they have to go home to show off? Otherwise, it will be a night walk in Jinyi! So I guess that the whole country may not be able to do well during the Spring Festival. There are [-] cars up and down...”[

hiss!One hundred thousand times?so much?Jia Hongjian did a careful calculation here, and it is almost the same. The Bujing 660 has been on sale for a long time. Now the annual production volume is 30, and they are all sold well.In this way, among the hundreds of thousands of vehicles, there are 60 vehicles that want to go home. Isn't it [-] vehicles every time?These days, domestic highways are not as developed as those of later generations, and the speed cannot be increased when running at a speed of [-] kilometers. If there is a car accident or something when driving at a speed of [-] kilometers, shouldn’t it be blocked?

However, there was nothing Jia Hongjian could do about these things. He couldn't say that he paid for the construction of highways all over the country, could he?On the other hand, this kind of motorization is also a death in the future. If you don’t enter into motorization now, you will enter it in the future, so everyone can get used to it as soon as possible.And driving a car can also drive economic development along the way!

After negotiating with Ni Guangnan here and resetting the goal, Jia Hongjian left the company to pick up old man Schmidt.Today I'm going to take the old man to the Ten Thousand People's Gymnasium to give a speech.Same as last time, many students will come to listen this time, but this time it is mainly college students, because the old man is not mainly talking about personal growth experience this time, but mainly about an international situation and Things like China's development prospects, this topic is more suitable for college students.

It can be said that Huaxia Hi-Tech invested a lot in this speech - the old man will speak directly in German, and Huaxia Hi-Tech will provide earphones to the audience one by one, and there will be simultaneous interpretation for those who are connected to the earphones.This kind of simultaneous interpretation is basically not practiced in China, but fortunately, the old man has a manuscript this time, so basically the simultaneous interpreter is a person who reads the manuscript and directly translates it, and even reads it. Manuscripts may be polished and translated in Chinese in advance, and such a Chinese translation in advance is also for direct subtitles in post-production.

After this speech, after a short break, the next thing is filming - anyway, the place has already been rented, and there are students, everyone sends some money to a box lunch, isn't this an extra?Find one or two people who have acting background, pretend to be college students and come over to ask questions, won't this movie be able to be filmed?Like a stage or something, if you temporarily change it and add two chairs, it’s basically a thing!Moreover, Jia Hongjian and the others have already prepared and translated the manuscripts for speeches in this play, and their theories and opinions are not much different from those of the old man. Basically, the old man can memorize some data and start talking directly. up! (To be continued..)

〖∷Update fast∷∷Plain text∷〗

Tap the screen to use advanced tools Tip: You can use left and right keyboard keys to browse between chapters.

You'll Also Like