A traffic control and message buffering method oriented to distribution subscription system

The invention relates to flow quantity control facing to an issuing subscribing system and the message cache method thereof. The invention comprises the following steps: the server parameter of the issuing subscribing system is established, message is classified through the condition of the message occupying resource; different strategies are adopted by the server through the using condition of the system resource of a thread route according to the using condition of the system resource; the flow quantity control is performed to a message sending client-side, the actual realization adopts the structure that a flow quantity controlling datagram is sent to the sending message client-side by the server, the client-side reduces the speed of sending the message to the server according the control information of the datagram; the flow quantity control is performed to the sending message client-side and the message is cached, the message in the internal memory is written into caching, and the internal memory is released. The invention has the advantages that message caching function are increased, the message is cached into additional memory though a configured parameter under a presetting condition, the internal memory occupied by the message is released, therefore the abandonment of the message is reduced, and the resources of the system is reduced.