The smart factory is a concept to express the ultimate goal of digitization in manufacturing. The most common definition of a smart factory is a highly digital store floor that collects and shares data on a continuous basis through connected devices and production systems. the proposed system focuses on reducing the delay by using hybrid computing, cloud, and edge servers. The purpose of this study is to investigate Real-time requirements using the Selection Algorithm. The factory is represented by a group of sensors that send data to three servers. (Two are edge servers with the same copies of data and rules, and the third is the cloud). When the sensor's reading reaches the edge servers, scheduling time an selection algorithm is implemented through which a single edge server receives data selecting the least delay the highest priority. Alternatively, if there is any problem or malfunction affects one of the edge servers, the second can complete its work without the need to stop the factory. In turn, the delay is reduced, and the factory performance is improved. When the delay time is reduced, the response time is improved and the service quality will be enhanced.