I have often come across this question from various sources, but never got a good idea of technologies to get it is. Can any light leave? The question is that you have a website that has more access to users per day. Your website has been deployed in a distributed way, there are many webservers and there are load balancers to respond to incoming requests from many locations. How do you gain access to 1000000 users, and "Congratulations, you are 1000000 visitors!" Say a special page by saying Suppose you had a distributed backend.
You have to turn off performance or accuracy. The simplest way to do this would be to have a memcached example keep track of your visitor calculations, or with any other datastore atomic increment operation. Since there is only one source of truth, therefore only 1 visitor will get the message. This will delay your page on the goaltipripte at the landing store at the minimum.
If you can not delay, then you have to close the accuracy. A distributed data store will not be able to increase any field atom any faster than at any level. Each web server can read and write local nodes, but 1 million users can access before the transaction matches, but there may also be one node on the second datacenter. In that case 2 or more people can get 1 million user messages.
It is possible to do this after the fact. After all, the data store will increase the increment, and your app can decide on a strict order. However, if you have already decided that a single nuclear request takes too long, then this argument will be too late to present your page.
No comments:
Post a Comment