Method and system for sending messages

A technology for sending messages and messages, applied in the direction of multi-programming devices, etc., can solve problems such as deadlocks, and achieve the effect of avoiding deadlocks and sending messages efficiently

Active Publication Date: 2013-07-17
ALIBABA GRP HLDG LTD
View PDF2 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] This application provides a method and system for sending messages, which solves the technical problem of deadlock

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for sending messages
  • Method and system for sending messages
  • Method and system for sending messages

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0041] In order to enable those skilled in the technical field of the present application to understand the present application more clearly, the technical solutions of the present application will be described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0042] The first embodiment of the present application provides a message sending method. In this embodiment, the method is applied in a system including a database, an application server, and a message task server. The application server is used to generate messages, such as Taobao station’s messages, short messages and sent mails, etc., the database is used to store such message information generated by the application server. When the message task server needs to extract messages from the database, the database will store them in the order of the message queue To the message task server. The message task server schedules the messages stored in the database and sends the above m...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and a system for sending messages. The method comprises the following steps of judging whether the state of each message sending progress in the N message sending progresses is a valid state or not; determining the states of K message sending progresses to be valid states from the N message sending progresses on the basis of judgment, wherein K is integer which is greater than 1 but less than or equal to N; determining one message sending progress from the K message sending progresses to be a main message sending progress; starting a message scheduler in a message task server where the main message sending progress is positioned by the main message sending progress; acquiring at least one message to be sent without progress attribution from a message queue of a database by the message scheduler; allocating one message sending progress for each message to be sent in at least one message to be sent without progress attribution; and sending at least one message to be sent without progress attribution by K message sending progresses.

Description

technical field [0001] The present application relates to the field of computer distributed systems, in particular to a method and system for sending messages in a distributed system. Background technique [0002] With the continuous development of Taobao Mall, there are more and more merchants and more and more users. In order to better serve users or merchants, it is necessary to send a lot of messages to merchants or users, such as sending Wangwang messages, Letters, short messages and emails in Taobao station. [0003] In general, the above information is sent to users or merchants through the distributed system, and in order to send messages efficiently, the distributed system uses a concurrent method to send messages. [0004] Please refer below figure 1 , which is a schematic structural diagram of distributed system message distribution in the embodiment of the present application. The message sending system provides an external interface to receive messages from t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/46
Inventor 韩翼
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products