CN110309187A - A kind of method and apparatus for applying streaming computing in SAAS system - Google Patents
A kind of method and apparatus for applying streaming computing in SAAS system Download PDFInfo
- Publication number
- CN110309187A CN110309187A CN201810178874.4A CN201810178874A CN110309187A CN 110309187 A CN110309187 A CN 110309187A CN 201810178874 A CN201810178874 A CN 201810178874A CN 110309187 A CN110309187 A CN 110309187A
- Authority
- CN
- China
- Prior art keywords
- tenant
- message
- condition list
- consumption
- label
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/24—Querying
- G06F16/245—Query processing
- G06F16/2458—Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
- G06F16/2468—Fuzzy queries
-
- 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
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Abstract
The invention discloses the method and apparatus that streaming computing is applied in SAAS system, are related to field of computer technology.One specific embodiment of this method includes: monitored data library from library, to parse the log from library, obtains the modification information of database, adds corresponding tenant ID label for the modification information;It will include that the modification information of tenant's ID label is saved with preset message format into message server;Consumer requests are received, the consumer requests are authenticated, to obtain tenant's ID condition list of authorization;The tenant ID condition list is issued, so that user obtains corresponding information according to the tenant ID condition list from message server.The embodiment can be applied in SAAS system using upper streaming computing, and realize the purpose that access is simple, easy to use, later period operation maintenance is reliable and secure.
Description
Technical field
The present invention relates to field of computer technology more particularly to it is a kind of in SAAS system using streaming computing method and
Device.
Background technique
Must make rapid progress in the web application development of e-commerce field, SAASization, using all by the way of multi-tenant come
It carries out developing online deployment.Streaming computing is analysis, the essential means of real-time monitoring data in real time under big data quantity.In order to
Energy real time inspection arrives the operating condition of each operation system to SAAS using lower all data report, real time monitoring, and SAASization is answered
With being docked to the also extremely urgent of streaming computing platform.
Streaming computing, in order not to which together with operation system close-coupled, the task of calculating all can individually designed, individually be held
Hair, individually deployment.Common business model are as follows: operation system operation service database, capture program monitor business datum in real time
The binlog of database is uploaded to message queue by certain format by the binlog in library, and streaming computing frame batch is read simultaneously
The content of message queue is handled, analyzes processing business data in real time.
The isolation method of data of the landing into database is general in current general SAAS scheme are as follows: database library every
It is not isolated from the isolation of, database table, database table and this 3 kinds is isolated by tenant's field.
Under the frame of streaming computing, in order to enable the monitoring data of the different tenants of the same application can keep apart,
There are two types of the strategies generally used at present:
1) scheme 1: all message of same table business are all sent out toward a fixed topic up, and consumer presses its business
Rule filters out the business datum of care from all message to consume.
2) business datum that tenants different under the same table business generate scheme 2: is pressed into different source bodies from business
On distinguish, that is, same table business corresponds to different tenant ends, the source body (message topic) of transmission is complete
Separated.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
1) the shortcomings that scheme 1, is that the privacy of data is too poor, cannot receive in business.There are the industry of part tenant for scheme
Business data do not allow but to be obtained by consumption terminal in unauthorized,.This scheme is generally only applied in internal private system, is not had to privacy
There is the business considered too much that can use.
2) scheme 2, using multiple source bodies (message topic) although implementation business on be it is feasible,
Really execution is got up too heavy, and business operation can be more troublesome when reality is landed.Because if all message are all using unified
Configuration if further part source body wants dilatation, will be directed to the independent operation maintenance of part messages, because of the number of message topic
Amount is relatively more, and operating relatively to bother;If message arrangement is separately handled by tenant, is especially treated, it is contemplated that
The business of part tenant can be relatively more, but when message establishing, and be difficult to accomplish accurately to estimate disappearing for different tenants
The amount of breath just needs to do specific logical by the portfolio of estimating of tenant herein, equal to streaming computing send message logic in,
Need to couple the process of these above-mentioned creation source bodies, business complexity can be relatively high.
3) another drawback of scheme 2 is, consumption terminal if it is intended to when the not exclusively fixed data qualification of consumption,
As user want consumption tenant id in include " China " keyword all tenants data, program realize on quite be stranded
Difficulty can not achieve substantially.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for applying streaming computing in SAAS system, energy
It enough applies in SAAS system using upper streaming computing, and realizes that access is simple, easy to use, later period operation maintenance is reliable and secure
Purpose.
To achieve the above object, according to an aspect of an embodiment of the present invention, one kind is provided to apply in SAAS system
The method of streaming computing obtains the change letter of database from library with the parsing log from library including monitored data library
Breath adds corresponding tenant ID label for the modification information;It will include that the modification information of tenant's ID label is disappeared with preset
Breath format is saved into message server;Consumer requests are received, the consumer requests are authenticated, to obtain the tenant of authorization
ID condition list;The tenant ID condition list is issued, so that user is according to the tenant ID condition list from message server
It is middle to obtain corresponding information.
Optionally, the tenant ID label is the field defined according to type of service or chooses any word in database
Tenant ID label described in Duan Zuowei.
Optionally, the consumer requests are authenticated, to obtain tenant's ID condition list of authorization, comprising:
According to the consumer requests, the tenant ID of acquisition request consumption;
It determines the permission for accessing the tenant, obtains tenant's ID condition list of authorization;Wherein, the tenant ID condition column
The mapping relations of tenant ID and access authority are stored in table.
Optionally, user is made to obtain corresponding information from message server according to the tenant ID condition list,
Include:
Message server receives the consumer requests of user, obtains the source body of consumption;
Tenant ID condition list, matching meet the consumption information of the source body to message server based on the received, with
The consumption information is returned to the user.
Optionally, the message format includes two sections: first segment is message header, comprising: the rent of type of message and message
Family ID, wherein type of message is defined as the message with tenant ID or the message without tenant ID;Second segment is message body.
In addition, according to an aspect of an embodiment of the present invention, provide it is a kind of in SAAS system using streaming computing
Device, comprising: labelling module obtains the change of database from library to parse the log from library for monitored data library
More information;Corresponding tenant ID label is added for the modification information;It will include the modification information of tenant's ID label with default
Message format save into message server;Receiving module, for receiving consumer requests;Module is obtained, for disappearing to described
Expense request is authenticated, to obtain tenant's ID condition list of authorization;Sending module, for issuing the tenant ID condition column
Table, so that user obtains corresponding information according to the tenant ID condition list from message server.
Optionally, the tenant ID label is the field defined according to type of service or chooses any word in database
Tenant ID label described in Duan Zuowei.
Optionally, the acquisition module authenticates the consumer requests, to obtain tenant's ID condition list of authorization,
Include:
According to the consumer requests, the tenant ID of acquisition request consumption;
It determines the permission for accessing the tenant, obtains tenant's ID condition list of authorization;Wherein, the tenant ID condition column
The mapping relations of tenant ID and access authority are stored in table.
Optionally, the sending module is so that user obtains phase according to the tenant ID condition list from message server
The information answered, comprising:
Message server receives the consumer requests of user, obtains the source body of consumption;
Tenant ID condition list, matching meet the consumption information of the source body to message server based on the received, with
The consumption information is returned to the user.
Optionally, the message format includes two sections: first segment is message header, comprising: the rent of type of message and message
Family ID, wherein type of message is defined as the message with tenant ID or the message without tenant ID;Second segment is message body.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes method described in any of the above-described embodiment for applying streaming computing in SAAS system.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter
Calculation machine program realizes any of the above-described embodiment institute that streaming computing is applied in SAAS system when described program is executed by processor
The method stated.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that under the application of SAASization, proposes one
The standard design of kind of database layer defines a kind of format of message preservation under SAASization streaming computing frame, provides one kind
Message is sent by tenant's label, consumption authentication presses tenant's information and certain business rule is accurate or fuzzy matching consumption data
Working specification, this specification can apply in streaming computing field, under the premise of meeting streaming computing monitoring business, reach and connect
Enter purpose simple, easy to use, that later period operation maintenance is reliable and secure.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment
With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the signal of the main flow of the method according to an embodiment of the present invention that streaming computing is applied in SAAS system
Figure;
Fig. 2 is the signal of the main modular of the device according to an embodiment of the present invention that streaming computing is applied in SAAS system
Figure;
Fig. 3 is the main modular that can refer to the device that streaming computing is applied in SAAS system of embodiment according to the present invention
Schematic diagram;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention
Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the method according to an embodiment of the present invention that streaming computing is applied in SAAS system, as shown in Figure 1, described
Include: using the method for streaming computing in SAAS system
Step S101 receives consumer requests.
In embodiment, of the present invention to can be applied to SAAS system using the method for streaming computing in SAAS system
On system, and the SAAS is the abbreviation of Software-as-a-Service (software services).It is that one kind passes through
Internet provides the mode of software, and by application software unified plan on the server of oneself, client can be according to certainly for manufacturer
Own actual demand orders required application software service to manufacturer by internet, by the service ordered is how many and length of time
Expense is paid to manufacturer, and the service that manufacturer provides is obtained by internet.
Preferably, user when consuming message, submits the data of consumption token class to the server-side of streaming computing.
Step S102 authenticates the consumer requests, to obtain tenant's ID condition list of authorization.It is specific to implement
Process includes:
According to the consumer requests, the tenant ID of acquisition request consumption.Then, it is determined that accessing the permission of the tenant, obtain
The tenant's ID condition list that must be authorized.Wherein, the mapping of tenant ID and access authority is stored in the tenant ID condition list
Relationship.
Further, when user applies for the access authority of the data of some tenant of some application in streaming computing, Shen
It is fuzzy that type please can be defined as whole consumption, the accurate consumption of single tenant, the accurate consumption of tenant's list, single tenant
Consumption, the fuzzy consumption of tenant's list etc..Such as: assuming that being respectively as follows: Chinese AAA company, China BBB public affairs there are 2 tenant ID
It takes charge of, wherein the business meaning of accurate consumption are as follows: it is assumed that user it is expected to access the institute for exactly matching " Chinese AAA company " in tenant ID
There are data, as accurate consumption;The meaning of fuzzy consumption are as follows: it is assumed that user it is expected to access in tenant ID containing " China " or
All data of " AAA " printed words, as fuzzy consumption.In addition, whole consumption, which refer to, needs to consume all data.
Step S103 issues the tenant ID condition list, so that user is according to the tenant ID condition list from message
Corresponding information is obtained in server.
In embodiment, user can receive the tenant ID condition list, then sends and consumes to message server
Request, to obtain corresponding information.Further, message server receives the consumer requests of user, obtains disappearing for consumption
Cease main body.Then tenant ID condition list, matching meet the consumption information of the source body to message server based on the received,
To return to the consumption information to the user.Further, tenant ID condition list, matching meet described based on the received
The consumption information of source body, specific implementation process include:
, if consumption type is all consumption, direct return can not be filtered according to tenant's ID condition list of message
Information.If consumption type is to be carried out single accurate matching by the single accurate consumption of tenant ID, then returned to message letter
Breath.If consumption type is the accurate consumption by tenant's ID list, accurate matching one by one.If consumption type is single tenant
Fuzzy consumption, then single fuzzy matching.If consumption type is the fuzzy consumption of tenant's list, one by one fuzzy matching.Preferably,
Fuzzy matching can also be extended to the case where similar to regular expression and conditional expression, such as And (' AAA ', ' BBB '), contain
Justice is the data that fuzzy matching should include AAA and BBB simultaneously.
Preferably, tenant's ID condition list of source body, message that needs are consumed is submitted to the service of message by user
End, the server-side of message pull message by the conditions such as the condition list of tenant id of source body, message and return to user.Its
In, the source body is the particular content of message.
It preferably, can be with the server-side of notification message after customer consumption success or failure.Wherein, the consumption successfully may be used
It is without exception in process of consumption to show as, and business datum is normal.
It is described to may also listen in SAAS system using the method for streaming computing as another embodiment of the invention
Database obtains the modification information of database from library to parse the log from library.Wherein, it preferably can parse institute
State the binlog log from library, and binlog log all have updated data or potential has updated data for recording
All sentences of (for example, DELETE for not matching any row).
Later, corresponding tenant ID label is added for the modification information, will will include the change letter of tenant's ID label
Breath is saved with preset message format into message server.Wherein, preferably message format is divided into two sections: first segment is message
Head, second segment are message bodies.Wherein, message header includes two parts: the tenant ID of type of message (msgType), message, wherein disappearing
Breath type can be defined as 2 kinds: the message with tenant ID, without the message of tenant ID.
Therefore, it all can increase database table newly tenant's ID label by the above process, that is, increase a tenant
The field of ID, each traffic table of field name can be different, convenient here for subsequent expression, Uniform Name tenantId.
When business increases newly, modification, deletes, inquires, it is required to take the information of this tenant ID in sql sentence.
Also it is worth noting that, the tenant ID label is the field defined according to type of service or chooses in database
Either field as the tenant ID label.Wherein, the less specification that may be designed for the database of partial service, may
The case where not being tenantId there are field name, being operation system customized field, can allow user hand when access
Some field of the dynamic selection table to be accessed, as the field of actual tenant ID, (field name is not strict with
TenantId), identification inside access system, insinuate Database field that user chooses as tenant ID.
Fig. 2 is the device according to an embodiment of the present invention that streaming computing is applied in SAAS system, as shown in Fig. 2, described
Include receiving module 201, acquisition module 202 and sending module 203 using the device 200 of streaming computing in SAAS system.
Wherein, receiving module 201 receives consumer requests.Later, it obtains module 202 to authenticate the consumer requests, to be awarded
Tenant's ID condition list of power.And sending module 203 issues the tenant ID condition list, so that user is according to the tenant ID
Condition list obtains corresponding information from message server.
As one, preferably embodiment, Fig. 3 are to can refer to applying in SAAS system for embodiment according to the present invention to flow
Formula calculate device, as shown in figure 3, it is described in SAAS system using streaming computing device 300 include receiving module 301,
Obtain module 302, sending module 303 and labelling module 304.Wherein, receiving module 301 receives consumer requests.Later, it obtains
Modulus block 302 authenticates the consumer requests, to obtain tenant's ID condition list of authorization.And sending module 303 issues
The tenant ID condition list, so that user obtains corresponding message according to the tenant ID condition list from message server
Information.In addition, labelling module 304 can obtain database from library with monitored data library to parse the log from library
Modification information;Corresponding tenant ID label is added for the modification information;It will include the modification information of tenant's ID label with pre-
If message format save into message server.
It should be noted that in the specific implementation of the present invention in SAAS system using the device of streaming computing
Hold, it is described above in SAAS system using streaming computing method in be described in detail, therefore this duplicate contents not
Illustrate again.
Fig. 4 is shown can apply the method for streaming computing or in SAAS using the embodiment of the present invention in SAAS system
Using the exemplary system architecture 400 of the device of streaming computing in system.Or Fig. 4 is shown can apply the embodiment of the present invention
In SAAS system using streaming computing method or in SAAS system using streaming computing device exemplary system
Framework 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405.
Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out
Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403
(merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user
The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception
To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter
Breath -- merely illustrative) feed back to terminal device.
It should be noted that the embodiment of the present invention provided by SAAS system using streaming computing method generally by
Server 405 executes, and correspondingly, is generally positioned in server 405 in SAAS system using the device of streaming computing.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention
Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model
Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in
Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and
Execute various movements appropriate and processing.In RAM503, also it is stored with system 500 and operates required various programs and data.
CPU501, ROM 502 and RAM503 is connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to bus
504。
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.;
And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because
The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon
Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention
Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer
Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.?
In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can
Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed
The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard
The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet
It includes receiving module, obtain module and sending module.Wherein, the title of these modules is not constituted under certain conditions to the module
The restriction of itself.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment includes: reception consumer requests, is authenticated to the consumer requests, to obtain tenant's ID condition list of authorization;
The tenant ID condition list is issued, so that user obtains accordingly according to the tenant ID condition list from message server
Information.
Technical solution according to an embodiment of the present invention can be applied in SAAS system using upper streaming computing, and be realized
Access purpose simple, easy to use, that later period operation maintenance is reliable and secure.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (12)
1. a kind of method for applying streaming computing in SAAS system characterized by comprising
Monitored data library obtains the modification information of database from library to parse the log from library, is the modification information
Add corresponding tenant ID label;It will include that the modification information of tenant's ID label is saved with preset message format to message clothes
It is engaged in device;
Consumer requests are received, the consumer requests are authenticated, to obtain tenant's ID condition list of authorization;Issue the rent
Family ID condition list, so that user obtains corresponding information according to the tenant ID condition list from message server.
2. the method according to claim 1, wherein the tenant ID label is the word defined according to type of service
Section chooses either field in database as the tenant ID label.
3. the method according to claim 1, wherein being authenticated to the consumer requests, to obtain authorization
Tenant's ID condition list, comprising:
According to the consumer requests, the tenant ID of acquisition request consumption;
It determines the permission for accessing the tenant, obtains tenant's ID condition list of authorization;Wherein, in the tenant ID condition list
It is stored with the mapping relations of tenant ID and access authority.
4. the method according to claim 1, wherein taking user from message according to the tenant ID condition list
Corresponding information is obtained in business device, comprising:
Message server receives the consumer requests of user, obtains the source body of consumption;
Tenant ID condition list, matching meet the consumption information of the source body to message server based on the received, to return
The consumption information is to the user.
5. method according to claim 1 to 4, which is characterized in that the message format includes two sections: first segment
It is message header, comprising: the tenant ID of type of message and message, wherein type of message is defined as the message with tenant ID or without rent
The message of family ID;Second segment is message body.
6. a kind of device for applying streaming computing in SAAS system characterized by comprising
Module of labelling, to parse the log from library, obtains the change letter of database for monitored data library from library
Breath;Corresponding tenant ID label is added for the modification information;It will include that the modification information of tenant's ID label is disappeared with preset
Breath format is saved into message server;
Receiving module, for receiving consumer requests;
Module is obtained, for authenticating to the consumer requests, to obtain tenant's ID condition list of authorization;
Sending module, for issuing the tenant ID condition list, so that user is according to the tenant ID condition list from message
Corresponding information is obtained in server.
7. device according to claim 6, which is characterized in that the tenant ID label is the word defined according to type of service
Section chooses either field in database as the tenant ID label.
8. device according to claim 6, which is characterized in that the acquisition module authenticates the consumer requests,
To obtain tenant's ID condition list of authorization, comprising:
According to the consumer requests, the tenant ID of acquisition request consumption;
It determines the permission for accessing the tenant, obtains tenant's ID condition list of authorization;Wherein, in the tenant ID condition list
It is stored with the mapping relations of tenant ID and access authority.
9. device according to claim 6, which is characterized in that the sending module so that user according to the tenant ID item
Part list obtains corresponding information from message server, comprising:
Message server receives the consumer requests of user, obtains the source body of consumption;
Tenant ID condition list, matching meet the consumption information of the source body to message server based on the received, to return
The consumption information is to the user.
10. according to any device of claim 6-9, which is characterized in that the message format includes two sections: first segment
It is message header, comprising: the tenant ID of type of message and message, wherein type of message is defined as the message with tenant ID or without rent
The message of family ID;Second segment is message body.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor
Such as method as claimed in any one of claims 1 to 5 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810178874.4A CN110309187A (en) | 2018-03-05 | 2018-03-05 | A kind of method and apparatus for applying streaming computing in SAAS system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810178874.4A CN110309187A (en) | 2018-03-05 | 2018-03-05 | A kind of method and apparatus for applying streaming computing in SAAS system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110309187A true CN110309187A (en) | 2019-10-08 |
Family
ID=68073361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810178874.4A Pending CN110309187A (en) | 2018-03-05 | 2018-03-05 | A kind of method and apparatus for applying streaming computing in SAAS system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110309187A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111770128A (en) * | 2020-02-07 | 2020-10-13 | 北京沃东天骏信息技术有限公司 | Message management method and device |
CN111786801A (en) * | 2019-11-26 | 2020-10-16 | 北京京东尚科信息技术有限公司 | Method and device for charging based on data flow |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615777A (en) * | 2015-02-27 | 2015-05-13 | 浪潮集团有限公司 | Method and device for real-time data processing based on stream-oriented calculation engine |
CN104901977A (en) * | 2014-03-04 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | File acquisition method and system |
CN106649670A (en) * | 2016-12-14 | 2017-05-10 | 北京五八信息技术有限公司 | Streaming computing-based data monitoring method and apparatus |
CN107203575A (en) * | 2016-03-18 | 2017-09-26 | 北京京东尚科信息技术有限公司 | A kind of system, apparatus and method for being used to isolate multi-tenant data |
-
2018
- 2018-03-05 CN CN201810178874.4A patent/CN110309187A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104901977A (en) * | 2014-03-04 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | File acquisition method and system |
CN104615777A (en) * | 2015-02-27 | 2015-05-13 | 浪潮集团有限公司 | Method and device for real-time data processing based on stream-oriented calculation engine |
CN107203575A (en) * | 2016-03-18 | 2017-09-26 | 北京京东尚科信息技术有限公司 | A kind of system, apparatus and method for being used to isolate multi-tenant data |
CN106649670A (en) * | 2016-12-14 | 2017-05-10 | 北京五八信息技术有限公司 | Streaming computing-based data monitoring method and apparatus |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111786801A (en) * | 2019-11-26 | 2020-10-16 | 北京京东尚科信息技术有限公司 | Method and device for charging based on data flow |
CN111786801B (en) * | 2019-11-26 | 2023-08-04 | 北京京东尚科信息技术有限公司 | Method and device for charging based on data flow |
CN111770128A (en) * | 2020-02-07 | 2020-10-13 | 北京沃东天骏信息技术有限公司 | Message management method and device |
CN111770128B (en) * | 2020-02-07 | 2022-09-30 | 北京沃东天骏信息技术有限公司 | Message management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096344A (en) | Task management method, system, server cluster and computer-readable medium | |
CN110472207A (en) | List generation method and device | |
CN109766082A (en) | The method and apparatus that the application program page jumps | |
CN110019087A (en) | Data processing method and its system | |
CN107634947A (en) | Limitation malice logs in or the method and apparatus of registration | |
CN109241033A (en) | The method and apparatus for creating real-time data warehouse | |
CN107169077A (en) | Method and apparatus for pushed information | |
CN110019214A (en) | The method and apparatus that data split result is verified | |
CN108876379A (en) | A kind of method and apparatus for generating message | |
CN110427304A (en) | O&M method, apparatus, electronic equipment and medium for banking system | |
CN110019539A (en) | A kind of method and apparatus that the data of data warehouse are synchronous | |
CN109711122A (en) | A kind of right management method, device, system, equipment and readable storage medium storing program for executing | |
CN109960212A (en) | Task sending method and device | |
CN110309142A (en) | The method and apparatus of regulation management | |
CN110309187A (en) | A kind of method and apparatus for applying streaming computing in SAAS system | |
CN107347093A (en) | Collocation method and device for distributed server system | |
CN108880923A (en) | The method and apparatus that policer operation applied to application server is requested | |
CN110070394A (en) | Data processing method, system, medium and calculating equipment | |
CN109829723A (en) | The method and apparatus for generating business voucher | |
CN110083501A (en) | Interface calls method of counting and device | |
CN107729394A (en) | Data Mart management system and its application method based on Hadoop clusters | |
CN109976919A (en) | A kind of transmission method and device of message request | |
CN110347654A (en) | A kind of method and apparatus of online cluster features | |
CN110399397A (en) | A kind of data query method and system | |
CN109688174A (en) | A kind of virtual service implementation method and device based on more agents service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |