MTL - Internet 2010-Chapter 6 Silky user experience

If audio player doesn't work, press Reset or reload the page.

After a short rest, Lu Zhou cleared his mind and resumed work.

With the function modules of login and attention written in the morning, the forwarding and commenting function to be developed later is a matter of course, and most of the function calls are similar.

In addition, the current Luzhou has rich development experience in the past life, so it is not a big problem to realize it.

After a few hours, Luzhou completed the automatic operation machine program.

Seeing that there was nothing to do, and Fang Qiang didn't finish it, Lu Zhou opened Ali Mall and registered a seller account first.

Then I compared the prices of other merchants that buy and sell scarf fans, and directly listed several products, which were priced at 10 yuan for 100 fans, 10 yuan for 100 retweets, 40 yuan for 100 comments, and the last one titled "Sina Weibo Fans" 1500 people + 500 retweets + 100 comments" promotion package, priced at 198.

As a person who came here in 2018, Lu Zhou, in his opinion, the prices of these items are a little expensive, and he would definitely not buy them if he changed them.

But in the current year of 2010, at this time, the scarf is very popular, and most of the classmates and friends around them will use the scarf, forming a social circle in the virtual world.

At present, the number of users of bibs is huge, and there will always be people with good face or marketing bibs who are willing to pay this money to buy fans.

On the other hand, the fans trading in Ali Mall are all registered manually by small workshops. Both the cost and the price are much higher than those of Luzhou. On the contrary, the price in the Luzhou store is more affordable.

After thinking about it this way, Lu Zhou felt a little relieved, after all, each era always has its own characteristics.

Of course, he didn't expect this price to last long, as long as he made the first few months of money, he won the jackpot.

When there are more people doing automatic registration in the next few months, if he slowly lowers the price, he will still make a profit.

As for the real-name system of scarves that has really hit this piece of business, it will not be implemented until two years later.

Naturally, Lu Zhou would not think that this business could be done for two years. At present, it is urgent to solve the difficulties of the family first. The sooner the money is, the better, and it will not be too late to start another project with the start-up funds.

"Hey, it's a helpless move. If you write down the lottery numbers, the financial market trend in 10 years will not be so difficult. I remember that the stocks of several large Internet companies in China and the United States have risen several times in 2018. But there is no capital, long-term investment is ok, short-term is really worthless. Work hard!" Lu Zhou couldn't help but sigh.

Later, Lu Zhou walked out of the room to see Fang Qiang's progress, but found that his intermittent writing speed was a little slow.

In the end, I couldn't bear to see him stuck and panicked, so I helped Fang Qiang to complete some of the corresponding functional modules, and gave Fang Qiang the time saved to explain some details of the program implementation in the code warehouse one by one.

Lu Zhou explained to Fang Qiang attentively, "For example, the function module here, your approach is to perform tasks completely linearly, submit data for registration and storage, and each function is executed step by step, here you can open multiple threads to register at the same time. , thereby increasing the efficiency of the program. Of course, in practice..."

After explaining some of them, Lu Zhou took a sip of water, and then continued, "Alternatively, you can also do another way, such as opening multiple elastic cloud servers and attaching IP proxies from multiple servers, which can also greatly improve Efficiency of automatic registration. And coordinated scheduling in the case of multiple servers..."

"For another example, in the case of multi-threading, the random number generated by each automatic registration based on the timestamp may not be unique, which may lead to duplicate registered accounts. Here, your program will throw an exception without judgment.... .."

......

Fang Qiang seriously absorbed Lu Zhou's thinking of writing programs, and kept shouting "Lu Ge v587", just like the little fans who watched the god-level operation behind the great **** and called 666 behind.

Buzzwords are changing, mantras are changing, and times are changing.

The code on the editor is displayed to the last part. Lu Zhou pointed at the relevant code on the screen. After the last part, he felt dry and drank a cup of plain water.

Fang Qiang on the side was intuitively enlightened, just like a monk Xuzhu who had just been instilled in his skills for decades, his face was dumbfounded, "You lie in a big groove, Brother Lu, why do I think you are better than last time? When explaining the project to me, you have to make cowhide."

Lu Zhou had no choice but to make an excuse, "It may be because of the influence of the team leader of the unit, and I have become enlightened recently. Anyway, work more and think more. Well, and don't think too much!"

Fang Qiang was said to be out of temper, "Xing Xing Xing, Mr. Lu has not seen him for a few days, he is a few years older, and he is also old-fashioned when he speaks. If it is to avenge my slip of the tongue at noon today, I will force someone Nothing to say."

Lu Zhou also shook his head speechlessly. Really, which pot didn't mention opening that pot, he Lu was such a stingy person?

Afterwards, I didn't bother about these small problems, and patted Fang Qiang on the shoulder, "Okay, after the test is completed, submit it to the code repository. After confirming that there is no problem, I will go directly to the server and run the automatic registration. After all, it’s not a technology-driven project, and you have to hang it up and sell it before you know if there is a spectrum. As long as the program is not a big problem, you can make minor repairs.”

Fang Qiang also smiled and said, "Okay. Brother Lu, discuss something, can you take me in at night. I have no class tomorrow, and I can learn something while you are here."

Lu Zhou laughed for a while, poured a glass of water, and walked to the room, "I'm afraid I'll go back to the dormitory to play games again, anyway, I'm also alone, you can stay if you want, the sofa will serve."

Fang Qiang also gave a direct salute, "Yes, sir!"

After Lu Zhou returned to the room, Lu Zhou changed Fang Qiang's program to directly poll and register all the proxy IPs once, and then use the initial IP to register.

The most time-consuming part of the automatic registration of each account is the return time of the two verification codes, which is as long as 5 seconds. Luzhou added a thread pool control, changed it to start a thread every second, and went to the next proxy ip to continue. Registration, the time of each thread will end immediately after the registration is completed, so as to avoid occupying server performance.

This ensures that there is no need to worry about too frequent registration of a single ip request, and no need to worry about the server performance being too tight, and can register an account every second, a round of 2,000 ips, one account per ip, about 1 hour and 4 minutes Complete a round, 5 and a half hours to complete a day's tasks.

After the inspection was completed, Lu Zhou logged into the Amazon cloud, and after registration, opened an AWS cloud server instance in northern California with a credit card.

First, wait for Amazon's management system to instantiate the system on AWS, then install the necessary operating environment such as database and code environment, and finally push the code repository to the server, establish a resident task, and complete the whole process .

Due to the aws network conditions in northern California, the whole process of deploying and pushing the code is a little slow.

In this regard, Lu Zhou is helpless.

China's Ali and Penguin will not start to provide cloud services until next year and the year after, and Qiandu cloud service will not arrive until five years later. At that time, Ali and Penguin have already divided up most of the cloud services. market.

As for buying a server, if it costs tens of thousands of servers, the cost is even higher, and it is not suitable for purchasing at this stage.

Lu Zhou couldn't help but complain, "It can only be used for survival. Let him run after deployment."

After thinking about it, it seemed that something was missing, so he called Fang Qiang, "Qianzi, come here."

Fang Qiang also heard Lu Zhou's call outside the living room, and also came to the room, "Come. What do you say?"

"We will make a management background for users to fill in the relevant information about the scarf by themselves. We need to call some interfaces of Ali Mall. Are you interested in doing it?"

Fang Qiang pretended to be reluctant, "You're better than the black-hearted boss. Let the boss say if you do it or not."

Lu Zhou's face had already seen Fang Qiang's appearance, "Wake up, if you don't do it, I can finish it in an hour when you come back for dinner. I'll give you so much **** to practice your hands."

After dinner in the evening, Lu Zhou instructed Fang Qiang, and the two of them made the entire management background directly.

The function of the main body is not complicated, and it is divided into two parts: the call of the Alibaba Mall interface and the background logic. UU Reading www.uukanshu.com itself does not need to consider the aesthetic design, so it does not take much time.

In the entire management background module, the program obtains the product information purchased by each user in Alibaba Mall through the interface, and then generates a random account and password according to the order number. After the user logs in and fills in the information, the request form submitted by the user is handed over to the automatic operation. machine to complete the work of following, forwarding and commenting.

For example, a user purchased the 198 promotion package in Luzhou Store. The management background written by Fang Qiang first obtained the order information through the data interface of Alibaba Mall, then generated the account password according to the order number, and then called the interface again to generate the account. The password is sent to the user through Alibaba Mall's messaging system. When the account password is generated, the management background automatically recharges the user's account with 1,500 followers, 500 retweets, and 100 comments.

Then the user only needs to log in to the management background with the account password, fill in the corresponding bib account or the bib link that needs to be commented and forwarded, and the automatic operation machine will perform the corresponding operation.

The idea of ​​Luzhou is that it can automate and allow users to freely choose not only to reduce their work, but also to be more humane.

After everything was checked, Lu Zhou also sighed, "Well, perfect... It's definitely not for show operation. This is called a silky user experience."

Now that the automatic registration machine and the automatic operation machine have been completed, it is also easy to do automatic management, not to mention that it saves time, effort and money.

After thinking about it, considering that there was less traffic in the store in the early stage, Luzhou opened the advertising through train service of Ali Mall, and directly recharged one thousand yuan.

"I've been a successful person since tonight. I'm a little excited when I think about it."