This application relates to a dynamic configuration method, device and electronic device for a store distribution scene. After encapsulating the preset distribution rules according to the strategy mode, the
distribution rule template is obtained; when the application is started, the distribution scene and the
identification key of the
distribution rule template are obtained. The value pair is registered to the nacos
server as a mapping relationship; after receiving the allocation request from the user for the target allocation
scenario, according to the allocation request and the mapping relationship corresponding to the target allocation
scenario obtained from the nacos
server, the target allocation is obtained The instance of the allocation rule template corresponding to the scene, after passing the allocation
verification of each
verification node according to the instance of the
verification rule template, allocates the target allocation scene according to the instance of the execution rule template; after completing the allocation of the target allocation scene, Generate distribution completion notification; realize the dynamic configuration of distribution rules, reduce the
coupling degree of the execution code of the store distribution business at the back end, thereby improving the
scalability of the store distribution business.