Jingdong is very hot recently, Tmall supermarket flying Maotai snap up is what is going on, from the principle of the process to give you a wave of analysis

@[TOC]

Recently very hot JINGdong, Tmall supermarket flying Maotai snap up is how to return a matter, from the principle of the process to your analysis of a wave

There is no evidence to support the data in this paper. If there are similarities, they are coincidences.

Jingdong Maotai introduction

Recently, Maotai shopping suddenly became popular, inexplicable.

And the original JINGdong script snap up the author, leaving a sentence, a jingdong warning screenshots, disappeared.

But the waves he made continued. Those 7K pieces of code that were forked on Github will be forked again and again

In a month ago, JINGdong Flying Maotai panic buying, in fact, few people know that the appointment every day in 100,000, at that time with scripts are scalpers, ordinary people basically have no script available.

And then, about 10 days ago, scripts took off.

However, until now, the number of people booking maotai on JD.com has been soaring. Now there are a million people a day + booking buying.

But I’m guessing it’s not going to increase.

So that’s why a lot of my friends say it’s getting harder and harder to buy. After all, the denominator has increased by a factor of 10.

On the other hand, JINGdong tieding is changed some rules of EID and FP, ordinary goods do not know. But Maotai this commodity, under normal circumstances to obtain EID and FP is not good.

So let’s analyze how much JINGdong has earned from its bookings in the last month

Why do you say so? Because JINGdong is still a thief, you need to open a JINGdong Plus member to buy, so now, what is the price of opening a Plus member? I look at it now, and the year card is 1491. A conservative estimate, assuming that the script has generated 1 million purchases for JD.com, then this month, JD.com has made an additional profit through Plus: 149 million. I think, this among them, actually has the original author’s half credit.

So again, you may make money, but I’ll never lose.

In addition, you should not think jingdong 1499 sells a bottle of Maotai, jingdong subsidies how much. This is not necessarily true, this depends on jingdong and Maotai is how cooperation.

Tmall Moutai introduction

I didn’t know that Tmall supermarket could snap up Maotai at first, but after some fans reminded me that Tmall supermarket could also snap up Maotai.

So I went to find out. Found, or tmall conscience, no threshold, everyone can snap up. Full hand speed.

What credit score is high ability to grab, credit score is low direct risk control, it seems at present, Taobao did not do this kind of thing that falls into the hands of people.

Everybody’s equal. There’s nothing to talk about. Everybody go hand speed.

Now, let me talk about the theory behind it. Of course, I guess jingdong and Tmall snap up the plan. I don’t know how to realize it, but according to this plan, a similar function can be realized.

Jd.com buying process

Simple and clear flow chart

Let’s start with JINGdong.

Draw a simple flow chart:

Null and 90008

In the flowchart, it is fully demonstrated why some people return NULL, others 90008, and others 90016. Of course, this is my guess, the specific situation, you have to ask jingdong developers.

Although the rush is unfair. But for JINGdong, or for server pressure, or other capital reasons, it is a very good choice.

Why do you say that?

Server pressure section

First, the causes of stress. You should know that as the concurrency gets bigger, the challenge for the server, for the technician, gets bigger. The cost of the server will be higher.

Jd.com is smart enough to return NULL and 90008, which filters out a lot of concurrent requests. This frees up excess server load to handle normal business.

In addition, I think one of the reasons that THE jingdong server can support the sharply increasing number of appointments and concurrency is also because it filters a lot of requests. Why? Because a lot of people obviously feel that null is returned a lot. It is possible that the server could not support such a large amount of concurrency and discarded some requests directly at the front-end server. Or, without any computation, it is also possible to determine the small white credit score directly, or to make a random number and return it directly at the back end.

Easy to understand locks

Another thing about returning to 90016. Maybe some friends don’t understand locks, so I won’t go into a long story here. Just to be brief.

It is understandable that panic buying is to enter a door, and there are two bottles of Maotai inside the door, now good. There is a lock on the door, and the lock has a key, and one key only. Originally there were 100 big men, although the guard drove away 90 big men, but there are still 10 big men came to the door at the same time, what to do at this time, then what can be done, the hand of the first to get the key, so who has the qualification to enter the door.

So, the other nine guys, they can only do one return with the 90016 number. And that a big man, congratulations, took the key into the door, carried away maotai.

Other reasons

As for capital reasons.

You use my jingdong, your small white credit score is high, so I give you point privilege, looking very reasonable.

As for friends who have just started Plus membership, xiao Bai’s credit score will not be high. So basically belong to jingdong send money series.

Jingdong wants you to open membership, and then some subsequent consumption, and strive to improve their small white credit score.

As to the usefulness of this idea, I’ll leave it at that. I know what I know.

Tmall shopping process

Tmall’s risk control is very cattle, this I recognize.

Whether you use a crawler script or another driver script. Large probability will be identified by Tmall.

Then I figured out a way to do it, which is to open the browser myself, and use the screen pixels and the element positioning to click on the screen coordinates. It works. But it’s actually not much faster than finger point. And measurement trouble. I’m just gonna leave it at that.

Simple and clear flow chart

Ok, let’s take a look at the flow chart of Tmall. This is actually a lot simpler.

So, the way of buying here, obviously much simpler than JINGdong, and a lot of kindness, but in principle, here I did not write the way of lock. It’s by token.

Of course, lock or token, are only one of the implementation methods, the specific use of which, or only the development staff know, not to go beyond. Keep looking at the picture.

Token way to snap up Maotai

So this token, I don’t know, for those of you who have learned programming, you already have a number. A fixed inventory. That’s easy to manage. Prepare a bucket and put 100 bottles of Maotai in it (let’s say 100 bottles).

Well, that makes it easier. One person comes in, that person takes a bottle, gets it, and leaves. Then someone asked, at the same time several people reach out to take Maotai how to do, well, we prepare a channel, the channel next to a bucket, Maotai in the bucket.

Then two or more people will not reach into the barrel at the same time. To say what this channel is, just say a line, with Redis can be easily implemented. Besides, you can lock it. Only let the hand that holds the lock reach into the bucket once.

Why is Tmall’s fair

Of course, the specific implementation I do not know, I am from the surface analysis ha.

Tmall does not have jingdong’s xiaobai credit card points, nor does it have some other probabilistic null situations. Tmall’s friends are in a starting line, compete network speed, compete hand speed. That’s why I think Tmall has to be fair.

Because Tmall is first come, first served. Instead of like jd, you arrive first, I check your credit score, what, credit score 80, spicy chicken, give you back 90008/ NULL, next.

The last

I also do not know whether I have clarified some points of buying, including the general process of JINGdong and Tmall. For those of you who are not technical, if you can understand the flow chart through my annotations and diagrams, then my article is ok.

In the last 10 days, I have changed a lot because of the script. I used to think that technology, the more sophisticated it gets, the worse it gets.

But now, I don’t think so, I think is, after all, people who understand technology are a few, most of my friends do not understand technology.

Since you are sharing and you are writing articles, why not think about the vast majority of people. I think I now want to understand, in the future tutorial article, I will try to write some easy to understand. Why don’t I use some examples along with some technical terms.

If you think you understand this article, I hope you can give some support, my public number needs your attention. Thank you to every friend who follows me.

In addition, the following two articles, want to study friends can go to see

1499 Flying Maotai panic buying script tutorial, problems and solutions summary index

Python problems encountered during the use of Python project code Summary Index