CN106815083A - A kind of client asynchronous processing method and client based on Memcache agreements - Google Patents
A kind of client asynchronous processing method and client based on Memcache agreements Download PDFInfo
- Publication number
- CN106815083A CN106815083A CN201611186142.7A CN201611186142A CN106815083A CN 106815083 A CN106815083 A CN 106815083A CN 201611186142 A CN201611186142 A CN 201611186142A CN 106815083 A CN106815083 A CN 106815083A
- Authority
- CN
- China
- Prior art keywords
- event
- memcache
- client
- protocol
- agreements
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present invention provides a kind of client asynchronous processing method and client based on Memcache agreements, and the method includes:An event is triggered when client, it is necessary to when being interacted with server end, create the corresponding Event objects of event, Memcache protocol realizations object and connecting object;The Memcache operation call back functions of event are registered in Memcache protocol realization objects;By in Memcache protocol realizations object registration to connecting object;Connecting object is registered in Event objects;The corresponding Event objects for registering with connecting object of each event are built into asynchronous Event object sets;Event loop monitoring is carried out to asynchronous Event object sets, when a certain connecting object listens to the event feedback information of the event message that server end is directed to corresponding event, corresponding registered Memcache operations call back function treatment event feedback information is called.The invention provides the technical scheme that High-Performance Asynchronous realize Memcache protocol clients, what multiple asynchronous events can coexist in same thread, asynchronous event and Memcache protocol processes realize decoupling, can conveniently carry out project integrated.
Description
Technical field
The present invention relates to network technique field, more particularly to a kind of client asynchronous process side based on Memcache agreements
Method and client.
Background technology
Memcache (distributed cache system) network communication protocol has changed into a RPC general extensively
(Remote Procedure Call Protocol, remote procedure call protocol) agreement, general Memcache agreements
Server ends realize asynchronous communication meanses, at present the more extensive Memcache clients of application be libmemecache this
C language realize storehouse or based on the storehouse encapsulation other language extension, the client support thread pool attended operation and
The mode of synchronous obstruction is operated, and the advantage of machine, influence and server can not be well played in the service of network bottleneck
(Server) performance of interaction is held.And depend on the storehouse in terms of the extension or business integration in terms of be not very friendly.
Existing technology client by storehouse that Libmemecached this C language is realized come with Memecache agreements
Server interact, in the case where some can call the scene for carrying out improving performance using asynchronous system using will be unable to realize, its for
Client interaction is not the mode of asynchronism callback, can block treatment thread or process, for responsible service in a thread
Can not possibly be only and Memecache Server interact an operation, this is also a challenge for program is integrated.
The content of the invention
The embodiment of the present invention provides a kind of client asynchronous processing method and client based on Memcache agreements, same
Processor CPU can be effectively utilized when network is waited, and reduce with asynchronous execution multiple event action in one thread
Development cost.
On the one hand, a kind of client asynchronous processing method based on Memcache agreements, institute be the embodiment of the invention provides
The method of stating includes:
An event is triggered when client, it is necessary to when being interacted with server end, for the event, perform following behaviour
Make:
The corresponding event Event objects of the event, Memcache protocol realizations object and connecting object are created, and is utilized
Each object for creating is respectively processed so as to the event message of the event is sent into server end;
The Memcache operation call back functions of the event are registered in the Memcache protocol realizations object;
By in the Memcache protocol realizations object registration to the connecting object;
The connecting object is registered in the Event objects;
Other events for client triggering are repeated the above steps, and corresponding the registering with of each event is connected into right
The Event objects of elephant build asynchronous Event object sets;
Event loop monitoring is carried out to the asynchronous Event object sets, when a certain connecting object listens to the service
When device end is directed to the event feedback information of the event message of corresponding event, corresponding registered Memcache is called to operate back
The letter of transfer number treatment event feedback information.
On the other hand, a kind of client based on Memcache agreements, the client bag be the embodiment of the invention provides
Include:
Creating unit, for triggering an event when client, it is necessary to when being interacted with server end, create the event
Corresponding event Event objects, Memcache protocol realizations object and connecting object, and carried out respectively using each object for creating
Treatment by the event message of the event so that be sent to server end;
Registering unit, for the Memcache operation call back functions of the event to be registered into the Memcache agreements reality
In existing object, by the Memcache protocol realizations object registration to the connecting object, and by connecting object registration
To in the Event objects;
Object set construction unit, each event for the client to be triggered is corresponding to register with connecting object
Event objects build asynchronous Event object sets;
Circulation monitoring unit, for carrying out event loop monitoring to the asynchronous Event object sets, when a certain connection is right
During the event feedback information of the event message of event, called corresponding registered for corresponding to as listening to the server end
Memcache operation call back functions process the event feedback information.
Above-mentioned technical proposal has the advantages that:A kind of High-Performance Asynchronous are the embodiment of the invention provides to realize
The technical scheme of Memcache protocol clients, what multiple asynchronous events coexisted in same thread, asynchronous event and
Memcache protocol processes realize decoupling, can conveniently carry out project integrated.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of client asynchronous processing method flow chart based on Memcache agreements of the embodiment of the present invention;
Fig. 2 is a kind of client terminal structure schematic diagram based on Memcache agreements of the embodiment of the present invention;
Fig. 3 is embodiment of the present invention creating unit structural representation;
Fig. 4 is that a kind of client based on Memcache agreements of application example of the present invention implements structural representation;
Fig. 5 is application example client call schematic flow sheet of the present invention;
Fig. 6 is that process chart is monitored in application example client event of the present invention circulation.
Specific 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 is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, being a kind of client asynchronous processing method flow based on Memcache agreements of the embodiment of the present invention
Figure, methods described includes:
101st, an event is triggered when client, it is necessary to when being interacted with server end, for the event, perform as follows
Operation:The corresponding event Event objects of the event, Memcache protocol realizations object and connecting object are created, and using wound
Each object built is respectively processed so as to the event message of the event is sent into server end;
102nd, the Memcache operation call back functions of the event are registered in the Memcache protocol realizations object;
103rd, by the Memcache protocol realizations object registration to the connecting object;
104th, the connecting object is registered in the Event objects;
105th, other events for client triggering repeat the above steps, and by the corresponding company of registering with of each event
The Event objects for connecing object build asynchronous Event object sets;
106th, event loop monitoring is carried out to the asynchronous Event object sets, when a certain connecting object listen to it is described
When server end is directed to the event feedback information of the event message of corresponding event, corresponding registered Memcache is called to grasp
Make call back function and process the event feedback information.
Preferably, the connecting object is socket application programming interfaces Socket API connecting objects.
Preferably, carrying out treatment using the corresponding Memcache protocol realizations object of the event for creating includes:Utilize
The corresponding Memcache protocol realizations object of the event carries out Memcache protocol analysis to the event, obtains Memcache
Event message after protocol analysis.
Preferably, carrying out treatment using the corresponding connecting object of the event for creating includes:Using event correspondence
Connecting object, the connection set up between the client and the server end.
Preferably, carrying out treatment using the corresponding Event objects of the event for creating includes:Using event correspondence
Event objects, will obtain the Memcache protocol analysis after event message, by set up the client and institute
The connection between server end is stated, server end is sent to
As shown in Fig. 2 being a kind of client terminal structure schematic diagram based on Memcache agreements of the embodiment of the present invention, the visitor
Family end includes:
Creating unit 21, for triggering an event when client, it is necessary to when being interacted with server end, create the thing
The corresponding event Event objects of part, Memcache protocol realizations object and connecting object, and entered respectively using each object for creating
Row treatment by the event message of the event so that be sent to server end;
Registering unit 22, for the Memcache operation call back functions of the event to be registered into the Memcache agreements
In realizing object, by the Memcache protocol realizations object registration to the connecting object, and by connecting object note
Volume is in the Event objects;
Object set construction unit 23, each event for the client to be triggered is corresponding to register with connecting object
Event objects build asynchronous Event object sets;
Circulation monitoring unit 24, for carrying out event loop monitoring to the asynchronous Event object sets, when a certain connection
When object listens to the event feedback information of the event message that the server end is directed to corresponding event, corresponding note is called
The Memcache operation call back functions of volume process the event feedback information.
Preferably, the connecting object is socket application programming interfaces Socket API connecting objects.
Preferably, as shown in figure 3, being embodiment of the present invention creating unit structural representation, the creating unit 21 includes:
Memcache protocol realizations object module 211, for utilizing the corresponding Memcache protocol realizations object of the event to described
Event carries out Memcache protocol analysis, obtains the event message after Memcache protocol analysis.
Preferably, the creating unit 21 also includes:Connecting object module 212, for using the corresponding company of the event
Object is connect, the connection set up between the client and the server end.
Preferably, the creating unit 21 also includes:Event object modules 213, for corresponding using the event
Event objects, the event message after the Memcache protocol analysis that will be obtained, by the client and described set up
Connection between server end, is sent to server end.
Embodiment of the present invention above-mentioned technical proposal is described in detail below by way of application example:
As shown in figure 4, showing for a kind of client based on Memcache agreements of application example of the present invention implements structure
It is intended to, the Memcache clients of application example technical scheme of the present invention are roughly divided into three parts of two-layer, are respectively that bottom is thin
Section encapsulation is realized, client-side interface layer is realized.Low-level details encapsulation realization is divided into Socket encapsulation realization, Event encapsulation and realizes.
Socket encapsulation realizes it being the compatible or general function treatment done to system Socket API, and Event encapsulation realizations are
Because the system bottom implementation of multiple platforms is different, by encapsulate adjusted for upper strata be used to say that it is consistent so that
The client has portability.Client-side interface layer realization is that the client of Memcache agreements is realized, mainly right
The functions such as parsing, connection mechanism, the call back function management of Memcache agreements.
Socket encapsulation is realized being mainly based upon the general connecting object of system-level Socket interface encapsulations and some works
Commonly used general binary system safe buffering Buffer class libraries in tool class libraries, and network service, for network communication module is provided
Strong support.The error information of shielding harness level Socket and operation is retried, shield exploitation in network programming and select
.The daily record that increased project level is conducive to being debugged in exploitation.
Event encapsulation realizes it being that application example scheme of the present invention realizes the important prerequisite of high-performance client, because comparing
The reason for traditional synchronization call lifts maximum in performance is just the use of asynchronous I/O (input/output) mode and processes.Mesh
It is preceding provided in linux system epoll (be linux kernel has made improved poll for treatment high-volume filec descriptor,
It is the enhancing version that I/O interfaces select/poll is multiplexed under Linux, it can significantly improve program and largely concurrently connect
In it is only a small amount of active in the case of system CPU utilization rate) related system interface, in Free BSD, (a species UNIX is grasped
Make system) there is provided the interface similar with epoll be kqueue in system, two except inside realize it is different with external interface
Outward, it is possible to achieve function it is basically identical, it is more more flexible compared to kqueue, but for conventional treatment, both are asynchronous
Realization can meet demand, so done the encapsulation of asynchronous Event based on both schemes in this programme, but whether institute
Some systems all support above two interface, so compatible encapsulation has also been done in Event encapsulation to select, poll, it is ensured that
The portability of system.
User's space and kernel interact a read-write process, after a read operation is sent, due to network speed and CPU
The mismatch of speed, while kernel reads a data, CPU can process other requests or calculate, so as to reach resource
Rationally utilize.
The client of Memcache agreements is realized mainly being responsible for connection management, protocol analysis (respectively by connection management
Module and protocol resolution module are realized).Connection management module is responsible for domain name mapping and connection failure retry mechanism, connection failure weight
Test-run a machine system is asynchronous one kind for retrying connection after Connection Service end long actively disconnects or network jitter causes to disconnect
Mechanism, when find to have connection is abnormal disconnect after have timer interval and reconnect for a period of time, if the interval time is N,
If that after being again coupled to reconnect unsuccessfully next time and being 2N, the like 3N, this time of 4N........ is nor hold
It is continuous to increase what is retried, when the certain number of retries of arrival or connection failure do alert process by remote alarm interface is adjusted back, retry machine
System is exploitation option, can be closed in items selection.Protocol resolution module is to go buffering after having a reading event triggering
Data are read in buffer, the module is responsible for for binary stream data being parsed into communication data by protocol resolver, the module
It is also responsible for the registered callbacks management of the call back function of Memcache command operations.
As shown in figure 5, being application example client call schematic flow sheet of the present invention, when client triggers an event, need
When being interacted with server end, for the event, following operation is performed:Create the corresponding event Event of the event
Object, Memcache protocol realizations object and connecting object, and be respectively processed so as to by described in using each object for creating
The event message of event is sent to server end, and Memcache operation call back functions then are registered into Memcache protocol realizations
In object, by Memcache protocol realizations object registration to connecting object, connecting object is finally registered to Event objects
In, due to Event objects in whole thread except being responsible for Memcache agreements, interact with server end Server and is also possible to outward
Other events are processed, so Event is individually encapsulated.This is more preferable also for the client and other assemblies are integrated.For institute
Other events for stating client triggering repeat the above steps, and by the corresponding Event objects for registering with connecting object of each event
Build asynchronous Event object sets;Event loop monitoring is carried out to the asynchronous Event object sets, when a certain connecting object
When listening to the event feedback information of the event message that the server end is directed to corresponding event, call corresponding registered
Memcache operation call back functions process the event feedback information.
As shown in fig. 6, for process chart, first program initialization are monitored in application example client event of the present invention circulation
Event objects presented hereinbefore, after event loop monitoring Event Loop are performed after the completion of initialization, system will be monitored and registered
All Files operation handle or timer, Memcache protocol realization objects are the wherein individual case of event loop,
User can according to circumstances continue to register other events in the thread, then when event triggering call it is corresponding registered
Memcache operation call back functions are processed, and next event triggering is continued waiting for after the completion for the treatment of.
Application example above-mentioned technical proposal of the present invention has the advantages that:Realized there is provided a kind of High-Performance Asynchronous
The technical scheme of Memcache protocol clients, what multiple asynchronous events coexisted in same thread, asynchronous event and
Memcache protocol processes realize decoupling, can conveniently carry out project integrated.
It should be understood that the particular order or level the step of during disclosed are the examples of illustrative methods.Based on setting
Meter preference, it should be appreciated that during the step of particular order or level can be in the feelings of the protection domain for not departing from the disclosure
Rearranged under condition.Appended claim to a method gives the key element of various steps with exemplary order, and not
It is to be limited to described particular order or level.
In above-mentioned detailed description, various features are combined in single embodiment together, to simplify the disclosure.No
This open method should be construed to reflect such intention, i.e. the embodiment of theme required for protection needs ratio
The more features of feature clearly stated in each claim.Conversely, as appending claims reflects
Like that, the present invention is in the state fewer than whole features of disclosed single embodiment.Therefore, appending claims
It is hereby expressly incorporated into detailed description, wherein each claim is alone as the single preferred embodiment of the present invention.
To enable any technical staff in the art to realize or using the present invention, disclosed embodiment being entered above
Description is gone.To those skilled in the art;The various modification modes of these embodiments will be apparent from, and this
The General Principle of text definition can also be applied to other embodiments on the basis of the spirit and scope for not departing from the disclosure.
Therefore, the disclosure is not limited to embodiments set forth herein, but most wide with principle disclosed in the present application and novel features
Scope is consistent.
Described above includes the citing of one or more embodiments.Certainly, in order to above-described embodiment is described and description portion
The all possible combination of part or method is impossible, but it will be appreciated by one of ordinary skill in the art that each is implemented
Example can do further combinations and permutations.Therefore, embodiment described herein is intended to fall into appended claims
Protection domain in all such changes, modifications and variations.Additionally, with regard to the term used in specification or claims
"comprising", the word cover mode similar to term " including ", solved as link word in the claims just as " including, "
As releasing.Additionally, the use of any one term "or" in the specification of claims being to represent " non-exclusionism
Or ".
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed
(illustrative logical block), unit, and step can be by the knot of electronic hardware, computer software, or both
Conjunction is realized.To clearly show that the replaceability (interchangeability) of hardware and software, above-mentioned various explanations
Property part (illustrative components), unit and step universally describe their function.Such work(
It can be the design requirement for realizing depending on specific application and whole system by hardware or software.Those skilled in the art
Can be for every kind of specific application, it is possible to use various methods realize described function, but this realization is understood not to
Beyond the scope of embodiment of the present invention protection.
Various illustrative logical block described in the embodiment of the present invention, or unit can by general processor,
Digital signal processor, application specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate
Or the design of transistor logic, discrete hardware components, or any of the above described combination is come the function realized or described by operate.General place
Reason device can be microprocessor, and alternatively, the general processor can also be any traditional processor, controller, microcontroller
Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor,
Multi-microprocessor, one or more microprocessors combine a Digital Signal Processor Core, or any other like configuration
To realize.
The step of method or algorithm described in the embodiment of the present invention can be directly embedded into hardware, computing device it is soft
Part module or the combination of both.Software module can be stored in RAM memory, flash memory, ROM memory, EPROM storages
Other any form of storage media in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this area
In.Exemplarily, storage medium can be connected with processor, to allow that processor reads information from storage medium, and
Write information can be deposited to storage medium.Alternatively, storage medium can also be integrated into processor.Processor and storage medium can
To be arranged in ASIC, ASIC can be arranged in user terminal.Alternatively, processor and storage medium can also be arranged at use
In different part in the terminal of family.
In one or more exemplary designs, above-mentioned functions described by the embodiment of the present invention can be in hardware, soft
Any combination of part, firmware or this three is realized.If realized in software, these functions can be stored and computer-readable
On medium, or it is transmitted on the medium of computer-readable with one or more instructions or code form.Computer readable medium includes electricity
Brain stores medium and is easy to so that allowing computer program to be transferred to other local telecommunication medias from a place.Storage medium can be with
It is that any general or special computer can be with the useable medium of access.For example, such computer readable media can include but
RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk storage or other magnetic storage devices are not limited to, or other are appointed
What can be used for carrying or store with instruct or data structure and other can be by general or special computer or general or specially treated
Device reads the medium of the program code of form.Additionally, any connection can be properly termed computer readable medium, example
Such as, if software is by a coaxial cable, fiber optic cables, double from web-site, server or other remote resources
Twisted wire, Digital Subscriber Line (DSL) or with the wireless way for transmitting such as example infrared, wireless and microwave be also contained in it is defined
In computer readable medium.Described disk (disk) and disk (disc) include Zip disk, radium-shine disk, CD, DVD, floppy disk
And Blu-ray Disc, disk is generally with magnetic duplication data, and disk generally carries out optical reproduction data with laser.Combinations of the above
Can also be included in computer readable medium.
Above-described specific embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that and the foregoing is only specific embodiment of the invention, be not intended to limit the present invention
Protection domain, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. all should include
Within protection scope of the present invention.
Claims (10)
1. a kind of client asynchronous processing method based on Memcache agreements, it is characterised in that methods described includes:
An event is triggered when client, it is necessary to when being interacted with server end, for the event, perform following operation:
The corresponding event Event objects of the event, Memcache protocol realizations object and connecting object are created, and using establishment
Each object be respectively processed so as to the event message of the event is sent into server end;
The Memcache operation call back functions of the event are registered in the Memcache protocol realizations object;
By in the Memcache protocol realizations object registration to the connecting object;
The connecting object is registered in the Event objects;
Other events for client triggering repeat the above steps, and by the corresponding connecting object that registers with of each event
Event objects build asynchronous Event object sets;
Event loop monitoring is carried out to the asynchronous Event object sets, when a certain connecting object listens to the server end
For the event message of corresponding event event feedback information when, call corresponding registered Memcache operation readjustment letter
The number treatment event feedback information.
2. the client asynchronous processing method of Memcache agreements is based on as claimed in claim 1, it is characterised in that the connection
Object is socket application programming interfaces Socket API connecting objects.
3. the client asynchronous processing method of Memcache agreements is based on as claimed in claim 1, it is characterised in that using establishment
The corresponding Memcache protocol realizations object of the event carry out treatment and include:
Memcache protocol analysis are carried out to the event using the corresponding Memcache protocol realizations object of the event, is obtained
Event message after Memcache protocol analysis.
4. the client asynchronous processing method of Memcache agreements is based on as claimed in claim 3, it is characterised in that using establishment
The corresponding connecting object of the event carry out treatment and include:
Using the corresponding connecting object of the event, the connection set up between the client and the server end.
5. the client asynchronous processing method of Memcache agreements is based on as claimed in claim 4, it is characterised in that using establishment
The corresponding Event objects of the event carry out treatment and include:
Using the corresponding Event objects of the event, the event message after the Memcache protocol analysis that will be obtained passes through
Connection between the client set up and the server end, is sent to server end.
6. a kind of client based on Memcache agreements, it is characterised in that the client includes:
Creating unit, for triggering an event when client, it is necessary to when being interacted with server end, create the event correspondence
Event Event objects, Memcache protocol realizations object and connecting object, and be respectively processed using each object for creating
So as to the event message of the event is sent into server end;
Registering unit, for the Memcache operation call back functions of the event to be registered into the Memcache protocol realizations pair
As in, by the Memcache protocol realizations object registration to the connecting object, and the connecting object is registered to institute
In stating Event objects;
Object set construction unit, the corresponding Event for registering with connecting object of each event for the client to be triggered
Object builds asynchronous Event object sets;
Circulation monitoring unit, for carrying out event loop monitoring to the asynchronous Event object sets, when a certain connecting object prison
When hearing that the server end is directed to the event feedback information of the event message of corresponding event, call corresponding registered
Memcache operation call back functions process the event feedback information.
7. the client of Memcache agreements is based on as claimed in claim 6, it is characterised in that the connecting object is socket
Application programming interfaces Socket API connecting objects.
8. the client of Memcache agreements is based on as claimed in claim 6, it is characterised in that the creating unit includes:
Memcache protocol realization object modules, for utilizing the corresponding Memcache protocol realizations object of the event to described
Event carries out Memcache protocol analysis, obtains the event message after Memcache protocol analysis.
9. the client of Memcache agreements is based on as claimed in claim 8, it is characterised in that the creating unit also includes:
Connecting object module, for using the corresponding connecting object of the event, setting up the client and the server end
Between connection.
10. the client of Memcache agreements is based on as claimed in claim 9, it is characterised in that the creating unit also includes:
Event object modules, for using the corresponding Event objects of the event, the Memcache agreements solution that will be obtained
Event message after analysis, by the connection between the client set up and the server end, is sent to server end.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611186142.7A CN106815083B (en) | 2016-12-20 | 2016-12-20 | A kind of client asynchronous processing method and client based on Memcache agreement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611186142.7A CN106815083B (en) | 2016-12-20 | 2016-12-20 | A kind of client asynchronous processing method and client based on Memcache agreement |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106815083A true CN106815083A (en) | 2017-06-09 |
CN106815083B CN106815083B (en) | 2019-11-12 |
Family
ID=59109073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611186142.7A Active CN106815083B (en) | 2016-12-20 | 2016-12-20 | A kind of client asynchronous processing method and client based on Memcache agreement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815083B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108363609A (en) * | 2018-02-07 | 2018-08-03 | 腾讯科技(深圳)有限公司 | The method, apparatus and storage medium of analog sensor |
CN109002363A (en) * | 2018-06-21 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of event-handling method, device, equipment and readable storage medium storing program for executing |
CN109857439A (en) * | 2019-01-30 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of update method and device of game version |
CN109981538A (en) * | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Registration method and system of subscription event, and processing method and system of subscription event |
CN110659033A (en) * | 2018-06-29 | 2020-01-07 | 武汉斗鱼网络科技有限公司 | Protocol registration and distribution method, storage medium, electronic device and system |
CN111061474A (en) * | 2018-10-16 | 2020-04-24 | 深圳市茁壮网络股份有限公司 | Lamda programming model and data processing method thereof |
CN111555950A (en) * | 2020-03-26 | 2020-08-18 | 厦门网宿有限公司 | Message processing method, device, server and storage medium |
CN112134915A (en) * | 2020-06-29 | 2020-12-25 | 上海金融期货信息技术有限公司 | Application layer protocol decoupling universal network processing system |
CN112685148A (en) * | 2020-12-07 | 2021-04-20 | 南方电网数字电网研究院有限公司 | Asynchronous communication method and device of mass terminals, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215243A (en) * | 2010-04-12 | 2011-10-12 | 华为技术有限公司 | Event synchronization method, system, client and server |
CN103885973A (en) * | 2012-12-21 | 2014-06-25 | 中国科学院声学研究所 | Web-engine-based remote procedure call system and implementation method thereof |
CN104917817A (en) * | 2015-04-23 | 2015-09-16 | 四川师范大学 | Client side and data communication method |
-
2016
- 2016-12-20 CN CN201611186142.7A patent/CN106815083B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102215243A (en) * | 2010-04-12 | 2011-10-12 | 华为技术有限公司 | Event synchronization method, system, client and server |
CN103885973A (en) * | 2012-12-21 | 2014-06-25 | 中国科学院声学研究所 | Web-engine-based remote procedure call system and implementation method thereof |
CN104917817A (en) * | 2015-04-23 | 2015-09-16 | 四川师范大学 | Client side and data communication method |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981538A (en) * | 2017-12-28 | 2019-07-05 | 深圳市优必选科技有限公司 | Registration method and system of subscription event, and processing method and system of subscription event |
CN108363609A (en) * | 2018-02-07 | 2018-08-03 | 腾讯科技(深圳)有限公司 | The method, apparatus and storage medium of analog sensor |
CN109002363A (en) * | 2018-06-21 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of event-handling method, device, equipment and readable storage medium storing program for executing |
CN110659033B (en) * | 2018-06-29 | 2023-08-11 | 深圳耐看科技有限公司 | Protocol registration distribution method, storage medium, electronic equipment and system |
CN110659033A (en) * | 2018-06-29 | 2020-01-07 | 武汉斗鱼网络科技有限公司 | Protocol registration and distribution method, storage medium, electronic device and system |
CN111061474A (en) * | 2018-10-16 | 2020-04-24 | 深圳市茁壮网络股份有限公司 | Lamda programming model and data processing method thereof |
CN111061474B (en) * | 2018-10-16 | 2024-04-26 | 深圳市茁壮网络股份有限公司 | Lamda programming device and data processing method thereof |
CN109857439A (en) * | 2019-01-30 | 2019-06-07 | 腾讯科技(深圳)有限公司 | A kind of update method and device of game version |
CN109857439B (en) * | 2019-01-30 | 2020-11-20 | 腾讯科技(深圳)有限公司 | Game version updating method and device |
CN111555950A (en) * | 2020-03-26 | 2020-08-18 | 厦门网宿有限公司 | Message processing method, device, server and storage medium |
CN111555950B (en) * | 2020-03-26 | 2022-05-13 | 厦门网宿有限公司 | Message processing method, device, server and storage medium |
CN112134915B (en) * | 2020-06-29 | 2022-10-14 | 上海金融期货信息技术有限公司 | Application layer protocol decoupling universal network processing system |
CN112134915A (en) * | 2020-06-29 | 2020-12-25 | 上海金融期货信息技术有限公司 | Application layer protocol decoupling universal network processing system |
CN112685148A (en) * | 2020-12-07 | 2021-04-20 | 南方电网数字电网研究院有限公司 | Asynchronous communication method and device of mass terminals, computer equipment and storage medium |
CN112685148B (en) * | 2020-12-07 | 2024-06-11 | 南方电网数字电网研究院有限公司 | Asynchronous communication method and device for mass terminals, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106815083B (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106815083B (en) | A kind of client asynchronous processing method and client based on Memcache agreement | |
US10659254B2 (en) | Access node integrated circuit for data centers which includes a networking unit, a plurality of host units, processing clusters, a data network fabric, and a control network fabric | |
CN104603739B (en) | The block level of parallel memorizing is accessed | |
US8233380B2 (en) | RDMA QP simplex switchless connection | |
CN105681472B (en) | A kind of log transmission method and device | |
CN109756461A (en) | A kind of remote procedure calling (PRC) method based on NETTY | |
US9483209B2 (en) | Interface system and method | |
CN102323894B (en) | System and method for realizing non-blockage mutual calling in distributed application of enterprise | |
CN110476154B (en) | Proxy server apparatus and method for data collection | |
US9723064B1 (en) | Hybrid quorum policies for durable consensus in distributed systems | |
CN108418874A (en) | Guiding method, device, computer equipment and storage medium are returned across wide area network data | |
KR20050002604A (en) | System and method for message-based scalable data transport | |
CN110399236A (en) | Adaptation method, device, medium and the electronic equipment of message queue | |
US7568062B2 (en) | Data cut-through in an infiniband/fibre channel bridge | |
Long | Storage Networking Protocol Fundamentals | |
CN107015855A (en) | A kind of asynchronous service centralized dispatching method and device for supporting time parameter method | |
CN104750817B (en) | A kind of page module method for refreshing and device based on data broadcast communication | |
CN111124979B (en) | Stack structure-based I2C multi-master access method and system | |
US20180351780A1 (en) | Methods and systems that implement an application-level tunnel through which long syslog messages are transmitted | |
US9794344B2 (en) | Handling of data transfer in a LAN-free environment | |
CN110798366B (en) | Task logic processing method, device and equipment | |
JP2022541130A (en) | Systems and methods for providing bi-directional forwarding detection with performance routing measurements | |
US20230082829A1 (en) | Pipelineable and parallelizable streaming parsers for querying structured data-interchange information | |
US20100313206A1 (en) | Method and apparatus for making inter-process procedure calls through shared memory | |
US20080313309A1 (en) | Client-server data transfer control |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |