CN101924681A - Data distribution method and device of webpage instant communication - Google Patents
Data distribution method and device of webpage instant communication Download PDFInfo
- Publication number
- CN101924681A CN101924681A CN2009100872822A CN200910087282A CN101924681A CN 101924681 A CN101924681 A CN 101924681A CN 2009100872822 A CN2009100872822 A CN 2009100872822A CN 200910087282 A CN200910087282 A CN 200910087282A CN 101924681 A CN101924681 A CN 101924681A
- Authority
- CN
- China
- Prior art keywords
- sub
- account number
- account
- instant communication
- main contact
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a data distribution method in the webpage instant communication. A webpage instant communication platform is provided with a main contact account; and the main account contact is associated with multiple sub accounts. The method comprises the following steps: judging whether sub-accounts on-line status exist, if so, the main contact account is set into an on-line status, otherwise, the main contact account is set into an off-line status; receiving the instant communication data sent by a client side when the main contact account is in on-line status; searching the sub accounts on-line status, and judging whether the sub accounts are in idle or not, if an idle sub account exists currently, the instant communication data is transmitted to the sub account, if the multiple sub accounts exist currently, a target sub account is determined according to the preset regulation, and the instant communication data is transmitted to a target sub account. The invention can reasonably distribute the resources aiming at the contact account to enable users to obtain better experience.
Description
Technical field
The present invention relates to the network instant communication field, particularly relate to data distribution device and a kind of webpage instant communication platform of a kind of data distribution method of webpage instant communication, a kind of webpage instant communication.
Background technology
Webpage instant communication (Web Instant Messaging, Web-IM) be the real-time exchange way in a kind of website based on the Internet, the website user only need be by specific picture or link in the webpage clicking, and the data (comprising Word message, archives, voice and video etc.) that can carry out real-time online with the contact staff on backstage, website alternately.
Along with the development of webpage instant communication technology, the present presence that specific picture or link can show a plurality of contact staff usually in the webpage, the user is by clicking the contact staff of presence, just can with its real-time interchange.Yet in practice, the user often gets used to clicking the contact staff in preceding several presences, in this case, not only workload is big for corresponding contact staff, and, deal with data is mutual in large quantities, can make system distribute more resources to it because continuously; Obviously, concentrated the expending of this system resource causes system to go wrong easily, as mutual interruption etc.; For each contact staff, the distribution of its workload and the distribution of system resource are all unreasonable.
Summary of the invention
Technical problem to be solved by this invention provides the data distribution method in a kind of webpage instant communication, with at Contact Account reasonable distribution resource, makes the user obtain better experience.
Another object of the present invention has provided data distribution device and a kind of webpage instant communication platform in a kind of webpage instant communication, in order to guarantee said method realization and application in practice.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses the data distribution method in a kind of webpage instant communication, described instant communication data is sent to the webpage instant communication platform by client, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described method comprises:
Judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
When described main Contact Account is presence, receive the instant communication data that client sends;
Search and currently be the sub-account number of presence, and judge whether described sub-account number is idle;
If the sub-account number of a current free time of existence then is sent to described instant communication data this sub-account number;
If the current sub-account number that has a plurality of free time is then determined a sub-account number of target according to presetting rule, described instant communication data is sent to the sub-account number of this target.
Preferably, the step of the sub-account number of described definite target comprises:
Add up the Data Receiving amount of each sub-account number in Preset Time, the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
Preferably, the step of the sub-account number of described definite target comprises:
Add up the free time of each sub-account number, the sub-account number that free time is the longest is defined as the sub-account number of target.
Preferably, described method also comprises:
As if the current sub-account number that does not have the free time, then described instant communication data is sent at random the message queue of a sub-account number.
The embodiment of the invention also provides the device of the data distribution in a kind of webpage instant communication, described instant communication data is sent to the webpage instant communication platform by client, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described device comprises:
The primary account number state set unit is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
The instant communication data receiving element is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, trigger data delivery unit then, if the current sub-account number that has a plurality of free time, then trigger the sub-account number determining unit of target after, carry out data transfer unit again;
Data transfer unit is used for described instant communication data is sent to this sub-account number;
The sub-account number determining unit of target is used for determining a sub-account number of target according to presetting rule.
Preferably, the sub-account number determining unit of described target further comprises:
Data volume statistics subelement is used to add up the Data Receiving amount of each sub-account number in Preset Time, and the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
Preferably, the sub-account number determining unit of described target further comprises:
Free time is added up subelement, is used to add up the free time of each sub-account number, and the sub-account number that free time is the longest is defined as the sub-account number of target.
Preferably, described device also comprises:
Delivery unit at random is used for current described instant communication data being sent at random the message queue of a sub-account number when not having idle sub-account number.
The embodiment of the invention also provides a kind of webpage instant communication platform, and described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described webpage instant communication platform comprises:
The primary account number state set unit is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
The instant communication data receiving element is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, trigger data delivery unit then, if the current sub-account number that has a plurality of free time, then trigger the sub-account number determining unit of target after, carry out data transfer unit again;
Data transfer unit is used for described instant communication data is sent to this sub-account number;
The sub-account number determining unit of target is used for determining a sub-account number of target according to presetting rule.
Preferably, described webpage instant communication platform is undertaken by network and instant communication server alternately.
Compared with prior art, the present invention has the following advantages:
The present invention rationally chooses the sub-account number of target by the main Contact Account of a plurality of Contact Accounts of association (sub-account number) is set according to the resource operating position, thereby resource allocation is rationalized, and makes the user obtain better experience.
Description of drawings
Fig. 1 is the flow chart of the data distribution method embodiment in a kind of webpage instant communication of the present invention;
Fig. 2 is the structured flowchart of the data distribution device embodiment in a kind of webpage instant communication of the present invention;
Fig. 3 is the structured flowchart of a kind of webpage instant communication platform of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
The present invention can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, comprise distributed computing environment (DCE) of above any system or equipment or the like.
The present invention can describe in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment (DCE), put into practice the present invention, in these distributed computing environment (DCE), by by communication network connected teleprocessing equipment execute the task.In distributed computing environment (DCE), program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
Problem for the Contact Account resource reasonable distribution that solves website platform, make the user obtain better experience, the present invention proposes one of its core idea and is, by the main Contact Account of a plurality of Contact Accounts of association (sub-account number) is set, rationally choose the sub-account number of target according to the resource operating position, thereby resource allocation is rationalized, make the user obtain better experience.
With reference to figure 1, show the flow chart of the data distribution method embodiment in a kind of webpage instant communication of the present invention, wherein, described instant communication data is sent to the webpage instant communication platform by client, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Present embodiment can may further comprise the steps:
In practice, can be at described main Contact Account at the corresponding data allocations script of webpage deploy; In instant communication server, set up the related or mapping relations of described main Contact Account and a plurality of sub-account numbers.For example, corresponding main Contact Account " customer service ", " customer service 1, customer service 2... customer service N " sets up mapping relations with sub-account number.When the user clicked the web page interlinkage of this main Contact Account or icon, the webpage instant communication platform then can be sent to instant communication data on the sub-account number of certain target according to described data allocations script.
In a preferred embodiment of the present invention, the step of the sub-account number of described definite target can for:
Add up the Data Receiving amount of each sub-account number in Preset Time, the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
For example, the Data Receiving amount in nearest 1 hour of statistics customer service 1, each sub-account number of customer service 2... customer service N, the line ordering of going forward side by side, the Data Receiving amount of the sub-account number of discovery customer service 7 is minimum, then current instant communication data is sent to customer service 7.
In another preferred embodiment of the present invention, the step of the sub-account number of described definite target can also for:
Add up the free time of each sub-account number, the sub-account number that free time is the longest is defined as the sub-account number of target.
For example, the free time of statistics customer service 1, each sub-account number of customer service 2... customer service N, the line ordering of going forward side by side, the free time of the sub-account number of discovery customer service 3 is the longest, then current instant communication data is sent to customer service 3.
In specific implementation, described Data Receiving amount statistics and space time statistics can be obtained from instant communication server.
Certainly, it all is feasible that those skilled in the art adopt any method to search described target account number, for example, is the sub-account number of target etc. searching the current account number that does not receive message and not setting " rejection message ", and the present invention does not need to make qualification to this.
As another embodiment, the embodiment of the invention can also may further comprise the steps:
As if the current sub-account number that does not have the free time, then described instant communication data is sent at random the message queue of a sub-account number.
In this case, after the instant communication data of certain sub-account number disposes, can the next data of processed in sequence.
Need to prove, for aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not subjected to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 2, show the structured flowchart of the data distribution device embodiment in a kind of webpage instant communication of the present invention, wherein, described instant communication data is sent to the webpage instant communication platform by client, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Present embodiment specifically can comprise with lower unit:
Primary account number state set unit 201 is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence 1a; Otherwise, main Contact Account is changed to not presence 1b;
Instant communication data receiving element 202 is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit 203, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, then the trigger data delivery unit 204, if the current sub-account number that has a plurality of free time, then trigger after the sub-account number determining unit of target 205, carry out data transfer unit 204 again;
The sub-account number determining unit 205 of target is used for determining a sub-account number of target according to presetting rule.
In the present embodiment, preferably, the sub-account number determining unit of described target may further include following subelement:
Data volume statistics subelement is used to add up the Data Receiving amount of each sub-account number in Preset Time, and the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
In the present embodiment, preferably, the sub-account number determining unit of described target further comprises following subelement:
Free time is added up subelement, is used to add up the free time of each sub-account number, and the sub-account number that free time is the longest is defined as the sub-account number of target.
As another embodiment, described device embodiment can also comprise:
With reference to figure 3, show the structured flowchart of a kind of webpage instant communication platform of the present invention, wherein, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Present embodiment specifically can comprise with lower unit:
Primary account number state set unit 201 is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence 1a; Otherwise, main Contact Account is changed to not presence 1b;
Instant communication data receiving element 202 is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit 203, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, then the trigger data delivery unit 204, if the current sub-account number that has a plurality of free time, then trigger after the sub-account number determining unit of target 205, carry out data transfer unit 204 again;
The sub-account number determining unit 205 of target is used for determining a sub-account number of target according to presetting rule.
In the present embodiment, preferably, the sub-account number determining unit of described target may further include following subelement:
Data volume statistics subelement is used to add up the Data Receiving amount of each sub-account number in Preset Time, and the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
In the present embodiment, preferably, the sub-account number determining unit of described target further comprises following subelement:
Free time is added up subelement, is used to add up the free time of each sub-account number, and the sub-account number that free time is the longest is defined as the sub-account number of target.
As another embodiment, described device embodiment can also comprise:
In concrete enforcement, described webpage instant communication platform is undertaken by network and instant communication server alternately.In the IM system as immediate communication platform, the server cluster of being made up of one or more server unifies externally to provide the instant messaging service often.Generally be to provide a unified http serve port, each data in server in the IM system is provided by the IM server.
Because Fig. 2 and device embodiment and immediate communication platform shown in Figure 3 can correspondence be applicable among the aforesaid the whole bag of tricks embodiment that so description is comparatively simple, not detailed part can be referring to the description of this specification front appropriate section.
More than the data distribution method in a kind of webpage instant communication provided by the present invention, data distribution device and a kind of webpage instant communication platform in a kind of webpage instant communication are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. the data distribution method in the webpage instant communication, it is characterized in that, described instant communication data is sent to the webpage instant communication platform by client, and described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described method comprises:
Judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
When described main Contact Account is presence, receive the instant communication data that client sends;
Search and currently be the sub-account number of presence, and judge whether described sub-account number is idle;
If the sub-account number of a current free time of existence then is sent to described instant communication data this sub-account number;
If the current sub-account number that has a plurality of free time is then determined a sub-account number of target according to presetting rule, described instant communication data is sent to the sub-account number of this target.
2. the method for claim 1 is characterized in that, the step of the sub-account number of described definite target comprises:
Add up the Data Receiving amount of each sub-account number in Preset Time, the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
3. the method for claim 1 is characterized in that, the step of the sub-account number of described definite target comprises:
Add up the free time of each sub-account number, the sub-account number that free time is the longest is defined as the sub-account number of target.
4. the method for claim 1 is characterized in that, also comprises:
As if the current sub-account number that does not have the free time, then described instant communication data is sent at random the message queue of a sub-account number.
5. the data distribution device in the webpage instant communication, it is characterized in that, described instant communication data is sent to the webpage instant communication platform by client, and described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described device comprises:
The primary account number state set unit is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
The instant communication data receiving element is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, trigger data delivery unit then, if the current sub-account number that has a plurality of free time, then trigger the sub-account number determining unit of target after, carry out data transfer unit again;
Data transfer unit is used for described instant communication data is sent to this sub-account number;
The sub-account number determining unit of target is used for determining a sub-account number of target according to presetting rule.
6. device as claimed in claim 5 is characterized in that, the sub-account number determining unit of described target further comprises:
Data volume statistics subelement is used to add up the Data Receiving amount of each sub-account number in Preset Time, and the sub-account number that the Data Receiving amount is minimum is defined as the sub-account number of target.
7. device as claimed in claim 5 is characterized in that, the sub-account number determining unit of described target further comprises:
Free time is added up subelement, is used to add up the free time of each sub-account number, and the sub-account number that free time is the longest is defined as the sub-account number of target.
8. device as claimed in claim 5 is characterized in that, also comprises:
Delivery unit at random is used for current described instant communication data being sent at random the message queue of a sub-account number when not having idle sub-account number.
9. a webpage instant communication platform is characterized in that, described webpage instant communication platform is provided with a main Contact Account, and described main Contact Account is related with a plurality of sub-account numbers; Described webpage instant communication platform comprises:
The primary account number state set unit is used to judge whether to exist in the sub-account number of line states, if then main Contact Account is changed to presence; Otherwise, main Contact Account is changed to not presence;
The instant communication data receiving element is used for when described main Contact Account is presence, receives the instant communication data that client sends;
Sub-account number is searched judging unit, is used to search currently be the sub-account number of presence, and judges whether described sub-account number is idle; If the sub-account number of a current free time of existence, trigger data delivery unit then, if the current sub-account number that has a plurality of free time, then trigger the sub-account number determining unit of target after, carry out data transfer unit again;
Data transfer unit is used for described instant communication data is sent to this sub-account number;
The sub-account number determining unit of target is used for determining a sub-account number of target according to presetting rule.
10. webpage instant communication platform as claimed in claim 9 is characterized in that, described webpage instant communication platform is undertaken by network and instant communication server alternately.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100872822A CN101924681A (en) | 2009-06-15 | 2009-06-15 | Data distribution method and device of webpage instant communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100872822A CN101924681A (en) | 2009-06-15 | 2009-06-15 | Data distribution method and device of webpage instant communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101924681A true CN101924681A (en) | 2010-12-22 |
Family
ID=43339341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100872822A Pending CN101924681A (en) | 2009-06-15 | 2009-06-15 | Data distribution method and device of webpage instant communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101924681A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065563A (en) * | 2014-02-10 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Processing method, device and system for instant message |
CN105407029A (en) * | 2014-08-06 | 2016-03-16 | 阿里巴巴集团控股有限公司 | Account number shunting method and communication terminal |
CN105991402A (en) * | 2015-02-05 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Multi-account registering and communication methods and devices, and mobile terminal |
-
2009
- 2009-06-15 CN CN2009100872822A patent/CN101924681A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104065563A (en) * | 2014-02-10 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Processing method, device and system for instant message |
CN105407029A (en) * | 2014-08-06 | 2016-03-16 | 阿里巴巴集团控股有限公司 | Account number shunting method and communication terminal |
CN105407029B (en) * | 2014-08-06 | 2019-10-22 | 阿里巴巴集团控股有限公司 | A kind of account shunt method and communication terminal |
CN105991402A (en) * | 2015-02-05 | 2016-10-05 | 阿里巴巴集团控股有限公司 | Multi-account registering and communication methods and devices, and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110049130B (en) | Service deployment and task scheduling method and device based on edge computing | |
US11711446B2 (en) | Systems and methods for utilizing unused network capacity for prefetch requests | |
CN112165691B (en) | Content delivery network scheduling method, device, server and medium | |
US8005654B2 (en) | Method, apparatus and computer program product for intelligent workload control of distributed storage | |
CN106155817B (en) | Service information processing method, server and system | |
KR101526911B1 (en) | The method and apparatus for the resource sharing between user devices in computer network | |
CN101916295B (en) | Internet search system and method based on point-to-point network | |
Kayaaslan et al. | Energy-price-driven query processing in multi-center web search engines | |
US20160269479A1 (en) | Cloud virtual server scheduling method and apparatus | |
CN106790552B (en) | A kind of content providing system based on content distributing network | |
CN105721538A (en) | Data access method and apparatus | |
CN113422842B (en) | Distributed power utilization information data acquisition system considering network load | |
US20140059152A1 (en) | Support server for redirecting task results to a wake-up server | |
Du et al. | Scientific workflows in IoT environments: a data placement strategy based on heterogeneous edge-cloud computing | |
CN113014608B (en) | Flow distribution control method and device, electronic equipment and storage medium | |
CN109002364A (en) | Optimization method, electronic device and the readable storage medium storing program for executing of interprocess communication | |
CN101924681A (en) | Data distribution method and device of webpage instant communication | |
CN108111591B (en) | Method and device for pushing message and computer readable storage medium | |
CN111044062A (en) | Path planning and recommending method and device | |
CN112035760B (en) | Task allocation method and computer equipment | |
CN114138401A (en) | Container configuration method, device, equipment and medium based on artificial intelligence | |
CN114070847A (en) | Current limiting method, device, equipment and storage medium of server | |
CN117707797B (en) | Task scheduling method and device based on distributed cloud platform and related equipment | |
Kumar et al. | Improve Client performance in Client Server Mobile Computing System using Cache Replacement Technique | |
Otebolaku et al. | On modeling adaptation in context-aware mobile grid systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20101222 |