CN104793999A - Servo server framework system - Google Patents

Servo server framework system Download PDF

Info

Publication number
CN104793999A
CN104793999A CN201410028646.0A CN201410028646A CN104793999A CN 104793999 A CN104793999 A CN 104793999A CN 201410028646 A CN201410028646 A CN 201410028646A CN 104793999 A CN104793999 A CN 104793999A
Authority
CN
China
Prior art keywords
processing module
module
thread
server architecture
new events
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410028646.0A
Other languages
Chinese (zh)
Inventor
郑杰骞
王申
郭向国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201410028646.0A priority Critical patent/CN104793999A/en
Publication of CN104793999A publication Critical patent/CN104793999A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a servo server framework system which mainly comprises a monitoring module, an IO processing module and a service data processing module. The monitoring module is used for monitoring a connection request of a new event and transmitting the connection request of the monitored new event to the IO processing module. The IO processing module sets up conversion connection for the new event after receiving the connection request of the new event and receives service data of the new event sent by a client side through the conversion connection. The IO processing module transmits the service data to the service data processing module and transmits a processing result transmitted by the service data processing module through the conversion connection to the client side. The service data processing module processes the service data based on a thread pool and transmits the processing result to the IO processing module. Through separation of IO processing and actual service data processing, the expandability of the servo server framework system is enhanced, a dynamic loading module is supported, multi-thread or single-thread use of the module is supported, and the servo server framework system with expandability, high stability and high efficiency is provided.

Description

Serving server architecture system
Technical field
The present invention relates to Computer Applied Technology field, particularly relate to a kind of serving server architecture system.
Background technology
Serving server can provide the information processed to client, and through the other-end machine of network connections serving server, promptly can obtain data or the result of needs, export to the object of needs.The computer that general individual uses, only need the demand of a service user just much of that, but serving server but must serve everyone, servomechanism must or very short time in, hold from job requirement from all directions, and result will be replied at once, send information, therefore, the maximum feature of serving server, is exactly that arithmetic capability must be very powerful, will completes all operation at short notice.In addition, the equipment that serving server externally connects also is heavyweight.
The serving server development of recent years, the mainly application of world-wide web and telecommunications industry, especially world-wide web is already from data search, be deep in common people's life, such as finance is with the use of finance and economics, networking bank calcaneus rete road credit card, all must rely on the arithmetic capability that serving server is powerful, just can accomplish the highly confidential degree be not easily cracked of data.The development and requirement of information circulation is growing, and the development and apply scope of following servomechanism may heal gradually vast, and this also represent information infrastructure can along with the development of servomechanism for people provide better life.
The continuous propelling of China's manufacturing industry industrial upgrading, for the development of China's servo industry provides huge market, in recent years, along with the industry such as numerically-controlled machine, package packing machine, Electronic Special Equipment continues to keep the increasingly mature of better development and AC Servo Technology, the application of emerging industry as the Wind Power Generation Industry servo techniques in new forms of energy industry makes China's servo market develop rapidly, 2010, China's servo market increased by 39.7% on a year-on-year basis, and market scale reaches 39.9 hundred million yuan.But, current serving server stability and easily extensible capable in existing defects and deficiency, therefore, provide a kind of high efficiency serving server to be a problem demanding prompt solution.
Summary of the invention
The embodiment provides a kind of serving server architecture system, to improve the efficiency of serving server architecture system.
The invention provides following scheme:
A kind of serving server architecture system, comprising: monitor module, IO processing module and business data processing module,
Described monitoring module, for monitoring the connection request of new events, passes to IO processing module by the connection request of the new events listened to;
Described IO processing module, for receive the new events that described monitoring module transfer is come connection request after, for described new events sets up session connection, described session connection is utilized to receive the business datum of the described new events that client sends over, by described business data transmission to business data processing module; Utilize described session connection that the result that described business data processing module transfer is come is transferred to described client;
Described business data processing module, for processing the business datum that described IO processing module transmits based on thread pool, is transferred to described IO processing module by result.
Described system also comprises:
Timing Processing module, for based on timing mechanism, to described monitoring module, IO processing module, the processing procedure of business data processing module sets timing function and/or sets overtime duration.
Described monitoring module, IO processing module, business data processing module, the mutual independent operating of Timing Processing module.
Described monitoring module, specifically for opening watcher thread and listening port, described watcher thread is utilized to monitor the connection request of new events by described listening port, connection request for the new events listened to generates a new session, and the connection request of the new events listened to is transferred to described IO processing module.
Described IO processing module support synchronous IO processing mode and asynchronous IO processing mode, switch as required between described synchronous IO processing mode and asynchronous IO processing mode.
Described IO processing module, specifically for being set up the session connection of described new events by separate threads, is added to current sessions and connects queue by described session connection; Utilize described session connection to receive by separate threads and send the business datum of described new events; The call back function of described session connection is set, utilizes the function pointer in described call back function that correspondence is carried out in described session connection and corresponding new events.
Described Service Processing Module, for based on thread pool, completes at least one item in data head process, the process of filtration chain, message distribution, message queue and thread pool process.
Described Service Processing Module support application multithreading and single-threaded, when certain Service Processing Unit is corresponding single-threaded, in given thread pond, certain thread uniquely processes this certain Service Processing Unit, each Service Processing Unit does not interfere with each other, and all packets of this certain Service Processing Unit process that needs all wait in line certain thread process described; When the corresponding multithreading of certain Service Processing Unit, all packets of this resume module that needs all are submitted to thread pool, with concurrent form by thread pool dispatch deal.
Described serving server architecture system carries out Memory Allocation by memory pool, and according to the size of applied for internal memory, traversal memory block list chained list, checks the existing memory block whether existing and match, if so, directly distribute described existing memory block; Otherwise the newly-built memory block that matches also distributes.
When needs upgrade existing Service Processing Module, Service Processing Module after upgrading is loaded in serving server architecture system, position pointed by function pointer in the call back function of described existing Service Processing Module is changed into the position pointed by the function pointer in the Service Processing Module after described renewal, new business datum is by the Service Processing Module process after described renewal, after described existing Service Processing Module processes old business datum, discharge the system resource shared by it.
The technical scheme provided as can be seen from the embodiment of the invention described above, the embodiment of the present invention, by IO process and actual traffic data process being separated, enhances the extensibility of serving server architecture system; Support dlm (dynamic loading module), support module multithreading or single-threaded use; By memory pool Resources allocation; Adopt the process of filtration chain to operate accordingly, the processing procedure between transmission data and business datum is independently gone out, supports to process at many levels; Support synchronous and asynchronous IO process; Conversation procedure can resource automatically in releasing session process; Support the use of call back function so that this function can use diverse ways flexibly when process similar case, embodiments provide a kind of extensibility, good stability, serving server architecture system that efficiency is high.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The processing flow chart of the method for managing resource in a kind of multimedia communications system that Fig. 1 provides for the embodiment of the present invention one, in figure, monitors module 10, IO processing module 20, business data processing module 30 and Timing Processing module 40;
The service process figure of a kind of servo architecture server that Fig. 2 provides for the embodiment of the present invention one;
The implementation schematic diagram of a kind of memory pool that Fig. 3 provides for the embodiment of the present invention one.
Embodiment
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each embodiment does not form the restriction to the embodiment of the present invention.
Embodiment one
Embodiments provide one and stablize extendible serving server architecture system, the structural representation of this system as shown in Figure 1, comprising: monitor module 10, IO processing module 20, business data processing module 30 and Timing Processing module 40.Each module is an independently module, and any one module can not rely on other modules and work alone.
The service process figure of a kind of above-mentioned servo architecture server that this embodiment provides as shown in Figure 2, above-mentioned serving server architecture system is by being responsible for the thread creation audiomonitor of the new connection request of monitoring and connecting new events, be responsible for the process monitoring and process IO read-write and close event, based on thread pool and filtration chain, and support the single-threaded or business data processing of multi-thread concurrent and the different situations of Timing Processing, correspondingly carry out E-seal stamped signature and test the processes such as chapter.Introduce the function of modules below respectively.
One, module is monitored
Monitor module, be used for utilizing watcher thread to monitor the connection request of new events by listening port, the connection request for the new events listened to generates a new session, and the connection request of the new events listened to is transferred to IO processing module.
Monitored module before startup snoop-operations, listening port and watcher thread be opened, monitor the connection request of new events in the mode of separate threads.Monitor module and can close listening port and watcher thread as required, do not affect the session connection of having set up.
Two, IO processing module
Described IO processing module, specifically for being set up the session connection of described new events by separate threads, is added to current sessions and connects queue by described session connection; Utilize described session connection to receive by separate threads and send the business datum of described new events; The call back function of described session connection is set, utilizes the function pointer in described call back function that correspondence is carried out in described session connection and corresponding new events.
After IO processing module receives and monitors the connection request of new events that module transfer comes, for this new events creates a new session connection, the new session of this new session connection and above-mentioned monitoring module creation in correspondence with each other.After this this module can isolated operation process IO read-write and the operation such as close event, and the IO that IO processing module utilizes above-mentioned new session connection to carry out the data of above-mentioned new events by separate threads reads and writes.When client is come by above-mentioned new session connection transmission data, IO processing module is by reading data and transfer data to business data processing resume module.
IO processing module and business data processing module be all respective independent operating task operating separately when system cloud gray model, when needing to carry out mutual, is mutually notified by event mode, thus improves extensibility and the robustness of system.
This module is supported synchronous and asynchronous IO process and can be changed accordingly according to different situations and switch, thus significantly saves the time, and add the efficiency of task process, this is also outstanding advantage and the innovation of this module.In synchronous IO processing mode, thread starts an I/O operation and then just enters waiting status immediately, until I/O operation just continues the operation performing other after completing.And in asynchronous IO process, thread sends an I/O request to kernel, then continue the operation processing other, after kernel completes I/O request, will notify that thread I/O operation completes.If I/O request needs the plenty of time to perform, asynchronous IO mode can significantly improve efficiency, because thread waits during this period of time in, CPU will dispatch other threads and perform, if do not have other threads to need to perform, will slattern during this period of time, main because period kernel may the zero page thread of scheduling operation system.If I/O request operation is very fast, go back poor efficiency on the contrary by asynchronous IO processing mode, now, we use synchronous IO processing mode instead.Synchronous IO processing mode only allows an I/O operation at synchronization, and the I/O operation that is for same file handle is serializing, even if use two threads can not send read-write operation to same file handle simultaneously simultaneously.Overlapping IO allows one or more thread to send I/O request simultaneously.
Described IO processing module sets up the session connection of described new events by separate threads, arrange the call back function of described session connection, utilizes the function pointer in described call back function that correspondence is carried out in described session connection and corresponding new events.
IO processing module mainly comprises following function: start I/O processing capacity, stops I/O processing capacity; Add a new session connection to current session connection queue; Remove current some session connection queues; Remove current session connection; Receive with separate threads group and send data; The idle event of session is sent to filtration chain.
Three, business data processing module
The data that the IO processing module of receiving Service Processing Module primary responsibility reads the different demand task of corresponding completing user.This module realizes based on thread pool.Business data processing module based on thread pool is divided into: data head process, filters chain process, message distribution, message queue, five subdivisions such as thread pool process.This module can be executed the task individually when system cloud gray model equally and can not by the impact of other modules.
The main implementation procedure of thread pool is: the thread first starting some quantity, and allow these threads all be in sleep state, when client has one newly to ask, the some threads of sleeping in thread pool will be waken up, allow it to process this request of client, after processing this request, thread is in sleep state again.Technology is pre-created based on this, the cost shared that thread creation and destruction itself bring by thread pool is in each concrete task, perform number of times more, each task the own expense of thread shared then less, but we may need to take into account expense synchronous brought between thread in addition.
General thread pool all must possess several ingredient below:
(1) thread pool manager: for creating and management thread pond;
(2) worker thread: the actual thread performed in thread pool;
(3) task interface: although thread pool is in most cases used to support network services device, we are by out abstract for the task of thread execution, form task interface, thus thread pool and concrete task are had nothing to do;
(4) task queue: the concept of thread pool may be then the data structure of queue, chained list and so on specific to realization, wherein preserves execution thread.
Thread Pool Technology has reused consumption internal memory ground resource as much as possible, greatly saves internal memory, improves the efficiency of service of server, can support more customer service.By using thread pool, will greatly improve program operational efficiency, meanwhile, we can come the quantity, service condition etc. of monitor thread connection by the administrative mechanism of himself.
For other parts, its function is as follows:
(1) data head processing section is mainly used in reading communication data, obtains the length of communication data, the length of setting data bag, and IO processing module is according to all data of this bag of packet header length automatic reception and data spliced in order;
(2) filter chain part and mainly carry out layered shaping to the data in transmission, each layer filters chain and accomplishes independent processing.Corresponding encryption, deciphering, eap-message digest, digital signature or the behavior of signature verification task is selected according to different orders or data layout as filtered chain part, data are by filtering chain filtration successively, carry out corresponding different filter operation, and finally for user obtains its data needed;
(3) message distribution part is mainly classified to task according to different users requirement and data layout, and task is sent to message queue;
(4) business data processing module is supported multithreading and single-threadedly to be used simultaneously, when certain Service Processing Unit is corresponding single-threaded, in given thread pond, certain thread uniquely processes this certain Service Processing Unit, each Service Processing Unit does not interfere with each other, and all packets of this certain Service Processing Unit process that needs all wait in line certain thread process described; When the corresponding multithreading of certain Service Processing Unit, all packets of this resume module that needs all are submitted to thread pool, with concurrent form by thread pool dispatch deal.Cpu resource can be maximally utilised like this.Adopt multithreading can reduce the response time of user, to strengthen Consumer's Experience effect.
Four, Timing Processing module
Timing Processing time module is mainly based on timing mechanism, artificial official hour node carries out corresponding event handling Timing Processing module, to described monitoring module, IO processing module, the processing procedure of business data processing module sets timing function and/or sets overtime duration.Timing Processing module major function is:
For other threads add the timing function of certain thread;
According to concrete business, Timing Processing is added to certain session, and can timing allow the specific business of this thread process;
The Processing tasks such as the transmission in Timing Processing business, acceptance, closedown send to IO to read and write and close event processing module processes.
In addition, server end can arrange time-out time length; Here 120 unit interval are set to; If do not have task requests in the time-out time of regulation, so server will enter idle condition; For client, be provided with time-out time length equally, be specially 10 unit interval.If without service state, and task terminates, and service is discharged; Arrange 1000 unit interval of sleep in test case after, whether querying server has service state at every turn.
Above-mentioned serving server architecture system carries out Memory Allocation by memory pool, and according to the size of applied for internal memory, traversal memory block list chained list, checks the existing memory block whether existing and match, if so, directly distribute described existing memory block; Otherwise the newly-built memory block that matches also distributes.Concrete processing procedure is as follows:
In memory allocate way, we select memory pool memory allocate way.If directly use the API such as new (), malloc () to apply for storage allocation under normal circumstances, the shortcoming done like this is: because the size of applied for memory block is indefinite, can cause a large amount of memory fragmentations and and then reduce performance when frequent use.Generally, memory pool be then real use internal memory before, first to file distribute some, equal-sized memory block gives over to for subsequent use.When there being new memory requirements, just from memory pool, separate a part of memory block, if the memory block internal memory that continuation application is new more not.As far as possible the remarkable advantage done like this avoids memory fragmentation, and Memory Allocation efficiency is got a promotion.In kernel, there are many local Memory Allocation not allow failure.As the mode that is guaranteed to distribute in these cases, kernel development person creates one and is known as the abstract of memory pool.A memory pool is a class standby buffer memory truly, and it keeps a free memory list to use to time urgent as possible always.
The implementation schematic diagram of a kind of memory pool that this embodiment provides as shown in Figure 3, these three structures of memory block pointer, memory block list and memory pool are mainly comprised in the structure of design memory pool, memory block pointer structure comprises the pointer pointing to actual memory space, and forward and backward pointer can form doubly linked list by memory block pointer; The chained list of idle pointed free memory block composition in memory block list structure, the chained list of the memory block composition during the memory block pointed program used uses, containing the value representing memory block size in memory block list, between memory block list, form single-track link table; The head and tail of memory pool structure record memory block list chained list.
Application internal memory method is as follows:
(1) according to the size of applied for internal memory, traversal memory block list chained list, checks the size whether existing and match;
(2) there is coupling memory block size: check whether free pointer is null value;
(3) free pointer is null value: use malloc ()/new () to apply for internal memory, and the internal memory of application is placed in the afterbody of the memory block pointer indication chained list used;
(4) free pointer is not null value: removed by the head node of free pointer indication chained list, be positioned over the afterbody of the memory block pointer indication chained list used;
(5) there is not the block of matched size: newly-built memory block list, use malloc ()/new () to apply for internal memory, and the internal memory of application is placed in the memory block pointer indication chained list afterbody used of this memory block list;
(6) memory headroom pointer is returned.
Releasing memory method:
According to internal memory tracking strategy, the memory block pointer obtaining memory block list pointer and used, deletes it, is positioned over the chained list pointed by free pointer from the chained list of the memory block pointer indication used.
The characteristic that the another one of above-mentioned serving server architecture system is outstanding to support dlm (dynamic loading module).When some moment serving server need to upgrade certain Service Processing Module when running, Service Processing Module after upgrading is loaded in serving server architecture system, position pointed by function pointer in the call back function of described existing Service Processing Module is changed into the position pointed by the function pointer in the Service Processing Module after described renewal, new business datum is by the Service Processing Module process after described renewal, after described existing Service Processing Module processes old business datum, discharge the system resource shared by it.The operation of current system can be will can not affected in required module loading to system at any time by the method, and effectively resource occupation can be reduced.
Embodiment two
Electronic Signature, the same with the digital certificate that we use, be intended for a kind of means of authentication, make a general reference and allly Electronically to exist, be attached to e-file and with its logic association, in order to identification e-file signatory identity, the integrality of file can be ensured, and represents that signatory agrees to the content that e-file states the fact.In general, to the identification of Electronic Signature, all say from technical standpoint.Mainly refer to and differentiate the identity of litigant by specific technical scheme and guarantee the safety precautions that transaction data content is not tampered.In broad terms, Electronic Signature not only comprises " asymmetry secret key encryption " that our ordinary meaning is said, also comprises computing machine password, biological person's handwriting distinguishes, fingerprint recognition, and the eye iris perspective discriminance, the face line identification etc. that recently occur.And Electronic Signature technology is as the most ripe at present " digital signature ", make with PKI and key " asymmetric " cryptographic technique.Electronic Signature is a kind of form of expression of electronic signature, utilize image processing techniques operation of electronic signature to be converted into affix one's seal with paper document and operate identical visual effect, utilize electronic signature technology to ensure the authenticity and integrity of electronic information and the non-repudiation of signer simultaneously.
The main process taking the Electronic Signature of IA frame serverPC based on private is that the server end of servo architecture server and client connect and to carry out the process of corresponding task operation as follows, and a kind of processing procedure of disposing Electronic Signature that this embodiment provides comprises following execution step:
Step 1, first arranges the IP address of the default name of server, server, opens service end pattern.Server end creates the service object of servo architecture server after opening.Service is started by input password and the corresponding path of importing.The monitoring module of server is monitored by watcher thread, sees if there is client and sends task requests.If now there is client to initiate the connection request of new events, then the connection request of the new events listened to is passed to IO processing module by this monitoring module.IO processing module receives the connection request of new events monitored module and transmit, and generates a new session connection for this event, and after this this module can isolated operation process IO and read and write and the operation such as close event.When there being data to need process, IO processing module passes to business data processing resume module corresponding event by reading data and by data.Various piece is disposed by business data processing module, such as: increase data packet header processing capacity, process communication data head.Add message distribution process function and add filter function, communication data being imported into filtration chain, carry out corresponding data processing according to different task requests.In addition server also adds message processing function.
Step 2, client opens client mode, and starts services request.Various piece is disposed by the business data processing module of client: increase data packet header processing capacity, process communication data head.Add message distribution process function and add filter function, communication data being imported into filtration chain, carry out corresponding data processing according to different task requests.In addition server also adds message processing function.Client utilizes above-mentioned new session connection business to be transferred to the IO processing module of server end.
Step 3, server accepts the request of client, and the business datum of being come by IO processing module reading client transmissions, passes to the Service Processing Module of server end, the filtration chain part process in business data processing module afterwards by business datum.Such as: if client needs to sign to communication data.Filter chain part and select the behavior of corresponding digital signature task operating according to different orders or data layout, data, by filtering chain filtration successively, are carried out corresponding different filter operation, and are finally obtained the data required for user side.Message distribution part is given by filtering chain part afterwards by data.Message distribution part requires according to different users and data layout is classified to task and task is sent to message queue.Medium for thread pool task to be allocated and process is sent to each processing module and arrives the final object of user by last Service Processing Module.After the complete data of business data processing resume module, outgoing data is returned to the IO processing module of server by thread transmission.If period, data processing exception or make a mistake occurred, so this session will be closed by the thread in serviced device IO processing module.In addition, Servers installed time-out time length, is set to 120 unit interval.If do not have task requests in the time-out time of regulation, so server will enter idle condition.
Step 4, if current server is without service state, and task terminates, and will serve and session connection release.Client 1000 unit interval of sleep are set at every turn after querying server whether have service state, and repeatedly to inquire about.
Step 5, service end and client terminate.
Below to carry out signature operation to the file of a PDF type, above-mentioned stamped signature process is described
1, server end:
(1) first the default name of server is set;
(2) the IP address of server is set; Such as: IP=192.168.3.3:7999;
(3) number of viewing command line parameter;
(4) if the number of command line parameter is 1, so service end pattern is opened; Otherwise system will open client mode;
(5), after service end is opened, the service object of servo architecture server is created;
(6) service is started by input password and the corresponding path of importing;
(7) after this, add data header processing capacity, communication data head is processed; Here the path arranged be under Windows system C: trust.txt;
(8) message distribution function is added;
(9) add filter function, communication data is imported into filtration chain, carry out corresponding data processing according to different task requests;
(10) message processing function is added; Such as: if client needs to sign to communication data, just directly signature operation can be carried out after so communication data being put into filtration chain;
(11) time-out time length is set; Here in test case, be set to 120 unit interval; If do not have task requests in the time-out time of regulation, so server will enter idle condition;
(12) server is monitored, and sees if there is client and sends task requests.
2, client:
(1) first the default name of server is set;
(2) the IP address of server is set; Such as: IP=192.168.3.3:7999;
(3) number of viewing command line parameter;
(4) if the number of command line parameter is not 1, so client mode is opened;
(5) if be client, so client mode is opened;
(6) services request is started;
(7) increase data packet header processing capacity, communication data head is processed;
(8) message distribution process function is added;
(9) add filter function, communication data is imported into filtration chain, carry out corresponding data processing according to different task requests;
(10) message processing function is added;
(11) time-out time length is set; Here in test case, be set to 10 unit interval;
(12) connect monitoring service device, carry out task application to server;
(13) new task application service is increased;
(14) if server on client's side link, following task operating is carried out;
(15) obtain and each property value of file to be operated is set;
(16) suppose that active client application task is then have following operation to the file signature of PDF;
(17) if without service state, and task terminates, and service is discharged;
(18) arrange 1000 unit interval of sleep in test case after, whether querying server has service state at every turn, and repeatedly inquires about.
Here a unit interval of indication is 1 second.The structural information of communication packet header is the length of bag size comprising packet header; Command number; Packet header agreement; Communication bag version; Communication packet protocol; Client identification; Return state; Inclusion check code and corresponding task order.The size arranging bag is 1024*1024*10.
Test result, improve the accuracy of Electronic Signature process and degree of safety and speed by the implementation method of this system server and Electronic Signature, the stand-by period of client shortens, and enhances the effect of Consumer's Experience.
In sum, the embodiment of the present invention, by IO process and actual traffic data process being separated, enhances the extensibility of serving server architecture system; Support dlm (dynamic loading module), support module multithreading or single-threaded use; By memory pool Resources allocation; Adopt the process of filtration chain to operate accordingly, the processing procedure between transmission data and business datum is independently gone out, supports to process at many levels; Support synchronous and asynchronous IO process; Conversation procedure can resource automatically in releasing session process; Support the use of call back function so that this function can use diverse ways flexibly when process similar case, embodiments provide a kind of extensibility, good stability, serving server architecture system that efficiency is high.
By the embodiment of the present invention is applied in the implementation method of Electronic Signature, enhance the extensibility of serving server architecture system, improve the accuracy of Electronic Signature process and degree of safety and speed, the stand-by period of client shortens, and enhances the effect of Consumer's Experience.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device or system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Apparatus and system embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a serving server architecture system, is characterized in that, comprising: monitor module, IO processing module and business data processing module,
Described monitoring module, for monitoring the connection request of new events, passes to IO processing module by the connection request of the new events listened to;
Described IO processing module, for receive the new events that described monitoring module transfer is come connection request after, for described new events sets up session connection, described session connection is utilized to receive the business datum of the described new events that client sends over, by described business data transmission to business data processing module; Utilize described session connection that the result that described business data processing module transfer is come is transferred to described client;
Described business data processing module, for processing the business datum that described IO processing module transmits based on thread pool, is transferred to described IO processing module by result.
2. serving server architecture system according to claim 1, is characterized in that, described system also comprises:
Timing Processing module, for based on timing mechanism, to described monitoring module, IO processing module, the processing procedure of business data processing module sets timing function and/or sets overtime duration.
3. serving server architecture system according to claim 1, is characterized in that, described monitoring module, IO processing module, business data processing module, the mutual independent operating of Timing Processing module.
4. serving server architecture system according to claim 1, is characterized in that:
Described monitoring module, specifically for opening watcher thread and listening port, described watcher thread is utilized to monitor the connection request of new events by described listening port, connection request for the new events listened to generates a new session, and the connection request of the new events listened to is transferred to described IO processing module.
5. serving server architecture system according to claim 1, it is characterized in that, described IO processing module support synchronous IO processing mode and asynchronous IO processing mode, switch as required between described synchronous IO processing mode and asynchronous IO processing mode.
6. serving server architecture system according to claim 5, is characterized in that:
Described IO processing module, specifically for being set up the session connection of described new events by separate threads, is added to current sessions and connects queue by described session connection; Utilize described session connection to receive by separate threads and send the business datum of described new events; The call back function of described session connection is set, utilizes the function pointer in described call back function that correspondence is carried out in described session connection and corresponding new events.
7. the serving server architecture system according to any one of claim 1 to 6, is characterized in that:
Described Service Processing Module, for based on thread pool, completes at least one item in data head process, the process of filtration chain, message distribution, message queue and thread pool process.
8. serving server architecture system according to claim 7, it is characterized in that, described Service Processing Module support application multithreading and single-threaded, when certain Service Processing Unit is corresponding single-threaded, in given thread pond, certain thread uniquely processes this certain Service Processing Unit, each Service Processing Unit does not interfere with each other, and all packets of this certain Service Processing Unit process that needs all wait in line certain thread process described; When the corresponding multithreading of certain Service Processing Unit, all packets of this resume module that needs all are submitted to thread pool, with concurrent form by thread pool dispatch deal.
9. serving server architecture system according to claim 7, it is characterized in that, described serving server architecture system carries out Memory Allocation by memory pool, according to the size of applied for internal memory, traversal memory block list chained list, check the existing memory block whether existing and match, if so, directly distribute described existing memory block; Otherwise the newly-built memory block that matches also distributes.
10. serving server architecture system according to claim 7, it is characterized in that, when needs upgrade existing Service Processing Module, Service Processing Module after upgrading is loaded in serving server architecture system, position pointed by function pointer in the call back function of described existing Service Processing Module is changed into the position pointed by the function pointer in the Service Processing Module after described renewal, new business datum is by the Service Processing Module process after described renewal, after described existing Service Processing Module processes old business datum, discharge the system resource shared by it.
CN201410028646.0A 2014-01-21 2014-01-21 Servo server framework system Pending CN104793999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410028646.0A CN104793999A (en) 2014-01-21 2014-01-21 Servo server framework system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410028646.0A CN104793999A (en) 2014-01-21 2014-01-21 Servo server framework system

Publications (1)

Publication Number Publication Date
CN104793999A true CN104793999A (en) 2015-07-22

Family

ID=53558811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410028646.0A Pending CN104793999A (en) 2014-01-21 2014-01-21 Servo server framework system

Country Status (1)

Country Link
CN (1) CN104793999A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391968A (en) * 2015-11-03 2016-03-09 浙江大华技术股份有限公司 Video session allocation method and device
CN105930216A (en) * 2016-04-15 2016-09-07 平安科技(深圳)有限公司 Automatic scheduling method and system for electronic signature system and server
CN106559447A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 The method for processing business and system of JSLEE containers
WO2017181853A1 (en) * 2016-04-20 2017-10-26 阿里巴巴集团控股有限公司 Method, device, and system for dynamically allocating memory
CN107656782A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN108243222A (en) * 2016-12-26 2018-07-03 航天信息股份有限公司 Server network architecture method and device
CN109995841A (en) * 2018-01-02 2019-07-09 航天信息股份有限公司 Grain supervisory systems
CN111190727A (en) * 2019-11-19 2020-05-22 腾讯科技(深圳)有限公司 Asynchronous memory destructuring method and device, computer equipment and storage medium
CN112015559A (en) * 2020-09-03 2020-12-01 深圳虹川科技有限公司 Asynchronous real-time data updating system and method based on http protocol
CN112732833A (en) * 2021-01-08 2021-04-30 西安交通大学 Universal data bridge architecture for acquiring block chain information and design method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040003085A1 (en) * 2002-06-26 2004-01-01 Joseph Paul G. Active application socket management
CN1619522A (en) * 2003-11-17 2005-05-25 联想(北京)有限公司 Computer group file service system and its input output treatment method
CN101256505A (en) * 2007-03-02 2008-09-03 中国科学院声学研究所 Single process contents server device and method based on IO event notification mechanism
CN101382916A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Method for managing embedded system memory
CN102045346A (en) * 2010-11-25 2011-05-04 深圳市科陆电子科技股份有限公司 TCP (Transmission Control Protocol) service channel realized by adopting Netty framework
CN103164256A (en) * 2011-12-08 2013-06-19 深圳市快播科技有限公司 Processing method and system capable of achieving one machine supporting high concurrency

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040003085A1 (en) * 2002-06-26 2004-01-01 Joseph Paul G. Active application socket management
CN1619522A (en) * 2003-11-17 2005-05-25 联想(北京)有限公司 Computer group file service system and its input output treatment method
CN101256505A (en) * 2007-03-02 2008-09-03 中国科学院声学研究所 Single process contents server device and method based on IO event notification mechanism
CN101382916A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Method for managing embedded system memory
CN102045346A (en) * 2010-11-25 2011-05-04 深圳市科陆电子科技股份有限公司 TCP (Transmission Control Protocol) service channel realized by adopting Netty framework
CN103164256A (en) * 2011-12-08 2013-06-19 深圳市快播科技有限公司 Processing method and system capable of achieving one machine supporting high concurrency

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559447A (en) * 2015-09-25 2017-04-05 中兴通讯股份有限公司 The method for processing business and system of JSLEE containers
CN105391968A (en) * 2015-11-03 2016-03-09 浙江大华技术股份有限公司 Video session allocation method and device
CN105391968B (en) * 2015-11-03 2019-05-24 浙江大华技术股份有限公司 A kind of video session distribution method and device
CN105930216A (en) * 2016-04-15 2016-09-07 平安科技(深圳)有限公司 Automatic scheduling method and system for electronic signature system and server
WO2017181853A1 (en) * 2016-04-20 2017-10-26 阿里巴巴集团控股有限公司 Method, device, and system for dynamically allocating memory
CN107656777A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN107656824A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 The processing method and relevant apparatus and server of a kind of operation flow
CN107657420A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN107656801A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN107656819A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 The processing method and related system of a kind of operation flow
CN107659548A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and device and client based on event
CN107656820A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 The processing method and relevant apparatus and server of a kind of operation flow
CN107656781A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN107656782A (en) * 2016-07-25 2018-02-02 武汉票据交易中心有限公司 A kind of flow path processing method and system based on event
CN108243222A (en) * 2016-12-26 2018-07-03 航天信息股份有限公司 Server network architecture method and device
CN109995841A (en) * 2018-01-02 2019-07-09 航天信息股份有限公司 Grain supervisory systems
CN109995841B (en) * 2018-01-02 2022-05-27 航天信息股份有限公司 Grain supervisory system
CN111190727A (en) * 2019-11-19 2020-05-22 腾讯科技(深圳)有限公司 Asynchronous memory destructuring method and device, computer equipment and storage medium
CN111190727B (en) * 2019-11-19 2023-06-09 腾讯科技(深圳)有限公司 Asynchronous memory destructor method and device, computer equipment and storage medium
CN112015559A (en) * 2020-09-03 2020-12-01 深圳虹川科技有限公司 Asynchronous real-time data updating system and method based on http protocol
CN112732833A (en) * 2021-01-08 2021-04-30 西安交通大学 Universal data bridge architecture for acquiring block chain information and design method

Similar Documents

Publication Publication Date Title
CN104793999A (en) Servo server framework system
CN109361517B (en) Virtualized cloud password machine system based on cloud computing and implementation method thereof
CN112667414A (en) Message queue-based message consumption method and device, computer equipment and medium
CN106506620A (en) A kind of cloud desktop intelligent terminal's management system
CN110958218A (en) Data transmission method based on multi-network communication and related equipment
CN112035258A (en) Data processing method, device, electronic equipment and medium
EP2717533A1 (en) Method, network card and hard disk card for accessing to shut-down hard disk
CN102571773A (en) Information security comprehensive audit system and method
CN101853416A (en) Physical smart card with virtual smart cards and configuration method of virtual smart card
CN102103651B (en) Method and system for realizing all-purpose card system and smart card
CN104951688B (en) Suitable for the exclusive data encryption method and encrypted card under Xen virtualized environment
CN105681281A (en) Password device based on embedded operating system
CN108183918A (en) A kind of AAA high concurrents authentication method and system
WO2024002105A1 (en) Data asset usage control method, client and intermediate service platform
CN112163241A (en) Notarization archive information processing method, system, platform, equipment and storage medium
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN109543459A (en) A kind of data deposit card method and apparatus
CN104915302B (en) Data transmission processing method and data link
CN116069493A (en) Data processing method, device, equipment and readable storage medium
JP2002169782A (en) Portable information storage medium, user use control system, user use control method and user use control program
CN115086311B (en) Management system of enterprise cross-system service based on cloud service bus
CN105812327B (en) Composite type multipurpose communication method and system
CN103092932A (en) Distributed document transcoding system
CN103425936B (en) A kind of method realizing data confidentiality and electronic equipment
CN115567594A (en) Microservice request processing method, microservice request processing device, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150722