The invention relates to the technical field of computers, discloses a service message sending method,
system, device and equipment, and is used for solving the problems of high
code coupling and code repetition and redundancy in a service message sending
system in related technologies. According to the embodiment of the invention, a to-be-processed business scene parameter sent by a business layer is received, a
message processing service class name corresponding to the to-be-processed business scene parameter is determined from a pre-stored enumeration class, a
message processing service instance is acquired from a pre-stored factory class based on the
message processing service class name, and finally, the message
processing service instance is processed. And according to the message
processing logic in the message
processing service instance, packaging the service data into a to-be-sent service message, and sending the to-be-sent service message to the target object. In the embodiment of the invention, the
service layer only needs to transmit the service scene parameters, instantiation and calling of the message processing service are uniformly managed by the
message service layer, and decoupling of the service logic and the message processing logic is realized.