CN109005217B - The method for solving concurrency conflict using read-only variable under cloud computing environment - Google Patents
The method for solving concurrency conflict using read-only variable under cloud computing environment Download PDFInfo
- Publication number
- CN109005217B CN109005217B CN201810730373.2A CN201810730373A CN109005217B CN 109005217 B CN109005217 B CN 109005217B CN 201810730373 A CN201810730373 A CN 201810730373A CN 109005217 B CN109005217 B CN 109005217B
- Authority
- CN
- China
- Prior art keywords
- server
- client
- erver
- user
- variables
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/142—Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
-
- 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/55—Push-based network services
Abstract
A kind of method for solving concurrency conflict using read-only variable under cloud computing environment, when server S erver receives the request of client computer Client, newest existing customers quantity is directly obtained by memory address, it does not need directly to inquire user's table data, greatly reduce the access request of user's table and the possibility of concurrency conflict.Long link is established by client and server, client can receive the message sent by server end not timing, pass through this message passing mechanism, it is therefore an objective to ensure the correctness of data, access request number is most importantly reduced, to reduce the possibility of concurrency conflict.Allow server mobile applications can be notified directly to be communicated with server, in order to obtain application program update and user data from server, and demonstrate using service node and application operating log, the validity that classification She Zhi not store, dynamic adjusts is oriented to the column of database.
Description
Technical field
The present invention relates to data safety and protection technology fields, and in particular to read-only variable is utilized under a kind of cloud computing environment
The method for solving concurrency conflict.
Background technique
Currently, the implementation of information push mainly has three ways, such as message, agency, channel.Wherein message mode is root
According to the information requirement that user submits, it will be sent to user for information about using Email or other message systems;Agent way
It is periodically or according to the time interval that user specifies to be searched in the interested information of user on the net by using proxy server
Hold, result is pushed to user;Channel mode then needs to provide complete Push server, client components and related development tool
Deng a whole set of integrated application environment, certain site is defined as to the channel of browser, Push server is responsible for collection information and is formed
User is pushed to after channel content.
Mode is pushed compared to traditional information, since service and data are distributed on different nodes, interaction is all needed every time
Cross-node is wanted to run, it means that for the communication between service node, inevitable conflict will necessarily be caused.So needing
This concurrency conflict is solved by the transfer mode of variable modification.
The above technology there is a problem of following under new cloud computing environment:
1, it is not able to satisfy the application of isomerous environment, poor expandability poor to heterogeneous database safety;
2, redundant operation occupied space is more, inefficiency;
Therefore be a kind of phenomenon or structure in the way of the modification of read-only variable, it is necessary in the system for possessing numerous threads or
Could occur or exist in the group for possessing numerous individuals, the node in per thread all has the feature of high degree of autonomy.Pass through
Client and server establishes long link, and client can receive the message sent by server end not timing, to reduce
The possibility of concurrency conflict.
Summary of the invention
It is established and is grown by client computer and server to overcome the above deficiencies, the invention provides one kind
Link reduces server access request number of times, to be solved simultaneously under reducing the cloud computing environment of concurrency conflict using read-only variable
The method for sending out conflict.
The present invention overcomes the technical solution used by its technical problem to be:
A kind of method for solving concurrency conflict using read-only variable under cloud computing environment, comprising:
A) one server S erver and more client computer Client, client computer are set on network
Client timing sends HTTP request to server S erver;
B) when client Client system starts, server S erver application memory address, for storing database user
Table records quantity, and user's table record quantity is defined as variables A;
C) alteration ruler of variables A is arranged in server S erver, and variables A is revised as variables A+1 as additional user,
A-1 is revised as when deleting user's variations per hour A;
D) it is asked when N platform client computer Client server S erver is sent to additional 1 user of database user table
When asking, server S erver receives request and executes, and number of users is revised as becoming by server S erver according to alteration ruler
Measure A+N;
E) it is asked when M platform client computer Client server S erver is sent to database user table 1 user of deletion
When asking, server S erver receives request and executes, and number of users is revised as becoming by server S erver according to alteration ruler
Measure A-M;
F) server S erver will indicate the change of number of users according to the modification process of variables A in step d) and step e)
Amount A+N-M is stored in memory address;
G) when a client Client, which sends inquiry existing customers to the database user table of server S erver, to be requested,
Client Client calls variables A to obtain active user's quantity, server according to the memory address applied in step b)
Database user table record quantity is that variables A+N-M returns to client Client according to request by Server.
Server S erver is returned immediately after receiving the HTTP request that client computer Client is sent in step a)
Response message, and close HTTP connection.
The beneficial effects of the present invention are: when server S erver receives the request of client computer Client, it is directly logical
It crosses memory address and obtains newest existing customers quantity, do not need directly to inquire user's table data, greatly reduce user's table
The possibility of access request and concurrency conflict.Long link is established by client and server, client can receive by taking
The message that business device end not timing is sent, passes through this message passing mechanism, it is therefore an objective to ensure the correctness of data, it is most important that
Access request number is reduced, to reduce the possibility of concurrency conflict.Allow server can notify mobile applications directly with
Server is communicated, and in order to obtain application program update and user data from server, and is demonstrated and is utilized service node
With application operating log, the validity that classification She Zhi not store, dynamic adjusts is oriented to the column of database.For cloud computing ring
Data information under border provides beneficial reference.
Specific embodiment
The present invention will be further described below.
Big data era, data have become the vital core asset of every profession and trade.Traditional messaging there is
Resource utilization is low, poor availability, downtime is long when breaking down, data restore the problems such as slow, risk is high.Just whether data
Really, whether continuous operation is without the key interrupted as measurement message transmission for business.So utilizing modification based under cloud computing environment
The mode of variable will be the trend of Future Information data development.
The present invention provides a kind of methods for utilizing read-only variable to solve concurrency conflict under cloud computing environment, comprising:
A) one server S erver and more client computer Client, client computer are set on network
Client timing sends HTTP request to server S erver;
B) when client Client system starts, server S erver application memory address, for storing database user
Table records quantity, and user's table record quantity is defined as variables A;
C) alteration ruler of variables A is arranged in server S erver, and variables A is revised as variables A+1 as additional user,
A-1 is revised as when deleting user's variations per hour A;
D) it is asked when N platform client computer Client server S erver is sent to additional 1 user of database user table
When asking, server S erver receives request and executes, and number of users is revised as becoming by server S erver according to alteration ruler
Measure A+N;
E) it is asked when M platform client computer Client server S erver is sent to database user table 1 user of deletion
When asking, server S erver receives request and executes, and number of users is revised as becoming by server S erver according to alteration ruler
Measure A-M;
F) server S erver will indicate the change of number of users according to the modification process of variables A in step d) and step e)
Amount A+N-M is stored in memory address;
G) when a client Client, which sends inquiry existing customers to the database user table of server S erver, to be requested,
Client Client calls variables A to obtain active user's quantity, server according to the memory address applied in step b)
Database user table record quantity is that variables A+N-M returns to client Client according to request by Server.
When server S erver receives the request of client computer Client, directly obtained by memory address newest
Existing customers quantity does not need directly to inquire user's table data, greatly reduces the access request and concurrency conflict of user's table
Possibility.Long link is established by client and server, client can receive to be disappeared by what server end not timing was sent
Breath, passes through this message passing mechanism, it is therefore an objective to ensure the correctness of data, it is most important that access request number is reduced, from
And reduce the possibility of concurrency conflict.Allow server mobile applications can be notified directly to be communicated with server, so as to
In obtaining application program update and user data from server, and demonstrates and utilize service node and application operating log, logarithm
The validity that classification She Zhi not store, dynamic adjusts is oriented according to the column in library.It is provided for the data information under cloud computing environment
Beneficial reference.
Preferably, server S erver is stood after receiving the HTTP request that client computer Client is sent in step a)
That is returning response information, and close HTTP connection.The system that server can be further decreased occupies resource, further increases clothes
Business device corresponding speed.
Claims (2)
1. a kind of method for solving concurrency conflict using read-only variable under cloud computing environment characterized by comprising
A) one server S erver and more client computer Client, client computer Client are set on network
Timing sends HTTP request to server S erver;
B) when client Client system starts, server S erver application memory address, for storing database user table note
Quantity is recorded, user's table record quantity is defined as variables A;
C) alteration ruler of variables A is arranged in server S erver, and variables A is revised as variables A+1 as additional user, when deleting
Except user's variations per hour A is revised as A-1;
D) when N platform client computer Client server S erver, which is sent, to be requested to additional 1 user of database user table,
Server S erver receives request and executes, and number of users is revised as variables A+N according to alteration ruler by server S erver;
E) 1 user's request is deleted when M platform client computer Client server S erver is sent to database user table
When, server S erver receives request and executes, and number of users is revised as variable according to alteration ruler by server S erver
A-M;
F) server S erver is according to the modification process of variables A in step d) and step e), will indicate the variables A of number of users+
N-M is stored in memory address;
G) when a client Client, which sends inquiry existing customers to the database user table of server S erver, to be requested, the visitor
Family end Client calls variables A to obtain active user's quantity, server S erver root according to the memory address applied in step b)
Database user table record quantity is returned into client Client for variables A+N-M according to request.
2. the method for solving concurrency conflict using read-only variable under cloud computing environment according to claim 1, feature exist
In: in step a) server S erver receive client computer Client transmission HTTP request after immediately returning response believe
Breath, and close HTTP connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810730373.2A CN109005217B (en) | 2018-07-05 | 2018-07-05 | The method for solving concurrency conflict using read-only variable under cloud computing environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810730373.2A CN109005217B (en) | 2018-07-05 | 2018-07-05 | The method for solving concurrency conflict using read-only variable under cloud computing environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005217A CN109005217A (en) | 2018-12-14 |
CN109005217B true CN109005217B (en) | 2019-10-25 |
Family
ID=64599428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810730373.2A Active CN109005217B (en) | 2018-07-05 | 2018-07-05 | The method for solving concurrency conflict using read-only variable under cloud computing environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005217B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075909A (en) * | 2006-09-18 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for accounting webstation access information |
CN102833281A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method, device and system for realizing distributed automatically-increasing counting |
CN103888989A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团上海有限公司 | Method and apparatus for monitoring quantity of user equipment in area |
CN104363472A (en) * | 2014-10-20 | 2015-02-18 | 中兴通讯股份有限公司 | HLS-based (http live streaming based) capacity control method, HLS-based capacity control service system and SLB (server load balancing) server |
CN104980513A (en) * | 2015-06-19 | 2015-10-14 | 上海久云信息科技有限公司 | Concurrent conflict and permission processing method for cooperative grouping through multiple clients |
CN105354092A (en) * | 2015-11-19 | 2016-02-24 | 东软集团股份有限公司 | Method, device and system for predicting application performance risk |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1752925A1 (en) * | 2005-07-20 | 2007-02-14 | Siemens Aktiengesellschaft | Method and system for distribution of digital protected content data via a peer-to-peer data network |
CN105354328B (en) * | 2015-11-25 | 2019-03-26 | 南京莱斯信息技术股份有限公司 | A kind of system and method solving the access conflict of NoSQL database concurrency |
CN108021597B (en) * | 2016-10-28 | 2022-02-08 | 阿里巴巴集团控股有限公司 | Parallel counter, server and counting method |
-
2018
- 2018-07-05 CN CN201810730373.2A patent/CN109005217B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075909A (en) * | 2006-09-18 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method and system for accounting webstation access information |
CN102833281A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method, device and system for realizing distributed automatically-increasing counting |
CN103888989A (en) * | 2012-12-20 | 2014-06-25 | 中国移动通信集团上海有限公司 | Method and apparatus for monitoring quantity of user equipment in area |
CN104363472A (en) * | 2014-10-20 | 2015-02-18 | 中兴通讯股份有限公司 | HLS-based (http live streaming based) capacity control method, HLS-based capacity control service system and SLB (server load balancing) server |
CN104980513A (en) * | 2015-06-19 | 2015-10-14 | 上海久云信息科技有限公司 | Concurrent conflict and permission processing method for cooperative grouping through multiple clients |
CN105354092A (en) * | 2015-11-19 | 2016-02-24 | 东软集团股份有限公司 | Method, device and system for predicting application performance risk |
Also Published As
Publication number | Publication date |
---|---|
CN109005217A (en) | 2018-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170364697A1 (en) | Data interworking method and data interworking device | |
Kraska | Finding the needle in the big data systems haystack | |
US8788458B2 (en) | Data caching for mobile applications | |
Padhy | Big data processing with Hadoop-MapReduce in cloud systems | |
US20180293275A1 (en) | Massively parallel processing database middleware connector | |
CN111177161B (en) | Data processing method, device, computing equipment and storage medium | |
US9531830B2 (en) | Odata offline cache for mobile device | |
EP3508985B1 (en) | Scalable synchronization with cache and index management | |
US10860604B1 (en) | Scalable tracking for database udpates according to a secondary index | |
JP2014528114A (en) | Cloud-based distributed persistence and cache data model | |
EP2767912A2 (en) | In-memory real-time synchronized database system and method | |
Srivastava et al. | Analysis of various NoSql database | |
WO2018149363A1 (en) | Click model application method and device, storage medium, and searching system | |
CN108363741B (en) | Big data unified interface method, device, equipment and storage medium | |
WO2004077274A2 (en) | Multi-tier business layer architecture for information systems | |
Medvedev et al. | Data ingestion and storage performance of iot platforms: Study of openiot | |
CN111723161A (en) | Data processing method, device and equipment | |
CN114416868B (en) | Data synchronization method, device, equipment and storage medium | |
CN113190517B (en) | Data integration method and device, electronic equipment and computer readable medium | |
Gupta et al. | HADOOP-An Open Source Framework for Big Data | |
CN110069565B (en) | Distributed database data batch processing method and device | |
CN103634374A (en) | Method and device for processing concurrent access requests | |
US20160127497A1 (en) | Smart site preloading | |
CN109005217B (en) | The method for solving concurrency conflict using read-only variable under cloud computing environment | |
Chardonnens | Big data analytics on high velocity streams |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: A Method of Resolving Concurrency Conflicts Using Read-Only Variables in Cloud Computing Environment Effective date of registration: 20220819 Granted publication date: 20191025 Pledgee: Ji'nan finance Company limited by guarantee Pledgor: SHANDONG JIUZHOU XINTAI INFORMATION TECHNOLOGY CO.,LTD. Registration number: Y2022980012898 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right |