The embodiments of the present application provide an
online business request
processing method, device, electronic device and storage medium. By judging the business request, when the language to be operated on by the business request is not the
database schema definition language, a
change data capture method based on the binary log
stream is used to execute the operation requested by the business request using a master-slave target structure. There is no need to establish a trigger, so no table lock caused by the trigger will be generated, which can improve the performance of the
database; the number of triggers can be reduced, the occurrence of locks can be reduced, thereby reducing the
impact on the business, and the situation where deadlocks are caused by conflicts between triggers and business practices can be reduced. In the case where the business request is a request to add a unique index to a table in the
database schema definition language, a
change data capture method based on the trigger is used to execute the operation requested by the business request using a master-slave target structure, and different
modes can be selected according to the specific circumstances of the business request.