In this article, we will guide you on how to prevent server overload and Message sending failed problem in Facebook Messenger on new year's eve.
Well, related to the Messenger application, Facebook has its way to handle huge traffic of messages sent simultaneously during New Year's Eve, so that the server is not broken, or unable to serve traffic. Knowing this, Messenger technicians also made several steps to handle traffic in the application, ahead of New Year's Eve. Here are some ways that sending messages easily in the Messenger application.
- Test the server load: The technicians do server load testing. Before the New Year's Eve, Facebook had already made a simulation by sending several messages that would be received to fellow Messenger users. From here, you can see whether this time the server's ability to handle the traffic flow of the message or not. If you can't, then the allocation of messages that appear to be booming will be transferred to another server. This technique is the same as that done by the Messenger last year. On New Year's Eve 2018, the Messenger team provided an additional server to divert incoming messages to the chat application to prevent overloading on the server.
- Low-Priority Mode: Facebook has created a mechanism of "low-priority" to prevent the booming of messages that could make the server overload due to being sent simultaneously. "We have set up our system, if the server is dense, the system will start to divert traffic to low-priority mode," said Isaac Ahdout, Engineering Manager for Facebook Messenger. This low-priority mechanism will prioritize the messages sent so that they get to other users quickly. The way this system works is by making priorities, sorting and choosing which features will be "turned off" first, to reduce server pressure and burden. For example, the read receipt feature, or a message alert that has been read, will be temporarily deactivated to increase resource allocation for messages to be sent. Then the Messenger technician can also turn off the "online" green circle, which helps ease the server load. Another example, Messenger will suspend detailed information about old messages for a while, to ease the server's CPU load. Thus, messages that go in and out will be prioritized first so they can be received quickly.
- Scheduler Feature: Messenger technicians work on a project called "scheduler". This scheduler allows the system to unify several messages whose contents are similar. Later, integration with the principle of "affinity" will ease the burden on the server, because similar messages will be sent as a group. This process, according to Isacc, will ease the CPU load, because the server receives the message sending request process only once for many collections of messages, rather than having to send it one at a time as a process.
As a result, server latency will be reduced by a few milliseconds, so that all messages can be sent smoothly. Facebook servers are still able to handle the swirling billions of users who send messages through the application.
However, if the Messenger server is oversupplied due to being crammed with messages simultaneously, then one of the three things will be an alternative solution to ease the burden on the server. Plus, some technicians were on standby in several places to be ready to activate the solution related to problems that might occur ahead of the new year's eve of 2020.