Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 caused by ensuring that only one task reads messages, eliminates lock competition, and improves message sending efficiency

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

Embodiment Construction

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

[0042] Embodiment 1 of the present application provides a message sending method. In this embodiment, the method is applied to a system including a database, an application server, and a message task server. The application server is used to generate messages, such as generating Taobao internal letter, short message and sending mail, etc., the database is used to store such message information generated by the application server, when the message task server needs to extract the message from the database, the database will store the information in the order of the message queue The message is passed to the message task server. The message task server schedules the messages stored in the d...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products