CN105912455A - Business execution method and server - Google Patents
Business execution method and server Download PDFInfo
- Publication number
- CN105912455A CN105912455A CN201610272164.9A CN201610272164A CN105912455A CN 105912455 A CN105912455 A CN 105912455A CN 201610272164 A CN201610272164 A CN 201610272164A CN 105912455 A CN105912455 A CN 105912455A
- Authority
- CN
- China
- Prior art keywords
- business
- daily record
- server
- thread
- performs
- 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
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- 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/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/48—Indexing scheme relating to G06F9/48
- G06F2209/483—Multiproc
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a business execution method. The business execution method comprises the following steps: when a business server receives a business request, executing a primary business corresponding to the business request through a preset main thread, and sequentially judging when a log note for executing a secondary business exists in an execution step corresponding to each business layer or not; if the log note exists, transmitting related information of the log note to a branch thread task pool which is preset by the business server and asynchronous with the main thread; when the main thread executes the secondary business, controlling the branch thread task pool to encapsulate the received related information of the log note into data in a preset format, and storing the data in the preset format into a preset storage database. The invention furthermore discloses a server. According to the business execution method and the server, the coupling between the primary business and the secondary business is reduced, and the performance and expansibility of the server for executing businesses are improved.
Description
Technical field
The present invention relates to server technology field, particularly relate to a kind of business and perform method and server.
Background technology
Generally at application program (Application, APP), WAP (Wireless Application
Protocol, WAP) or time website (Website, WEB) etc. performs the most important business operation,
The business of execution is divided into main business and auxiliary business by server, each industry during needing to perform main business
The business datum change of business link carries out log recording, carries out log recording and is the execution of auxiliary business, with
It is easy to business datum after the daily record according to record carries out trajectory track or operation system collapse can recover.To answer
As a example by uploading this business of operation with Android installation kit in store system (Android Package, APK),
Operation personnel is when uploading redaction APK applied to server, and server needs to perform APK letter
The main business such as breath resolves, application redaction data creation, application master meter information amendment, and in main business
Perform start with at the end of need to perform auxiliary business the change of business datum carried out record, i.e. carry out daily record
Record.Pass through recorded daily record, not only can know the change of business datum when APK uploads clearly,
And the operation system once performing business is collapsed suddenly, can according to these daily records carry out data recover with
Cleaning.
At present, during server performs main business and auxiliary business, by main business and auxiliary mix of traffic
Same thread performs, main business will be blended on same thread execution with log recording.This
Plant way, on the one hand cause main business to couple with the height of auxiliary business, be unfavorable for the business that server is corresponding
System carries out later stage expansion;Still further aspect needs to come into contacts with data base due to log, thus prolongs
Grow the duration of Business Processing, server has been lost and has performed the performance of business.
Summary of the invention
A kind of business of offer is provided and performs method and server, it is intended to reduce main business
Coupling between business and auxiliary business, improves server and performs performance and the expansibility of business.
For achieving the above object, the invention provides a kind of server, described server includes business service
Device, described service server includes:
Judge module, for when receiving service request, performs described business by preset main thread
The main business that request is corresponding, judges whether there is the auxiliary industry of execution in the execution step that each operation layer is corresponding successively
The daily record of business is explained;
, if there is the daily record note performing auxiliary business in the execution step that each operation layer is corresponding in delivery module
Solve, then the relevant information that described daily record is explained is sent to described service server preset with described main line
The thread task pool that journey is asynchronous;
Control module, while performing described main business at described main thread, controls described thread
The relevant information that the task pool described daily record to receiving is explained is encapsulated as the data of preset format, by described
The data of preset format store to preset storage data base.
Alternatively, described server also includes that log server, described log server include:
Logging modle, has the data of described preset format for storage in detecting described storage data base
Time, start corresponding mission thread and the data of described preset format write in preset log database,
So that the daily record that described daily record note is corresponding is carried out record.
Alternatively, described each operation layer includes key-course, operation layer and mathematical logic layer, described judgement mould
Block is additionally operable to, and first judges whether there is the daily record performing auxiliary business in the execution step that described key-course is corresponding
Explain, when operation layer described in described key-course intrinsic call, then judge the execution that described operation layer is corresponding
Whether step exists the daily record note performing auxiliary business;Then at number described in described operation layer intrinsic call
During according to logical layer, it is judged that whether the execution step that described mathematical logic layer is corresponding exists and performs auxiliary business
Daily record is explained.
Alternatively, described relevant information includes parameter information and SQL masterplate, described default
Form includes that SQL Sentence format, described control module are additionally operable to, and controls described thread
Described parameter information, according to the described SQL masterplate received, is encapsulated as structure by task pool
Change the data of query language statement form.
Alternatively, described daily record is explained to be included in before current procedures performs and is inserted a daily record, in current step
Rapid perform to terminate after insert a daily record, before current procedures performs with perform after each one daily record of insertion,
Insert a daily record when current procedures performs occur abnormal and perform when current procedures needs to return result
A daily record is inserted after end.
Additionally, for achieving the above object, present invention also offers a kind of business and perform method, described business
Execution method is applied to server, and described server includes that service server, described business include main business
With auxiliary business, described business performs method and comprises the following steps:
Described service server, when receiving service request, performs described business by preset main thread
The main business that request is corresponding, judges whether there is the auxiliary industry of execution in the execution step that each operation layer is corresponding successively
The daily record of business is explained;
If exist, then the relevant information that described daily record is explained is sent to described service server preset with
The thread task pool that described main thread is asynchronous;
While described main thread performs described main business, control described thread task pool to receiving
The relevant information explained of described daily record be encapsulated as the data of preset format, by the data of described preset format
Store to preset storage data base.
Alternatively, described server also includes log server, a thread task pool pair described in described control
The relevant information that the described daily record received is explained is encapsulated as the data of preset format, by described preset format
Data store to preset storage data base after include:
The storage in detecting described storage data base of described log server has the data of described preset format
Time, start corresponding mission thread and the data of described preset format write in preset log database,
So that the daily record that described daily record note is corresponding is carried out record.
Alternatively, described each operation layer includes key-course, operation layer and mathematical logic layer, described sentences successively
Whether the executions step that disconnected each operation layer is corresponding exists and performs the daily record note of auxiliary business and include:
First judge whether the execution step that described key-course is corresponding exists the daily record note performing auxiliary business,
When operation layer described in described key-course intrinsic call, then judge in the execution step that described operation layer is corresponding
Existence performs the daily record of auxiliary business and explains;Then at mathematical logic described in described operation layer intrinsic call
During layer, it is judged that whether the execution step that described mathematical logic layer is corresponding exists the daily record note performing auxiliary business
Solve.
Alternatively, described relevant information includes parameter information and SQL masterplate, described default
Form includes SQL Sentence format, and thread task pool described in described control is to receiving
The relevant information that described daily record is explained is encapsulated as the data of preset format and includes:
Described in controlling, a thread task pool is according to the described SQL masterplate received, by described
Parameter information is encapsulated as the data of SQL Sentence format.
Alternatively, described daily record is explained to be included in before current procedures performs and is inserted a daily record, in current step
Rapid perform to terminate after insert a daily record, before current procedures performs with perform after each one daily record of insertion,
Insert a daily record when current procedures performs occur abnormal and perform when current procedures needs to return result
A daily record is inserted after end.
Embodiment of the present invention service server performs, by main thread, the main business that service request is corresponding, and works as
When the execution step that each operation layer is corresponding exists the daily record note performing auxiliary business, this daily record is explained
Relevant information is sent to a thread task pool.While main thread performs main business, control a thread and appoint
Business pond is encapsulated as the data of preset format and stores to storage data base the relevant information that daily record is explained, with
Obtain from storage data base in data write log database for log server.Such that it is able to by inciting somebody to action
Main business and auxiliary business perform respectively on main thread with a thread, and are respectively provided with service server and day
Corresponding data are stored by the data base of will server and correspondence thereof.Will be main relative in prior art
Business and auxiliary mix of traffic perform on same thread, reduce the coupling between main business and auxiliary business,
Improve server and perform performance and the expansibility of business.
Accompanying drawing explanation
Fig. 1 is the high-level schematic functional block diagram of server one embodiment of the present invention;
Fig. 2 is the structural representation that server of the present invention performs business;
Fig. 3 is the high-level schematic functional block diagram of another embodiment of server of the present invention;
Fig. 4 is the schematic flow sheet that business of the present invention performs method one embodiment;
Fig. 5 is the schematic flow sheet that business of the present invention performs another embodiment of method.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further
Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
As shown in Figure 1, it is shown that one server first embodiment of the present invention.The server of this embodiment
Including service server, described service server includes:
Judge module 10, for when receiving service request, performs described industry by preset main thread
The main business that business request is corresponding, judges whether there is execution in the execution step that each operation layer is corresponding auxiliary successively
The daily record of business is explained;
In the present embodiment, business performs method and is applied to server, and business includes main business and auxiliary business,
Main business is the core business of this business, and auxiliary business is the secondary business such as log.Alternatively, for
Reducing main business and the coupling of auxiliary business, main business is performed by main thread, and auxiliary business is held by a thread
OK, it does not interfere with each other between the two.Meanwhile, server is divided into service server, log server etc.,
And service server is correspondingly arranged Service Database, for storing the related data of core business;Daily record takes
Business device is correspondingly arranged log database, for storing the data that log is relevant.
Specifically, whether service server detecting receives the HTTP request (i.e. service request) of client,
This HTTP request refers to the request message from client to server end, including: in message first trip, right
The requesting method of resource, the identifier of resource and the agreement of use.When service server receives client
During the service request sent, service server performs, by preset main thread, the master that this service request is corresponding
Business, and each operation layers pair such as key-course, operation layer and mathematical logic layer are judged successively by judge module 10
Whether the execution step answered exists the daily record note performing auxiliary business, forms the note mode towards tangent plane.
It should be noted that daily record explains to be included in before current procedures performs inserts a daily record, currently
Step insert after performing to terminate daily record, before current procedures performs with perform after each one daily record of insertion,
Insert a daily record when current procedures performs occur abnormal and perform when current procedures needs to return result
A daily record is inserted after end.
A corresponding label is explained in each daily record, can being actually needed according to business, arrange what daily record was explained
Label carries out selected marker to the logic step of each operation layer.Such as, the label that daily record is explained includes
@LogBefore ,@LogAfter ,@LogAround ,@LogThrow and@LogReturn are different
The tag expression meaning explained of daily record different, label that same or different daily record is explained is stackable to be made
With.Wherein,
@LogBefore represents one daily record of insertion before current procedures performs;
@LogAfter represents one daily record of insertion after current procedures performs to terminate;
@LogAround represents before current procedures performs and rear one daily record of each insertion;
@LogThrow represents one daily record of insertion when current procedures performs occur abnormal;
If@LogReturn represents that current procedures needs to return result, then can insert a day after performing to terminate
Will.
, if there is the daily record performing auxiliary business in the execution step that each operation layer is corresponding in delivery module 20
Explain, then the relevant information that described daily record is explained is sent to described service server preset with described master
The thread task pool that thread is asynchronous;
Whether exist in judging the execution step that each operation layer is corresponding perform auxiliary business daily record explain after,
If the execution step that each operation layer is corresponding does not exist the daily record note performing auxiliary business, then explanation business clothes
Business device need not perform auxiliary business by a thread, i.e. need not perform follow-up correlation step.If each industry
There is the daily record note performing auxiliary business in the execution step that business layer is corresponding, then service server calls transmission
The relevant information that daily record is explained is sent to preset the thread task pool asynchronous with main thread by module 20.
The relevant information that daily record is explained includes explaining configuration, parameter information, SQL (Structured Query
Language, SQL) information such as template, Cache caching.
Control module 30, while performing described main business at described main thread, controls described branch line
The relevant information that the described daily record to receiving of the journey task pool is explained is encapsulated as the data of preset format, by institute
The data stating preset format store to preset storage data base.
After the relevant information that daily record is explained is sent to a thread task pool by service server, hold at main thread
Row main business, and control module 30 controls a thread and performs auxiliary business, synchronizes between the two to carry out,
And do not interfere with each other.Control module 30 control task pond is receiving note configuration, parameter information, SQL mould
After the information such as plate, Cache caching, the relevant information encapsulation explained according to the reflex mechanism daily record to receiving
Data for preset format, it is achieved corresponding daily record is explained in daily record and assembles.The number of this preset format
According to including the data of SQL statement form, it is relevant that reflex mechanism may be defined as that dynamic extraction daily record explains
Information carries out writing daily record.Then the data of preset format are stored to preset storage data by control module 30
In storehouse, this storage data base can be Redis storage queue.So that main thread is absorbed at core business
Reason, lossless core business, asynchronous thread then processes daily record data, can largely reduce at business
Reason is time-consuming, promotes server to service process performance.It should be noted that storage data base (i.e. Redis
Storage queue) may be disposed in service server, it is possible to it is separately provided storage server to storing number
According to storehouse, for storing the data of preset format.
Below it is illustrated, as in figure 2 it is shown, server includes service server and log server,
Service server is correspondingly arranged main business data base, and log server is correspondingly arranged daily record storage data base,
Storage data base (i.e. Redis storage queue) is separately provided.Specifically, business clothes are arrived at when service request
During business device, initially enter is key-course, main thread perform corresponding step, in the mistake performing step
Journey judging, whether there is daily record in the step of correspondence explains;If existing, then by the daily record towards tangent plane
Note mode, obtains the relevant information that daily record is explained, and is appointed by the relevant information afferent limb thread that daily record is explained
Business pond.Inside key-course, relate to when calling of operation layer, perform operation layer correlation step process triggering
In, it is judged that whether the step that operation layer is corresponding exists daily record and explains, if existing, then by towards tangent plane
Daily record explain mode, obtain this daily record explain relevant information, by daily record explain relevant information incoming
Prop up thread task pool.In like manner, when operation layer relates to when calling of mathematical logic layer, the place that daily record is explained
Reason method is identical with operation layer.Main thread performs the data of main business operation generation and will be stored in main business
In data base.Thread task pool is after receiving the relevant information that daily record is explained, according to reflex mechanism,
The data of the encapsulation formation SQL statement form of daily record SQL statement form are carried out according to relevant information, and will
The data of SQL statement form push in storage data base, and this thread task pool is equivalent to class Producer.
The thread task pool of log server monitors in storage data base whether there is data, thread task pool in real time
Be equivalent to class consumer.When there are data in storage data base, then thread task pool starts corresponding number
The data of the SQL statement form in storage data base are taken out, are performed log write by branch's thread of amount
Enter the operation of daily record storage data base.
Service server carries out the prison of daily record note when main thread performs main business to three major businesses level
Control, it is achieved the decoupling that main business performs with auxiliary business, daily record explains the encapsulation of corresponding log information by branch line
Journey task pool processes;Log information after packaged is with in Producer pattern incoming storage data base.Daily record
Record server uninterruptedly extracts flowing water log information from storage data base with consumer's pattern, and write is solely
In vertical daily record storage data base.Thus decouple main business and auxiliary business using towards tangent plane note mode
On the basis of execution, main business data base separates with daily record storage database realizing, can accelerate main business
Processing speed;And the execution of main business, the encapsulation of log information, log server read-write daily record three be
Synchronize to perform, it is achieved shorten the time-consuming of execution business, accelerate the overall execution efficiency of business function.
Embodiment of the present invention service server performs, by main thread, the main business that service request is corresponding, and works as
When the execution step that each operation layer is corresponding exists the daily record note performing auxiliary business, this daily record is explained
Relevant information is sent to a thread task pool.While main thread performs main business, control a thread and appoint
Business pond is encapsulated as the data of preset format and stores to storage data base the relevant information that daily record is explained, with
Obtain from storage data base in data write log database for log server.Such that it is able to by inciting somebody to action
Main business and auxiliary business perform respectively on main thread with a thread, and are respectively provided with service server and day
Corresponding data are stored by the data base of will server and correspondence thereof.Will be main relative in prior art
Business and auxiliary mix of traffic perform on same thread, reduce the coupling between main business and auxiliary business,
Improve server and perform performance and the expansibility of business, reach to promote the purpose of Consumer's Experience.
Further, as it is shown on figure 3, based on above-mentioned server first embodiment, it is proposed that the present invention takes
Business device the second embodiment, the second embodiment is with the difference of first embodiment, in this second embodiment on
State server and also include that log server, described log server include:
Logging modle 40, has the number of described preset format for storage in detecting described storage data base
According to time, start corresponding mission thread and the data of described preset format write in preset log database,
So that the daily record that described daily record note is corresponding is carried out record.
In the present embodiment, above-mentioned server also includes log server, and log server detecting real-time stores
Data in data base's (i.e. Redis storage queue).At above-mentioned service server by the data of preset format
After storing to preset storage data base, log server storage in detecting storage data base has pre-
If during the data of form, logging modle 40 starts the mission thread of corresponding quantity by execution by these default lattice
The data of formula write in preset log database, so that the daily record that daily record note is corresponding is carried out record, day
In will storage data base, an embodiment of the specification of log can be as shown in table 1, it is to be understood that
In table 1, the specification of log can also be configured according to actual needs, does not limit the present invention.
It should be noted that the branch's number of threads in the mission thread pond of log server is limited,
In mission thread pond, the max-thresholds of mission thread quantity can be arranged as the case may be and flexibly, and daily record takes
Business device can only start to branch's thread of the quantity of max-thresholds.During starting branch's thread, with
The minimizing of data in storage data base, corresponding branch thread also can be recovered.Such as, when default lattice
When the data of formula are the data of SQL statement form, logging modle 40 stores in detecting storage data base to be had
During the data of one SQL statement form, start branch's thread by the SQL statement lattice in storage data base
The data of formula are taken out, and store data in daily record storage data base.
The specification of log in table 1. daily record storage data base
During existing server execution business, owing to being to couple main business with auxiliary business to be staggered in
Together, performing in a serial fashion, therefore, the time that the execution of auxiliary business is consumed adds whole virtually
The handling duration of body business, has been lost server correspondence and has performed the performance of system.Such as, business has performed
Finishing the time-consuming T0 of needs is 5 seconds, and wherein, it is 3.3 seconds that main business performs time-consuming T1, and auxiliary business performs consumption
Time T2 be 1.7 seconds.
And in the present embodiment, decouple, towards tangent plane note mode, the base that main business performs with auxiliary business using
On plinth, main business and auxiliary business asynchronous execution, it is achieved shorten even to eliminate performing the time-consuming of auxiliary business,
Accelerate the overall execution efficiency of business function.Such as, it is 3.3 seconds that main business performs time-consuming T1, auxiliary business
Performing time-consuming T2 is 1.7 seconds, does not interfere with each other between the two.
The present embodiment extracts the data in storage data base by log server, starts corresponding task line
Journey writes the data in log database, so that the daily record that daily record note is corresponding is carried out record.Reduce
Coupling between main business and auxiliary business so that main thread is absorbed in execution main business, a thread is then held
The auxiliary business of row, decreases the time-consuming of overall Business Processing, promotes server to service process performance.
Further, based on above-mentioned server first embodiment, it is proposed that server the 3rd of the present invention is implemented
Example, the 3rd embodiment is with the difference of first embodiment, above-mentioned judge module 10 in the 3rd embodiment
It is additionally operable to, first judges whether the execution step that described key-course is corresponding exists the daily record note performing auxiliary business
Solve, when operation layer described in described key-course intrinsic call, then judge described operation layer corresponding perform step
The daily record note performing auxiliary business whether is there is in Zhou;Then in data described in described operation layer intrinsic call
During logical layer, it is judged that whether the execution step that described mathematical logic layer is corresponding exists the day performing auxiliary business
Will is explained.
In the present embodiment, each operation layer includes key-course, operation layer and mathematical logic layer, at judge module
10 judge whether to exist in the execution step that each operation layer is corresponding the process of the daily record note performing auxiliary business
In, when service request reaches service server, initially enter key-course (i.e. Controller layer), and
Call preset monitoring programme judges whether have daily record to explain in corresponding step.If existing, then pass through face
To tangent plane daily record explain mode, obtain daily record explain relevant information, by note configuration, parameter information,
Incoming the thread task asynchronous with main thread of relevant information that the daily records such as SQL template, Cache caching are explained
Pond.Inside Controller layer, relate to operation layer (i.e. Service layer) when calling, trigger Service
Before and after layer step performs, monitoring programme can judge that whether there is daily record in the step that Service layer is corresponding explains,
If existing, then explain mode by the daily record towards tangent plane, obtain the relevant information that daily record is explained, will note
Solve the relevant information afferent limb thread that the daily records such as configuration, parameter information, SQL template, Cache caching are explained
Task pool.In like manner, when calling of mathematical logic layer (i.e. Dao layer) is related to when Service layer, it is judged that Dao
Whether the step that layer is corresponding exists daily record explain, if existing, then by the daily record note side towards tangent plane
Formula, obtains the relevant information that daily record is explained, by note configuration, parameter information, SQL template, Cache
The relevant information afferent limb thread task pool that the daily records such as caching are explained.Such as, in the step of Controller layer
During execution, when there is@LogBefore and explaining, before current procedures performs, insert a daily record.
During the step of Service layer performs, when there is@LogThrow and explaining, hold at current procedures
A daily record is inserted when row occurs abnormal.During the step of Dao layer performs, work as existence
When@LogAround explains, with rear one daily record of each insertion before current procedures performs.
The present embodiment in the execution step that each operation layers such as key-course, operation layer and mathematical logic layer are corresponding,
Judge whether the execution step that each operation layer is corresponding exists the daily record note performing auxiliary business, with by daily record
The relevant information explained is sent to a thread task pool, it is achieved that explain mode by the daily record towards tangent plane
Decoupling main business performs with auxiliary business, improves service server and performs the convenience of business.
Further, based on above-mentioned server first embodiment, it is proposed that server the 4th of the present invention is implemented
Example, the 4th embodiment is with the difference of first embodiment, above-mentioned control module 30 in the 4th embodiment
Being additionally operable to, described parameter, according to the described SQL masterplate received, is believed by described thread task pool of control
Breath is encapsulated as the data of SQL statement form.
In the present embodiment, daily record explain relevant information include explain configuration, parameter information, SQL template,
The information such as Cache caching, the data of preset format include the data of SQL statement form.Service server
While being performed main business by main thread, control a thread and perform auxiliary business.Specifically, control module
30 control a thread task pool receives note configuration, parameter information, SQL template, Cache caching etc.
After information, corresponding daily record note can be obtained according to the configuration of explaining received, explain according to daily record and perform
Corresponding operation.And according to the SQL masterplate received, parameter information is encapsulated as SQL statement form
Data.Then by incoming for the data of SQL statement form storage data base.
Relevant parameter information is encapsulated as SQL language by a thread task pool according to SQL masterplate by the present embodiment
The data of sentence form so that main thread performs main business and performs secondary task with a thread is asynchronous carrying out,
It does not interfere with each other, can largely reduce Business Processing time-consuming, promote the server performance to Business Processing.
Accordingly, as shown in Figure 4, propose one business of the present invention and perform method first embodiment.This is real
The business execution method executing example includes:
Step S10, described service server, when receiving service request, are performed by preset main thread
The main business that described service request is corresponding, judges whether exist in the execution step that each operation layer is corresponding successively
The daily record performing auxiliary business is explained;
In the present embodiment, business performs method and is applied to server, and business includes main business and auxiliary business,
Main business is the core business of this business, and auxiliary business is the secondary business such as log.Alternatively, for
Reducing main business and the coupling of auxiliary business, main business is performed by main thread, and auxiliary business is held by a thread
OK, it does not interfere with each other between the two.Meanwhile, server is divided into service server, log server etc.,
And service server is correspondingly arranged Service Database, for storing the related data of core business;Daily record takes
Business device is correspondingly arranged log database, for storing the data that log is relevant.
Specifically, whether service server detecting receives the HTTP request (i.e. service request) of client,
This HTTP request refers to the request message from client to server end, including: in message first trip, right
The requesting method of resource, the identifier of resource and the agreement of use.When service server receives client
During the service request sent, service server performs, by preset main thread, the master that this service request is corresponding
Business, and judge the execution step that each operation layers such as key-course, operation layer and mathematical logic layer are corresponding successively
In whether exist and perform the daily record of auxiliary business and explain, formed towards the note mode of tangent plane.
It should be noted that daily record explains to be included in before current procedures performs inserts a daily record, currently
Step insert after performing to terminate daily record, before current procedures performs with perform after each one daily record of insertion,
Insert a daily record when current procedures performs occur abnormal and perform when current procedures needs to return result
A daily record is inserted after end.
A corresponding label is explained in each daily record, can being actually needed according to business, arrange what daily record was explained
Label carries out selected marker to the logic step of each operation layer.Such as, the label that daily record is explained includes
@LogBefore ,@LogAfter ,@LogAround ,@LogThrow and@LogReturn are different
The tag expression meaning explained of daily record different, label that same or different daily record is explained is stackable to be made
With.Wherein,
@LogBefore represents one daily record of insertion before current procedures performs;
@LogAfter represents one daily record of insertion after current procedures performs to terminate;
@LogAround represents before current procedures performs and rear one daily record of each insertion;
@LogThrow represents one daily record of insertion when current procedures performs occur abnormal;
If@LogReturn represents that current procedures needs to return result, then can insert a day after performing to terminate
Will.
If step S20 exists, then the relevant information that described daily record is explained is sent to described service server
Preset the thread task pool asynchronous with described main thread;
Whether exist in judging the execution step that each operation layer is corresponding perform auxiliary business daily record explain after,
If the execution step that each operation layer is corresponding does not exist the daily record note performing auxiliary business, then explanation business clothes
Business device need not perform auxiliary business by a thread, i.e. need not perform follow-up correlation step.If each industry
There is the daily record note performing auxiliary business in the execution step that business layer is corresponding, then daily record is noted by service server
The relevant information solved is sent to preset the thread task pool asynchronous with main thread.It is relevant that daily record is explained
Information includes explaining the information such as configuration, parameter information, SQL template, Cache caching.
Step S30, perform while described main business at described main thread, control described thread task pool
The relevant information explaining the described daily record received is encapsulated as the data of preset format, by described default lattice
The data of formula store to preset storage data base.
After the relevant information that daily record is explained is sent to a thread task pool by service server, hold at main thread
Row main business, and performed auxiliary business by a thread, synchronize between the two to carry out, and do not interfere with each other.
Task pool after receiving the note information such as configuration, parameter information, SQL template, Cache caching, according to
The relevant information that the reflex mechanism daily record to receiving is explained is encapsulated as the data of preset format, it is achieved to day
Will is explained corresponding daily record and is assembled.The data of this preset format can include the data of SQL statement form,
Reflex mechanism may be defined as the relevant information of dynamic extraction daily record note to carry out writing daily record.Then business service
The data of preset format are stored to preset storage data base by device, and this storage data base can be Redis
Storage queue.Process so that main thread is absorbed in core business, lossless core business, asynchronous branch line
Cheng Ze processes daily record data, can largely reduce Business Processing time-consuming, promote server to business at
Rationality energy.It should be noted that storage data base (i.e. Redis storage queue) may be disposed at business service
In device, it is possible to be separately provided storage server to storing data base, for storing the number of preset format
According to.
Below it is illustrated, as in figure 2 it is shown, server includes service server and log server,
Service server is correspondingly arranged main business data base, and log server is correspondingly arranged daily record storage data base,
Storage data base (i.e. Redis storage queue) is separately provided.Specifically, business clothes are arrived at when service request
During business device, initially enter is key-course, main thread perform corresponding step, in the mistake performing step
Journey judging, whether there is daily record in the step of correspondence explains;If existing, then by the daily record towards tangent plane
Note mode, obtains the relevant information that daily record is explained, and is appointed by the relevant information afferent limb thread that daily record is explained
Business pond.Inside key-course, relate to when calling of operation layer, perform operation layer correlation step process triggering
In, it is judged that whether the step that operation layer is corresponding exists daily record and explains, if existing, then by towards tangent plane
Daily record explain mode, obtain this daily record explain relevant information, by daily record explain relevant information incoming
Prop up thread task pool.In like manner, when operation layer relates to when calling of mathematical logic layer, the place that daily record is explained
Reason method is identical with operation layer.Main thread performs the data of main business operation generation and will be stored in main business
In data base.Thread task pool is after receiving the relevant information that daily record is explained, according to reflex mechanism,
The data of the encapsulation formation SQL statement form of daily record SQL statement form are carried out according to relevant information, and will
The data of SQL statement form push in storage data base, and this thread task pool is equivalent to class Producer.
The thread task pool of log server monitors in storage data base whether there is data, thread task pool in real time
Be equivalent to class consumer.When there are data in storage data base, then thread task pool starts corresponding number
The data of the SQL statement form in storage data base are taken out, are performed log write by branch's thread of amount
Enter the operation of daily record storage data base.
Service server carries out the prison of daily record note when main thread performs main business to three major businesses level
Control, it is achieved the decoupling that main business performs with auxiliary business, daily record explains the encapsulation of corresponding log information by branch line
Journey task pool processes;Log information after packaged is with in Producer pattern incoming storage data base.Daily record
Record server uninterruptedly extracts flowing water log information from storage data base with consumer's pattern, and write is solely
In vertical daily record storage data base.Thus decouple main business and auxiliary business using towards tangent plane note mode
On the basis of execution, main business data base separates with daily record storage database realizing, can accelerate main business
Processing speed;And the execution of main business, the encapsulation of log information, log server read-write daily record three be
Synchronize to perform, it is achieved shorten the time-consuming of execution business, accelerate the overall execution efficiency of business function.
Embodiment of the present invention service server performs, by main thread, the main business that service request is corresponding, and works as
When the execution step that each operation layer is corresponding exists the daily record note performing auxiliary business, this daily record is explained
Relevant information is sent to a thread task pool.While main thread performs main business, control a thread and appoint
Business pond is encapsulated as the data of preset format and stores to storage data base the relevant information that daily record is explained, with
Obtain from storage data base in data write log database for log server.Such that it is able to by inciting somebody to action
Main business and auxiliary business perform respectively on main thread with a thread, and are respectively provided with service server and day
Corresponding data are stored by the data base of will server and correspondence thereof.Will be main relative in prior art
Business and auxiliary mix of traffic perform on same thread, reduce the coupling between main business and auxiliary business,
Improve server and perform performance and the expansibility of business, reach to promote the purpose of Consumer's Experience.
Further, as it is shown in figure 5, perform method first embodiment based on above-mentioned business, it is proposed that this
Invention business performs method the second embodiment, and the second embodiment is with the difference of first embodiment, and this is the years old
Two embodiments include after above-mentioned steps S30: described log server is detecting described storage data
When storage has the data of described preset format in storehouse, start corresponding mission thread by described preset format
In the log database that data write is preset, so that the daily record that described daily record note is corresponding is carried out record.
In the present embodiment, above-mentioned server also includes log server, and log server detecting real-time stores
Data in data base's (i.e. Redis storage queue).At above-mentioned service server by the data of preset format
After storing to preset storage data base, log server storage in detecting storage data base has pre-
If during the data of form, the data of this preset format are write by the mission thread starting corresponding quantity by performing
Enter in preset log database, the daily record that daily record note is corresponding to be carried out record, daily record storage data
In storehouse, an embodiment of the specification of log can be as shown in Table 1 above, it is to be understood that above-mentioned table 1
The specification of middle log can also be configured according to actual needs, does not limit the present invention.
It should be noted that the branch's number of threads in the mission thread pond of log server is limited,
In mission thread pond, the max-thresholds of mission thread quantity can be arranged as the case may be and flexibly, and daily record takes
Business device can only start to branch's thread of the quantity of max-thresholds.During starting branch's thread, with
The minimizing of data in storage data base, corresponding branch thread also can be recovered.Such as, when default lattice
When the data of formula are the data of SQL statement form, log server stores in detecting storage data base to be had
During the data of one SQL statement form, start branch's thread by the SQL statement lattice in storage data base
The data of formula are taken out, and store data in daily record storage data base.
During existing server execution business, owing to being to couple main business with auxiliary business to be staggered in one
Rising, perform in a serial fashion, therefore, the time that the execution of auxiliary business is consumed adds entirety virtually
The handling duration of business, has been lost server correspondence and has performed the performance of system.Such as, business is finished
Needing time-consuming T0 is 5 seconds, and wherein, it is 3.3 seconds that main business performs time-consuming T1, and auxiliary business performs time-consuming
T2 is 1.7 seconds.
And in the present embodiment, decouple, towards tangent plane note mode, the base that main business performs with auxiliary business using
On plinth, main business and auxiliary business asynchronous execution, it is achieved shorten even to eliminate performing the time-consuming of auxiliary business,
Accelerate the overall execution efficiency of business function.Such as, it is 3.3 seconds that main business performs time-consuming T1, auxiliary business
Performing time-consuming T2 is 1.7 seconds, does not interfere with each other between the two.
The present embodiment extracts the data in storage data base by log server, starts corresponding task line
Journey writes the data in log database, so that the daily record that daily record note is corresponding is carried out record.Reduce
Coupling between main business and auxiliary business so that main thread is absorbed in execution main business, a thread is then held
The auxiliary business of row, decreases the time-consuming of overall Business Processing, promotes server to service process performance.
Further, method first embodiment is performed based on above-mentioned business, it is proposed that business of the present invention performs
Method the 3rd embodiment, the 3rd embodiment is with the difference of first embodiment, in the 3rd embodiment on
State to judge successively whether the execution step that each operation layer is corresponding exists and perform the step that the daily record of auxiliary business is explained
Suddenly include: first judge whether the execution step that described key-course is corresponding exists the daily record note performing auxiliary business
Solve, when operation layer described in described key-course intrinsic call, then judge described operation layer corresponding perform step
The daily record note performing auxiliary business whether is there is in Zhou;Then in data described in described operation layer intrinsic call
During logical layer, it is judged that whether the execution step that described mathematical logic layer is corresponding exists the day performing auxiliary business
Will is explained.
In the present embodiment, each operation layer includes key-course, operation layer and mathematical logic layer, in business service
Device judges whether to exist in the execution step that each operation layer is corresponding the process of the daily record note performing auxiliary business
In, when service request reaches service server, initially enter key-course (i.e. Controller layer), and
Call preset monitoring programme judges whether have daily record to explain in corresponding step.If existing, then pass through face
To tangent plane daily record explain mode, obtain daily record explain relevant information, by note configuration, parameter information,
Incoming the thread task asynchronous with main thread of relevant information that the daily records such as SQL template, Cache caching are explained
Pond.Inside Controller layer, relate to operation layer (i.e. Service layer) when calling, trigger Service
Before and after layer step performs, monitoring programme can judge that whether there is daily record in the step that Service layer is corresponding explains,
If existing, then explain mode by the daily record towards tangent plane, obtain the relevant information that daily record is explained, will note
Solve the relevant information afferent limb thread that the daily records such as configuration, parameter information, SQL template, Cache caching are explained
Task pool.In like manner, when calling of mathematical logic layer (i.e. Dao layer) is related to when Service layer, it is judged that Dao
Whether the step that layer is corresponding exists daily record explain, if existing, then by the daily record note side towards tangent plane
Formula, obtains the relevant information that daily record is explained, by note configuration, parameter information, SQL template, Cache
The relevant information afferent limb thread task pool that the daily records such as caching are explained.Such as, in the step of Controller layer
During execution, when there is@LogBefore and explaining, before current procedures performs, insert a daily record.
During the step of Service layer performs, when there is@LogThrow and explaining, hold at current procedures
A daily record is inserted when row occurs abnormal.During the step of Dao layer performs, work as existence
When@LogAround explains, with rear one daily record of each insertion before current procedures performs.
The present embodiment in the execution step that each operation layers such as key-course, operation layer and mathematical logic layer are corresponding,
Judge whether the execution step that each operation layer is corresponding exists the daily record note performing auxiliary business, with by daily record
The relevant information explained is sent to a thread task pool, it is achieved that explain mode by the daily record towards tangent plane
Decoupling main business performs with auxiliary business, improves service server and performs the convenience of business.
Further, method first embodiment is performed based on above-mentioned business, it is proposed that business of the present invention performs
Method the 4th embodiment, the 4th embodiment is with the difference of first embodiment, above-mentioned control in this embodiment
The relevant information that described the thread task pool described daily record to receiving of system is explained is encapsulated as preset format
The step of data includes: described in controlling, a thread task pool is according to the described SQL masterplate received, by institute
State parameter information and be encapsulated as the data of SQL statement form.
In the present embodiment, daily record explain relevant information include explain configuration, parameter information, SQL template,
The information such as Cache caching, the data of preset format include the data of SQL statement form.Service server
While being performed main business by main thread, control a thread and perform auxiliary business.Specifically, prop up thread to appoint
After business pond receives the information such as note configuration, parameter information, SQL template, Cache caching, can be according to connecing
The configuration of explaining received obtains corresponding daily record note, explains according to daily record and performs corresponding operation.And
According to the SQL masterplate received, parameter information is encapsulated as the data of SQL statement form.Then will
The data incoming storage data base of SQL statement form.
Relevant parameter information is encapsulated as SQL language by a thread task pool according to SQL masterplate by the present embodiment
The data of sentence form so that main thread performs main business and performs secondary task with a thread is asynchronous carrying out,
It does not interfere with each other, can largely reduce Business Processing time-consuming, promote the server performance to Business Processing.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-mentioned
Embodiment method can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical
Cross hardware, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the present invention's
The part that prior art is contributed by technical scheme the most in other words can be with the form body of software product
Revealing to come, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, light
Dish) in, including some instructions with so that a station terminal equipment (can be mobile phone, computer, service
Device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the alternative embodiment of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. a server, it is characterised in that described server includes service server, described business takes
Business device includes:
Judge module, for when receiving service request, performs described business by preset main thread
The main business that request is corresponding, judges whether there is the auxiliary industry of execution in the execution step that each operation layer is corresponding successively
The daily record of business is explained;
, if there is the daily record note performing auxiliary business in the execution step that each operation layer is corresponding in delivery module
Solve, then the relevant information that described daily record is explained is sent to described service server preset with described main line
The thread task pool that journey is asynchronous;
Control module, while performing described main business at described main thread, controls described thread
The relevant information that the task pool described daily record to receiving is explained is encapsulated as the data of preset format, by described
The data of preset format store to preset storage data base.
2. server as claimed in claim 1, it is characterised in that described server also includes that daily record takes
Business device, described log server includes:
Logging modle, has the data of described preset format for storage in detecting described storage data base
Time, start corresponding mission thread and the data of described preset format write in preset log database,
So that the daily record that described daily record note is corresponding is carried out record.
3. server as claimed in claim 1, it is characterised in that described each operation layer include key-course,
Operation layer and mathematical logic layer, described judge module is additionally operable to, and first judges the execution that described key-course is corresponding
Whether step exists the daily record note performing auxiliary business, at operation layer described in described key-course intrinsic call
Time, then judge whether the execution step that described operation layer is corresponding exists the daily record note performing auxiliary business;
Then when mathematical logic layer described in described operation layer intrinsic call, it is judged that described mathematical logic layer is corresponding
Perform whether step exists the daily record note performing auxiliary business.
4. server as claimed in claim 1, it is characterised in that described relevant information includes that parameter is believed
Breath and SQL masterplate, described preset format includes SQL Sentence format, institute
State control module to be additionally operable to, control described thread task pool according to the described structuralized query language received
Speech masterplate, is encapsulated as the data of SQL Sentence format by described parameter information.
5. the server as described in any one of claim 1-4, it is characterised in that bag is explained in described daily record
Include insert before current procedures performs daily record, one daily record of insertion after current procedures performs to terminate,
Before current procedures performs with perform after each insert a daily record, when current procedures performs occur abnormal slotting
A daily record is inserted after entering a daily record and performing when current procedures needs to return result to terminate.
6. a business performs method, it is characterised in that described business performs method and is applied to server,
Described server includes that service server, described business include main business and auxiliary business, and described business performs
Method comprises the following steps:
Described service server, when receiving service request, performs described business by preset main thread
The main business that request is corresponding, judges whether there is the auxiliary industry of execution in the execution step that each operation layer is corresponding successively
The daily record of business is explained;
If exist, then the relevant information that described daily record is explained is sent to described service server preset with
The thread task pool that described main thread is asynchronous;
While described main thread performs described main business, control described thread task pool to receiving
The relevant information explained of described daily record be encapsulated as the data of preset format, by the data of described preset format
Store to preset storage data base.
7. business as claimed in claim 6 performs method, it is characterised in that described server also includes
Log server, the relevant letter that a thread task pool described daily record to receiving described in described control is explained
Breath is encapsulated as the data of preset format, stores the data of described preset format to preset storage data base
Include after in:
The storage in detecting described storage data base of described log server has the data of described preset format
Time, start corresponding mission thread and the data of described preset format write in preset log database,
So that the daily record that described daily record note is corresponding is carried out record.
8. business as claimed in claim 6 performs method, it is characterised in that described each operation layer includes
Key-course, operation layer and mathematical logic layer, described judge successively the execution step that each operation layer is corresponding is
The no daily record that there is the auxiliary business of execution is explained and is included:
First judge whether the execution step that described key-course is corresponding exists the daily record note performing auxiliary business,
When operation layer described in described key-course intrinsic call, then judge in the execution step that described operation layer is corresponding
Existence performs the daily record of auxiliary business and explains;Then at mathematical logic described in described operation layer intrinsic call
During layer, it is judged that whether the execution step that described mathematical logic layer is corresponding exists the daily record note performing auxiliary business
Solve.
9. business as claimed in claim 6 performs method, it is characterised in that described relevant information includes
Parameter information and SQL masterplate, described preset format includes SQL statement lattice
Formula, the relevant information that a thread task pool described daily record to receiving described in described control is explained is encapsulated as
The data of preset format include:
Described in controlling, a thread task pool is according to the described SQL masterplate received, by described
Parameter information is encapsulated as the data of SQL Sentence format.
10. the business as described in any one of claim 6-9 performs method, it is characterised in that described day
Will is explained and is included in one daily record of insertion before current procedures performs, inserts one after current procedures performs to terminate
Bar daily record, before current procedures performs with perform after each one daily record of insertion, perform appearance at current procedures
A day is inserted after inserting a daily record time abnormal and performing when current procedures needs to return result to terminate
Will.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610272164.9A CN105912455B (en) | 2016-04-27 | 2016-04-27 | Business executes method and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610272164.9A CN105912455B (en) | 2016-04-27 | 2016-04-27 | Business executes method and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105912455A true CN105912455A (en) | 2016-08-31 |
CN105912455B CN105912455B (en) | 2018-11-02 |
Family
ID=56753037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610272164.9A Active CN105912455B (en) | 2016-04-27 | 2016-04-27 | Business executes method and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105912455B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106649744A (en) * | 2016-12-26 | 2017-05-10 | 金蝶软件(中国)有限公司 | Log recording method and apparatus |
CN106776803A (en) * | 2016-11-24 | 2017-05-31 | 北京锐安科技有限公司 | The update method and device of a kind of log recording |
CN107291493A (en) * | 2017-05-27 | 2017-10-24 | 北京思特奇信息技术股份有限公司 | The building method and system of a kind of Batch Processing processing framework |
CN107766101A (en) * | 2017-09-30 | 2018-03-06 | 五八有限公司 | App starts processing method, device and the equipment of event |
CN108011966A (en) * | 2017-12-14 | 2018-05-08 | 广东金赋科技股份有限公司 | The optimization method that a kind of self-aided terminal log compression uploads |
CN108460078A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Execution method, apparatus, storage medium and the terminal of miscellaneous function |
CN108628891A (en) * | 2017-03-21 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer |
CN109086034A (en) * | 2018-07-13 | 2018-12-25 | 山东恒云信息科技有限公司 | Injection, which is relied on, using AOP and Spring realizes the method for applying automatic duplicating of data |
CN109446175A (en) * | 2018-11-12 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the log object constructing key operation |
CN111241125A (en) * | 2020-01-08 | 2020-06-05 | 成都嗨学洛子教育科技有限公司 | Method and device for recording operation log, electronic equipment and storage medium |
CN113661484A (en) * | 2021-08-25 | 2021-11-16 | 商汤国际私人有限公司 | Log recording method and device, electronic equipment and computer readable storage medium |
CN114579212A (en) * | 2022-02-24 | 2022-06-03 | 北京航星永志科技有限公司 | System log recording method and device, electronic equipment and storage medium |
CN115794195A (en) * | 2023-02-08 | 2023-03-14 | 湖南三湘银行股份有限公司 | Banking business management and maintenance method and device based on Viper framework |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873276A (en) * | 2012-12-12 | 2014-06-18 | ***通信集团浙江有限公司 | Business processing method under J2EE framework and system thereof |
US20140282427A1 (en) * | 2013-03-13 | 2014-09-18 | Microsoft Corporation | Diagnostics of state transitions |
CN105119752A (en) * | 2015-09-08 | 2015-12-02 | 北京京东尚科信息技术有限公司 | Distributed log acquisition method, device and system |
-
2016
- 2016-04-27 CN CN201610272164.9A patent/CN105912455B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103873276A (en) * | 2012-12-12 | 2014-06-18 | ***通信集团浙江有限公司 | Business processing method under J2EE framework and system thereof |
US20140282427A1 (en) * | 2013-03-13 | 2014-09-18 | Microsoft Corporation | Diagnostics of state transitions |
CN105119752A (en) * | 2015-09-08 | 2015-12-02 | 北京京东尚科信息技术有限公司 | Distributed log acquisition method, device and system |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776803A (en) * | 2016-11-24 | 2017-05-31 | 北京锐安科技有限公司 | The update method and device of a kind of log recording |
CN106649744A (en) * | 2016-12-26 | 2017-05-10 | 金蝶软件(中国)有限公司 | Log recording method and apparatus |
CN106649744B (en) * | 2016-12-26 | 2019-11-05 | 金蝶软件(中国)有限公司 | Log recording method and device |
CN108628891A (en) * | 2017-03-21 | 2018-10-09 | 北京京东尚科信息技术有限公司 | Realize method, apparatus, electronic equipment and the readable storage medium storing program for executing of data buffer storage layer |
CN107291493A (en) * | 2017-05-27 | 2017-10-24 | 北京思特奇信息技术股份有限公司 | The building method and system of a kind of Batch Processing processing framework |
CN107766101A (en) * | 2017-09-30 | 2018-03-06 | 五八有限公司 | App starts processing method, device and the equipment of event |
CN108011966A (en) * | 2017-12-14 | 2018-05-08 | 广东金赋科技股份有限公司 | The optimization method that a kind of self-aided terminal log compression uploads |
CN108460078A (en) * | 2018-01-08 | 2018-08-28 | 平安科技(深圳)有限公司 | Execution method, apparatus, storage medium and the terminal of miscellaneous function |
CN108460078B (en) * | 2018-01-08 | 2020-10-13 | 平安科技(深圳)有限公司 | Auxiliary function execution method and device, storage medium and terminal |
CN109086034A (en) * | 2018-07-13 | 2018-12-25 | 山东恒云信息科技有限公司 | Injection, which is relied on, using AOP and Spring realizes the method for applying automatic duplicating of data |
CN109446175A (en) * | 2018-11-12 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the log object constructing key operation |
CN111241125A (en) * | 2020-01-08 | 2020-06-05 | 成都嗨学洛子教育科技有限公司 | Method and device for recording operation log, electronic equipment and storage medium |
CN113661484A (en) * | 2021-08-25 | 2021-11-16 | 商汤国际私人有限公司 | Log recording method and device, electronic equipment and computer readable storage medium |
CN114579212A (en) * | 2022-02-24 | 2022-06-03 | 北京航星永志科技有限公司 | System log recording method and device, electronic equipment and storage medium |
CN115794195A (en) * | 2023-02-08 | 2023-03-14 | 湖南三湘银行股份有限公司 | Banking business management and maintenance method and device based on Viper framework |
Also Published As
Publication number | Publication date |
---|---|
CN105912455B (en) | 2018-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105912455A (en) | Business execution method and server | |
CN108076098B (en) | Service processing method and system | |
CN103186466B (en) | Information interactive testing device and method based on association automatic generating test case | |
CN101707399B (en) | Method and system for acquiring electric energy information | |
CN107689982A (en) | Multi-data source method of data synchronization, application server and computer-readable recording medium | |
CN105893091A (en) | Method and system for upgrading software program of intelligent robot | |
CN107870948A (en) | Method for scheduling task and device | |
CN108134690B (en) | Network service deployment process control method, device and system | |
CN110063042B (en) | Database fault response method and terminal thereof | |
CN103064717A (en) | Device and method for parallel installation of software for cluster system | |
CN113840040B (en) | Man-machine cooperation outbound method, device, equipment and storage medium | |
CN111651526B (en) | Data synchronization method of redundant front-end processor, front-end processor and processing system | |
CN101930361A (en) | Method and system for providing online data storage service | |
CN114328217A (en) | Application testing method, device, equipment, medium and computer program product | |
CN115834654A (en) | Data efficient transmission method based on multiple mappings | |
CN108075911B (en) | Service testing method and device | |
CN106850724A (en) | Data push method and device | |
CN107134124A (en) | Bandwidth carrier communication module carrier chip meter reading interface is managed collectively control method | |
CN110932393B (en) | Substation information protection master station system and data initialization method thereof | |
CN111338767B (en) | PostgreSQL master-slave database automatic switching system and method | |
CN106254534A (en) | Distributed type assemblies monitoring agent based on mixed architecture and method | |
CN107291777A (en) | A kind of method and apparatus of hot spot data identification and processing | |
CN105956107B (en) | Data quality checking method based on IEC61968 message | |
CN100438420C (en) | Network media playing control system and its method | |
CN111177599A (en) | Cross-system link tracking method based on tangent plane |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |