CN107454144A - Information processing method and server - Google Patents
Information processing method and server Download PDFInfo
- Publication number
- CN107454144A CN107454144A CN201710536409.9A CN201710536409A CN107454144A CN 107454144 A CN107454144 A CN 107454144A CN 201710536409 A CN201710536409 A CN 201710536409A CN 107454144 A CN107454144 A CN 107454144A
- Authority
- CN
- China
- Prior art keywords
- message
- request
- mentioned
- server
- object time
- 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.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the invention discloses a kind of information processing method and server, wherein method includes:The message that reception carrys out self terminal pulls request;Generate the message and pull the object time corresponding to request, the object time is more than current time;In the case where reaching the object time, send the message to destination server and pull request.The embodiment of the present invention pulls request by the message for receiving current time and is deferred to the object time to destination server transmission, solve the problems, such as that the destination server needs to pull request in a large amount of message of same time-triggered protocol, concurrent pressure of the destination server within certain time can be mitigated, and improve the resource utilization of the server.
Description
Technical field
The present invention relates to Internet technical field, more particularly to information processing method and server.
Background technology
With the popularization of network infrastructure, the type and quantity of internet works software also increasingly increase.Generally, such as based on
The internet applications of client/server (C/S) framework etc. all have information exploitation function.
At present, the application of PUSH message is very extensive, is the important means of each manufacturer terminal and application software operation, is dimension
Hold a very important channel between user and product.PUSH message is substantially by safeguarding a client to service end
Long connection realize, in order to maintain the connection of this length, it is necessary to timing heartbeat signal.Influenceed in view of power consumption, it is universal at present
Way is that is, heartbeat signal, which is unified in, wakes up moment transmission using alignment wake-up mechanism.
In currently employed technical scheme, message pull typically when on heartbeat signal matching inquiry and under
Hair, the pressure of server and the concurrency of heartbeat signal are closely bound up.Being influenceed by alignment wake-up mechanism, heartbeat signal is concentrated very much,
Thus this pulls matching action and also concentrated very much, causes the concurrent pressure of message push server big.Show server heartbeat point
Pressure is big, and other time section is more idle, and the resource of server can not be used maximumlly.
In actual applications, using above-mentioned technical proposal, presence server is in heartbeat point overload and server
The problem of resource utilization is low.
The content of the invention
The embodiment of the present invention provides a kind of information processing method and server, can reduce destination server heartbeat point and
Pressure is sent out, improves the resource utilization of the destination server.
In a first aspect, the embodiments of the invention provide a kind of information processing method, this method includes:
The message that reception carrys out self terminal pulls request;
Generate the message and pull the object time corresponding to request, the object time is more than current time;
In the case where reaching the object time, send the message to destination server and pull request.
Second aspect, the embodiments of the invention provide a kind of server, the server includes:
Receiving unit, the message that self terminal is carried out for receiving pull request;
Generation unit, the object time corresponding to request is pulled for generating the message, the object time is more than current
Time;
Determining unit, for determining the situation of the arrival object time;
Transmitting element, request is pulled for sending the message to destination server.
The third aspect, it is described the embodiments of the invention provide a kind of server, including processor, transceiver and memory
Processor, transceiver and memory are connected with each other, wherein, the memory, which is used to store, supports server to perform the above method
Application code, the processor are arranged to the method for performing above-mentioned first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor
The method for stating the above-mentioned first aspect of computing device.
The embodiment of the present invention pulls request by the message for receiving current time and is deferred to the object time to target clothes
Business device is sent, and is solved the problems, such as that the destination server needs to pull request in a large amount of message of same time-triggered protocol, can be mitigated this
Concurrent pressure of the destination server within certain time, and improve the resource utilization of the server.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, it is required in being described below to embodiment to use
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow diagram of information processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram for information processing method that another embodiment of the present invention provides;
Fig. 3 is a kind of schematic flow diagram for information processing method that another embodiment of the present invention provides;
Fig. 4 is a kind of schematic flow diagram for information processing method that another embodiment of the present invention provides;
Fig. 5 is a kind of schematic block diagram of server provided in an embodiment of the present invention;
Fig. 6 is a kind of server schematic block diagram that another embodiment of the present invention provides;
Fig. 7 is a kind of server schematic block diagram that another embodiment of the present invention provides;
Fig. 8 is a kind of server schematic block diagram that another embodiment of the present invention provides;
Fig. 9 is a kind of server schematic block diagram that another embodiment of the present invention provides;
Figure 10 is a kind of server schematic block diagram that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
It should be appreciated that ought be in this specification and in the appended claims in use, term " comprising " and "comprising" instruction
Described feature, entirety, step, operation, the presence of element and/or component, but it is not precluded from one or more of the other feature, whole
Body, step, operation, element, component and/or its presence or addition for gathering.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As used in description of the invention and appended claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
Referring to Fig. 1, it is a kind of schematic flow diagram of information processing method provided in an embodiment of the present invention, as shown in figure 1, being somebody's turn to do
Method may include:
101st, receive come self terminal message pull request;
The message that server reception carrys out self terminal pulls request, and above-mentioned server is a kind of access server, will can be connect
The message received pulls request and is sent to corresponding destination server.Above-mentioned terminal can be mobile phone, tablet personal computer, individual digital
Assistant, desktop computer, wearable device etc..It can be to obtain at least one application in above-mentioned terminal that above-mentioned message, which pulls request,
The request of fresh information.For example, terminal can be by sending the heartbeat for carrying message and pulling request to server timing
Signal, information exploitation is carried out, in order to get the fresh information of each application in time.Again for example, terminal can be every 10
Minute, send a heartbeat signal to server, on the one hand can keep connecting with the long of the server, on the other hand can and
When get fresh information corresponding to each application in the terminal.
102nd, generate above-mentioned message and pull object time, above-mentioned object time corresponding to request and be more than current time;
In a kind of optional implementation, it can be less than on the basis of current time plus one between the heartbeat of terminal
Every random duration as message pull request corresponding to the object time, it is specific as follows:
The above-mentioned above-mentioned message of generation pull request corresponding to the object time include:
Target duration is added on the basis of above-mentioned current time, obtains the above-mentioned object time, it is a length of small during above-mentioned target
The random duration at the interval of heartbeat signal is sent in above-mentioned terminal.
Because above-mentioned target duration is less than the interval of above-mentioned terminal transmission heartbeat signal, therefore the above-mentioned object time is positioned at upper
State before terminal sends the time point of heartbeat signal next time.For example, terminal send heartbeat signal at intervals of 10 minutes,
Target duration may be greater than 0 and the random number less than 1 and the product of 10 minutes.Again for example, rand () letter can be passed through
Number generation target duration, can be specifically rand (eartbeat interval), and rand (eartbeat interval) represents one and is less than eartbeat interval
Random number, eartbeat interval be terminal send heartbeat signal interval.For example, if current time is 10:00:00, heartbeat
At intervals of 10 minutes, during the target generated at random it is a length of 3 points 25 seconds, then the object time obtained is 10:03:25.By this
The message for being currently needed for being handled can be pulled request and is deferred to terminal by mode sends certain before heartbeat signal next time
Individual time point is handled, and can mitigate treating capacity of the server in heartbeat point.Heartbeat point is the time for receiving heartbeat signal
Point.
For example, current time is 2017-05-01 20:00:00, eartbeat interval is 10 minutes, while receives end
The heartbeat signal for carrying message and pulling request that end 1, terminal 2, terminal 3 are sent, server can generate this 3 terminal-pairs should
3 object times, and store, this 3 object times are respectively 2017-05-01 20:03:00、2017-05-01 20:05:
01、2017-05-01 20:07:02。
In the embodiment of the present invention, by adding the random duration less than eartbeat interval on the basis of current time, obtain
Object time, message can be carried out in time and pulled, and ensure that each message pulls the fairness of request.
103rd, in the case where reaching the above-mentioned object time, send above-mentioned message to destination server and pull request.
Above-mentioned destination server can be match messages server, and receiving message for basis pulls request progress message
Pull, and the message inquired is sent to corresponding terminal.The above-mentioned arrival above-mentioned object time it may is that when current
Quarter is more than or equal to the above-mentioned object time.Above-mentioned message, which pulls request, can include the identification information or attribute letter of above-mentioned terminal
Breath, above-mentioned identification information or attribute information are used for distinguishing each terminal.Above-mentioned destination server can be according to above-mentioned identification information
Or the message queue or inquiry database of above-mentioned attribute information query caching, it will inquire and pull request with above-mentioned message
The message to match is sent to above-mentioned terminal, and completion message pulling and sending.For example, if some message pulls request pair
The object time answered is 2017-05-01 20:00:00, current time is 2017-05-01 20:00:02, then to destination service
Device sends the message and pulls request.
The embodiment of the present invention pulls request by the message for receiving current time and is deferred to the object time to target clothes
Business device is sent, and is solved the problems, such as that the destination server needs to pull request in a large amount of message of same time-triggered protocol, can be mitigated this
Concurrent pressure of the destination server within certain time, and improve the resource utilization of the destination server.
In a kind of optional implementation, it is proposed that a kind of method for storing message and pulling information corresponding to request, tool
Body is as follows:After the above-mentioned above-mentioned message of generation pulls the object time corresponding to request, the above method also includes:
The identification information of the above-mentioned terminal of acquisition request is pulled according to above-mentioned message;
Above-mentioned identification information and the storage of above-mentioned object time are arrived into target container;
The situation of above-mentioned arrival above-mentioned object time includes:
During the information that above-mentioned target container is stored is traveled through, it is determined that reaching the above-mentioned object time.
Table 1
Key | Value |
10:03 | A |
10:05 | B |
10:07 | C |
… | … |
Container is the object for storing and organizing other objects, can store fundamental type or any class class in a reservoir
The entry of type.The class for realizing chained list is exactly the example of a container.In the embodiment of the present invention, it can use in a variety of container storages
State identification information and above-mentioned object time.Above-mentioned target container can be sequence container or associated container, such as can
To be set, queue, vector, list, mapping etc..Optionally, target container can be map containers.Map containers can be built automatically
The correspondence of vertical key-value, key and value can be the types of any needs.Map containers can be searched according to key quick look-up record
Complexity be substantially Log (N), if 1000 record, at most search 10 times.Map containers can be remembered with quick insertion key-value
Record;Quick deletion record;Recorded according to key modified values, travel through all records.For example, target container can be map containers,
Can with current time+rand (eartbeat interval) for key, identification information A, B of each terminal, C ... for value, be stored in target appearance
Device.Assuming that the eartbeat interval of terminal is 10 minutes, current time 10:00, a kind of possible storage mode is as shown in table 1.On
State during the information that above-mentioned target container is stored is traveled through, it is determined that reach the above-mentioned object time can be successively will be above-mentioned
Time point corresponding to each information is compared with current time in target container, it is determined that the time point before current time
For the above-mentioned object time.
In the embodiment of the present invention, it can utilize and be recorded corresponding to identification information and object time generation, and store and arrive mesh
Mark in container, the record stored by traveling through the target container, can quickly find out the information for reaching the object time.
In a kind of optional implementation, it is proposed that store message sequentially in time and pull information corresponding to request
Method, it is specific as follows:After the above-mentioned above-mentioned message of generation pulls the object time corresponding to request, the above method also includes:
The identification information of the above-mentioned terminal of acquisition request is pulled according to above-mentioned message;
The storage location of reference information is obtained from object listing, above-mentioned reference information is corresponding time point in above-mentioned mesh
Before between timestamp and apart from nearest information of above-mentioned object time;
Above-mentioned identification information and the storage of above-mentioned object time are arrived into the next position of above-mentioned storage location;
The situation of above-mentioned arrival above-mentioned object time includes:
Time point corresponding to each information in above-mentioned object listing is inquired about successively in accordance with the order from top to bottom, it is determined that on reaching
State the object time.
Table 2
Object time | Identification information |
10:03 | A |
10:05 | B |
10:07 | C |
… | … |
Above-mentioned identification information is used for distinguishing different terminals.Table 2 is referred to, each message is illustrated in table 2 and pulls request pair
Each identification information and the storage condition of object time answered, the elder generation of each object time corresponding to request can be pulled according to each message
Each message of sequential storage pulls information corresponding to request afterwards.A, B, C in table 2 represent terminal 1, terminal 2, terminal 3, terminal respectively
Object time corresponding to 1 is 10:03, the object time corresponding to terminal 2 is 10:05, the object time corresponding to terminal 3 is 10:07.
For example, table 2 is referred to, it is 10 that message, which pulls the object time corresponding to request,:06, then the message pull request
It is 10 at time point that corresponding reference information, which is,:05 information, the message is pulled into information storage corresponding to request and believed to the reference
The next position of breath, obtain table 3, the message pull request corresponding to identification information be D.In this way can be according to respectively disappearing
Each message of sequencing arrangement that breath pulls each object time corresponding to request pulls information corresponding to request.
Table 3
Object time | Identification information |
10:03 | A |
10:05 | B |
10:06 | D |
10:07 | C |
… | … |
From table 3, it can be seen that the object time is arranged according to sequencing in object listing.It is above-mentioned according on to
Under order to inquire about time point corresponding to each information in above-mentioned object listing successively can be from first of above-mentioned object listing
Information starts, inquire about each information one by one in accordance with the order from top to bottom corresponding to the object time, after inquiring the last item information,
Inquired about again from first information.If above-mentioned determination reach the above-mentioned object time can be current time the object time it
Afterwards, it is determined that reach the above-mentioned object time;Otherwise, it determines the above-mentioned object time is not reached.For example, refering to table 3, when current
Between be 10:04, inquire identification information be the object time corresponding to A terminal be 10:03, it is determined that reach corresponding to the terminal
Object time.Again for example, current time 10:05, server inquires in current time in accordance with the order from top to bottom
Two object times before, i.e., 10:03 and 10:05, it is determined that reach the two object times, be inquiring the object time
10:After 07 information, stop this inquiry, again the inquiry operation next time since first information.
In the embodiment of the present invention, when server inquires about each target successively in object listing according to order from top to bottom
Between, it can quickly determine to reach the information of object time, realize simple, search efficiency height.
In a kind of optional implementation, the method for invalid information, specific as follows in proposition delete target list:It is above-mentioned
After pulling request to the above-mentioned message of destination server transmission, the above method also includes:
Above-mentioned message is deleted from above-mentioned object listing and pulls information corresponding to request.
Above-mentioned message pulls request and is sent to after above-mentioned destination server, the above-mentioned message stored in above-mentioned object listing
Information corresponding to pulling request turns into invalid information.Above-mentioned message pull request corresponding to information continue to be stored in above-mentioned target column
In table, storage resource on the one hand can be occupied, on the other hand can increase the workload inquired up to the information of object time.From above-mentioned
Deleted in object listing above-mentioned message pull request corresponding to information can be the message that will be transmitted across to above-mentioned destination server
Information corresponding to pulling request is deleted from institute's object listing.
In the embodiment of the present invention, the invalid information in delete target list, storage resource can be saved, and improve and find
Up to the efficiency of the information of object time.
The embodiments of the invention provide another information processing method, as shown in Fig. 2 can include:
201st, receive come self terminal message pull request;
202nd, target duration is added on the basis of current time, obtains the object time;
The random duration at a length of interval that heartbeat signal is sent less than above-mentioned terminal during above-mentioned target.
203rd, the identification information of the above-mentioned terminal of acquisition request is pulled according to above-mentioned message;
204th, the storage location of reference information is obtained from object listing;
Above-mentioned reference information is that corresponding time point is before the above-mentioned object time and nearest apart from the above-mentioned object time
Information.
205th, above-mentioned identification information and the storage of above-mentioned object time are arrived into the next position of above-mentioned storage location;
206th, time point each information corresponding to is inquired about in above-mentioned object listing successively in accordance with the order from top to bottom, it is determined that arriving
Up to the above-mentioned object time;
207th, send above-mentioned message to destination server and pull request;
208th, above-mentioned message is deleted from above-mentioned object listing and pulls information corresponding to request.
The embodiment of the present invention pulls request by the message for receiving current time and is deferred to the object time to target clothes
Business device is sent, and is solved the problems, such as that the destination server needs to pull request in a large amount of message of same time-triggered protocol, can be mitigated this
Concurrent pressure of the destination server within certain time, and improve the resource utilization of the destination server.
The embodiments of the invention provide another information processing method, as shown in figure 3, can include:
301st, first server receive come self terminal message pull request;
Above-mentioned first server can be access server, receive and forward the message for carrying out self terminal to pull request.
302nd, above-mentioned first server generates above-mentioned message and pulls the object time corresponding to request;
The above-mentioned object time is more than current time.
303rd, above-mentioned first server pulls the identification information of the above-mentioned terminal of acquisition request according to above-mentioned message;
304th, above-mentioned identification information and the storage of above-mentioned object time are arrived target container by above-mentioned first server;
305th, above-mentioned first server is during the information that above-mentioned target container is stored is traveled through, it is determined that reaching above-mentioned
Object time;
306th, above-mentioned first server sends above-mentioned message to second server and pulls request;
Above-mentioned second server can pull the message queue of requesting query caching according to message is received or inquire about number
Corresponding terminal is sent to according to storehouse, and by the message inquired.
307th, above-mentioned first server deletes above-mentioned message in target container and pulls information corresponding to request;
308th, above-mentioned second server pulls target information corresponding to requesting query according to the message received;
309th, above-mentioned second server sends above-mentioned target information to above-mentioned terminal.
In the embodiment of the present invention, message that first server receives current time pulls request and is deferred to the object time
Sent to second server, solve the problems, such as that the second server needs to pull request in a large amount of message of same time-triggered protocol, can
To mitigate concurrent pressure of the second server within certain time, and improve the resource utilization of the second server.
The embodiments of the invention provide another information processing method, as shown in figure 4, can include:
401st, terminal A, B, C ... synchronization to access server send heartbeat signal;
402nd, above-mentioned access server information according to corresponding to above-mentioned heartbeat signal caches each heartbeat signal, with current time
+ rand (eartbeat interval) is key, identification information A, B of terminal, C ... for value, be stored in map containers;
403rd, the above-mentioned map containers of order traversal, key is less than or equal to target identification corresponding to the information of current time and believed
Breath is transmitted to match messages server;
404th, above-mentioned match messages server inquires about target message to be sent according to above-mentioned target identification information;
Above-mentioned match messages server is cached by inquiring about database or message queue, obtains above-mentioned target message.
405th, above-mentioned target message is sent to target terminal.
The target terminal is terminal corresponding to the target identification information.
In the embodiment of the present invention, a large amount of heartbeat signals that access server receives to the same time carry out discrete processes,
Only access server is subjected to the concurrent pressure of heartbeat of great amount of terminals, and match messages server is discrete because heartbeat signal, no
The concurrent pressure of heartbeat point again be present, significantly reduce the pressure of match messages server.
The embodiments of the invention provide a kind of server, as shown in figure 5, including:
Receiving unit 501, the message that self terminal is carried out for receiving pull request;
Generation unit 502, the object time corresponding to request is pulled for generating above-mentioned message, the above-mentioned object time, which is more than, works as
The preceding time;
Determining unit 503, for determining the situation of arrival above-mentioned object time;
Transmitting element 504, request is pulled for sending above-mentioned message to destination server.
Concrete methods of realizing is identical with the method in Fig. 1, is not described herein in detail.
In a kind of optional implementation, it can be less than on the basis of current time plus one between the heartbeat of terminal
Every random duration as message pull request corresponding to the object time, it is specific as follows:
Above-mentioned generation unit 502, specifically for adding target duration on the basis of above-mentioned current time, obtain above-mentioned mesh
Between timestamp, the random duration at a length of interval that heartbeat signal is sent less than above-mentioned terminal during above-mentioned target.
In the embodiment of the present invention, by adding the random duration less than eartbeat interval on the basis of current time, obtain
Object time, message can be carried out in time and pulled, and ensure that each message pulls the fairness of request.
In a kind of optional implementation, it is proposed that a kind of method for storing message and pulling information corresponding to request, tool
Body is as follows:As shown in fig. 6, above-mentioned server also includes:
Acquiring unit 601, for pulling the identification information of the above-mentioned terminal of acquisition request according to above-mentioned message;
Memory cell 602, for above-mentioned identification information and the storage of above-mentioned object time to be arrived into target container;
Above-mentioned determining unit 503, specifically for during the information that above-mentioned target container is stored is traveled through, it is determined that arriving
Up to the above-mentioned object time.
In the embodiment of the present invention, it can utilize and be recorded corresponding to identification information and object time generation, and store and arrive mesh
Mark in container, the record stored by inquiring about the target container, can quickly find out the information for reaching the object time.
In a kind of optional implementation, it is proposed that store message sequentially in time and pull information corresponding to request
Method, it is specific as follows:Above-mentioned acquiring unit 601, for pulling the identification information of the above-mentioned terminal of acquisition request according to above-mentioned message;
It is additionally operable to obtain the storage location of reference information from object listing, above-mentioned reference information is corresponding time point in above-mentioned target
Before time and apart from nearest information of above-mentioned object time;
Said memory cells 602, it is additionally operable to above-mentioned identification information and the storage of above-mentioned object time arriving above-mentioned storage position
The next position put;As shown in fig. 7, above-mentioned server also includes:
Query unit 701, for inquiring about successively in accordance with the order from top to bottom in above-mentioned object listing corresponding to each information
Time point;
Above-mentioned determining unit 503, specifically for determining to reach the above-mentioned object time.
In the embodiment of the present invention, when server inquires about each target successively in object listing according to order from top to bottom
Between, it can quickly determine to reach the information of object time, realize simple, search efficiency height.
In a kind of optional implementation, the method for invalid information, specific as follows in proposition delete target list:Such as figure
Shown in 8, above-mentioned server also includes:
Unit 801 is deleted, information corresponding to request is pulled for deleting above-mentioned message from above-mentioned object listing.
In the embodiment of the present invention, the invalid information in delete target list, storage resource can be saved, and improve and find
Up to the efficiency of the information of object time.
Fig. 9 is referred to, Fig. 9 is a kind of server provided in an embodiment of the present invention, and the server includes processor 901, deposited
Reservoir 902, transceiver 903 and bus 904, above-mentioned processor 901, memory 902 and transceiver 903 are mutual by bus 904
Connection.
It is random access memory (Random Access Memory, RAM) that memory 902, which includes but is not limited to, read-only
Memory (Read-Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable
Read Only Memory, EPROM) or portable read-only storage (Compact Disc Read-Only Memory, CD-
ROM), the memory 902 is used for dependent instruction and data.Transceiver 903 is used to receiving and sending data.
It should be appreciated that in embodiments of the present invention, alleged processor 901 can be CPU (Central
Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Processor 901 in the server is used to read the program code stored in above-mentioned memory 902, performs following grasp
Make:The message that reception carrys out self terminal pulls request;Generate above-mentioned message and pull object time, above-mentioned object time corresponding to request
More than current time;In the case where reaching the above-mentioned object time, send above-mentioned message to destination server and pull request.
In the specific implementation, the executable present invention of processor 901, transceiver 903 described in the embodiment of the present invention is implemented
Implementation described by the foregoing any embodiment for the information processing method that example provides, it also can perform the embodiment of the present invention and retouched
The implementation for the server stated, will not be repeated here.
A kind of computer-readable recording medium, above computer readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and above computer program is realized when being executed by processor:Receive come self terminal message pull please
Ask;Generate above-mentioned message and pull the object time corresponding to request, the above-mentioned object time is more than current time;Reach above-mentioned target
In the case of time, send above-mentioned message to destination server and pull request.
A kind of computer-readable recording medium, above computer readable storage medium are provided in another embodiment of the invention
Matter is stored with computer program, and above computer program is realized when being executed by processor:Receive come self terminal message pull please
Ask;Generate above-mentioned message and pull the object time corresponding to request, the above-mentioned object time is more than current time;Reach above-mentioned target
In the case of time, send above-mentioned message to destination server and pull request.
Above computer readable storage medium storing program for executing can be the internal storage unit of the above-mentioned server of foregoing any embodiment,
Such as the hard disk or internal memory of server.Above computer readable storage medium storing program for executing can also be the External memory equipment of server, example
Such as the plug-in type hard disk being equipped with server, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, above computer readable storage medium storing program for executing can also be wrapped both
Including the internal storage unit of above-mentioned server also includes External memory equipment.Above computer readable storage medium storing program for executing is used to store
State computer program and other programs and data needed for above-mentioned server.Above computer readable storage medium storing program for executing can also be used
In temporarily storing the data that have exported or will export.
Figure 10 is a kind of server architecture schematic diagram provided in an embodiment of the present invention, and the server 1000 can be because of configuration or property
Energy is different and produces bigger difference, can include one or more central processing units (central processing
Units, CPU) 1022 (for example, one or more processors) and memory 1032, one or more storage applications
The storage medium 1030 of program 1042 or data 1044 (such as one or more mass memory units).Wherein, memory
1032 and storage medium 1030 can be it is of short duration storage or persistently storage.One can be included by being stored in the program of storage medium 1030
Individual or more than one module (diagram does not mark), each module can include operating the series of instructions in server.More enter
One step, central processing unit 1022 be could be arranged to communicate with storage medium 1030, and storage medium is performed on server 1000
Series of instructions operation in 1030.
Server 1000 can also include one or more power supplys 1026, one or more wired or wireless nets
Network interface 1050, one or more input/output interfaces 1058, and/or, one or more operating systems 1041, example
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Can be based on the server architecture shown in the Figure 10 as the step performed by server in above-described embodiment.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization should not
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the clothes of foregoing description
The specific work process of business device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed server and method, can pass through
Other modes are realized.For example, device embodiment described above is only schematical, for example, the division of said units,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is in addition, shown or discussed
Mutual coupling or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical by some interfaces, device or unit
Letter connection or electricity, the connection of mechanical or other forms.
Step in present invention method can be sequentially adjusted, merged and deleted according to actual needs.This hair
Unit in bright embodiment server can be combined, divided and deleted according to actual needs.
The above-mentioned unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art, or all or part of the technical scheme can be in the form of software product
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment above method of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be with right
It is required that protection domain be defined.
Claims (10)
- A kind of 1. information processing method, it is characterised in that including:The message that reception carrys out self terminal pulls request;Generate the message and pull the object time corresponding to request, the object time is more than current time;In the case where reaching the object time, send the message to destination server and pull request.
- 2. according to the method for claim 1, it is characterised in that when the generation message pulls target corresponding to request Between include:Target duration is added on the basis of the current time, obtains the object time, it is a length of during the target to be less than institute State the random duration that terminal sends the interval of heartbeat signal.
- 3. method according to claim 1 or 2, it is characterised in that the generation message pulls mesh corresponding to request After between timestamp, methods described also includes:The identification information of terminal described in acquisition request is pulled according to the message;The identification information and object time storage are arrived into target container;The situation for reaching the object time includes:During the information that the target container is stored is traveled through, it is determined that reaching the object time.
- 4. method according to claim 1 or 2, it is characterised in that the generation message pulls mesh corresponding to request After between timestamp, methods described also includes:The identification information of terminal described in acquisition request is pulled according to the message;The storage location of reference information is obtained from object listing, the reference information is corresponding time point in the target Between before and apart from the object time nearest information;The identification information and object time storage are arrived into the next position of the storage location;The situation for reaching the object time includes:Time point corresponding to each information in the object listing is inquired about successively in accordance with the order from top to bottom, it is determined that reaching the mesh Between timestamp.
- 5. according to the method for claim 4, it is characterised in that described to pull request to the destination server transmission message Afterwards, methods described also includes:The message is deleted from the object listing and pulls information corresponding to request.
- A kind of 6. server, it is characterised in that including:Receiving unit, the message that self terminal is carried out for receiving pull request;Generation unit, the object time corresponding to request is pulled for generating the message, the object time is more than current time;Determining unit, for determining the situation of the arrival object time;Transmitting element, request is pulled for sending the message to destination server.
- 7. server according to claim 6, it is characterised in thatThe generation unit, specifically for adding target duration on the basis of the current time, the object time is obtained, The random duration at a length of interval that heartbeat signal is sent less than the terminal during target.
- 8. the server according to claim 6 or 7, it is characterised in that the server also includes:Acquiring unit, for pulling the identification information of terminal described in acquisition request according to the message;Memory cell, for the identification information and object time storage to be arrived into target container;The determining unit, specifically for during the information that the target container is stored is traveled through, it is determined that described in reaching Object time.
- A kind of 9. server, it is characterised in that including processor, transceiver and memory, the processor, transceiver and storage Device is connected with each other, wherein, the memory is used to store application code, and the processor is arranged to call the journey Sequence code, perform the method as described in claim any one of 1-5.
- A kind of 10. computer-readable recording medium, it is characterised in that the computer-readable storage medium is stored with computer program, The computer program includes programmed instruction, and described program instruction makes the computing device such as right when being executed by a processor It is required that the method described in any one of 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536409.9A CN107454144A (en) | 2017-07-03 | 2017-07-03 | Information processing method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710536409.9A CN107454144A (en) | 2017-07-03 | 2017-07-03 | Information processing method and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107454144A true CN107454144A (en) | 2017-12-08 |
Family
ID=60487658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710536409.9A Withdrawn CN107454144A (en) | 2017-07-03 | 2017-07-03 | Information processing method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107454144A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366092A (en) * | 2018-01-15 | 2018-08-03 | 网易(杭州)网络有限公司 | A kind of method and system that the instant data of web are shown |
CN110413427A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Subscribe to data pull method, apparatus, equipment and storage medium |
CN111083014A (en) * | 2019-12-19 | 2020-04-28 | 杭州情咖网络技术有限公司 | Communication connection confirmation method, device and user terminal |
CN111741110A (en) * | 2020-06-22 | 2020-10-02 | 北京奇艺世纪科技有限公司 | Message pushing system and method |
CN113176951A (en) * | 2021-04-20 | 2021-07-27 | 京东数字科技控股股份有限公司 | Message copying method, device, equipment and computer readable medium |
CN114449036A (en) * | 2021-12-27 | 2022-05-06 | 天翼云科技有限公司 | Method and device for directionally distributing messages and computer equipment |
WO2022188297A1 (en) * | 2021-03-10 | 2022-09-15 | 北京搜狗科技发展有限公司 | Request processing method and apparatus, and medium |
-
2017
- 2017-07-03 CN CN201710536409.9A patent/CN107454144A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108366092A (en) * | 2018-01-15 | 2018-08-03 | 网易(杭州)网络有限公司 | A kind of method and system that the instant data of web are shown |
CN110413427A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Subscribe to data pull method, apparatus, equipment and storage medium |
CN111083014A (en) * | 2019-12-19 | 2020-04-28 | 杭州情咖网络技术有限公司 | Communication connection confirmation method, device and user terminal |
CN111741110A (en) * | 2020-06-22 | 2020-10-02 | 北京奇艺世纪科技有限公司 | Message pushing system and method |
CN111741110B (en) * | 2020-06-22 | 2022-07-22 | 北京奇艺世纪科技有限公司 | Message pushing system and method |
WO2022188297A1 (en) * | 2021-03-10 | 2022-09-15 | 北京搜狗科技发展有限公司 | Request processing method and apparatus, and medium |
CN113176951A (en) * | 2021-04-20 | 2021-07-27 | 京东数字科技控股股份有限公司 | Message copying method, device, equipment and computer readable medium |
CN114449036A (en) * | 2021-12-27 | 2022-05-06 | 天翼云科技有限公司 | Method and device for directionally distributing messages and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107454144A (en) | Information processing method and server | |
WO2022116323A1 (en) | Federated learning scheduling method, device, and system | |
CN113129526B (en) | Cabinet opening control method, server, computing device and computer storage medium | |
CN104090901B (en) | A kind of method that data are processed, device and server | |
CN107169083A (en) | Public security bayonet socket magnanimity vehicle data storage and retrieval method and device, electronic equipment | |
CN104412266A (en) | Method and apparatus for multidimensional data storage and file system with a dynamic ordered tree structure | |
CN106357791A (en) | Method, device and system for processing services | |
CN106685902A (en) | User authority management method, client and server | |
CN105407044B (en) | A kind of implementation method of the cloud storage gateway system based on NFS | |
CN107943846B (en) | Data processing method and device and electronic equipment | |
CN103064908A (en) | Method for rapidly removing repeated list through a memory | |
CN106484694B (en) | Full-text search method and system based on distributed data base | |
CN107636655A (en) | Data are provided in real time to service(DaaS)System and method | |
CN103377292B (en) | Database result set caching method and device | |
CN110502607A (en) | A kind of electronic medical record system, the method and server for inquiring electronic health record | |
CN110246053A (en) | The carrier binding variation and its servomechanism of power supply unit | |
CN110069506A (en) | Maintaining method, device and the server of business datum | |
CN106325515B (en) | A kind of service-oriented man-machine interactive system and implementation method | |
CN103325277B (en) | A kind of guiding shutdown system and workflow | |
CN107436920A (en) | Node.js authority control methods, storage medium, electronic equipment and system | |
WO2019091101A1 (en) | Salary calculation method, application server and computer-readable storage medium | |
CN110300222A (en) | A kind of short message display method, system and terminal device | |
CN112083914B (en) | Method and system for realizing object model embedded operation system soft bus | |
CN110119430A (en) | A kind of intelligence contract administration method, server and computer readable storage medium | |
CN111949601B (en) | Data storage method and device and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20171208 |
|
WW01 | Invention patent application withdrawn after publication |