Secret support 1 billion WeChat red envelopes behind the amazing technical secrets
Abstract: in 2015, WeChat red book, new year’s Eve shake a total number of 11 billion times, the peak is 14 million times per second, 810 million times per minute, red WeChat developed a staggering 1 billion 10 million times! Once again let people wonder how Tencent is the technical support of
2014 double eleven Ali Taobao more than 50 billion of the huge volume of transactions, behind Ali cloud is extremely strong technical support system. 2015 WeChat red book, new year’s Eve shake a total number of 11 billion times, the peak is 14 million times per second, 810 million times per minute, red WeChat developed a staggering 1 billion 10 million times! Once again let people wonder how Tencent to do technical support? The author before the interview to WeChat backstage technical responsible person, to share the technology behind the red the secret with you.
4800 times the challenge
this year WeChat red and last year between users and users of mutual red envelopes compared to shake red way is a great burst of traffic light, is the new year’s Eve 10:30 sent a red envelope wave reached 120 million, is 4800 times the 2014 New Year’s Eve peak of the giant peak (2014 per minute is open envelopes only the number of 2.5W
1 billion red hair, where is it?
WeChat team summed up there are three major difficulties:
fast – how to ensure that users quickly roll to a red envelope?
quasi – how to ensure that the red envelope can successfully split open?
stability – how to ensure that the open red packets can be shared out?
A large number of
users shake envelopes at the same time, the moment of tens of millions of requests per second, the magnitude of the request without guidance directly to the background processing, will cause the back-end service overload or even collapse. On the eve of the new year’s Day background monitoring data curve will be able to explain everything – in front of the heavy triage decompression, background server load is still soaring ten times more than an instant.
three coping strategies Qi battle
for the above three difficulties, WeChat development team through the background of the main coping strategies to deal with the following: loss of service, flexibility is available, a small system to do small.
lossy Services – the pursuit of high availability and fast response
what is the loss of services the loss of services is through the careful resolution of the product process, the sacrifice of some data consistency and integrity to ensure that the core functions of the vast majority of running. This is the Tencent accumulated in the PC era a special operation strategy — in the premise of resources under certain conditions, not the Internet, the myriads of changes in the scene to meet the core needs of users.
WeChat red is the core point of the shake, dismantle, share red envelopes, the entire system design