CN109005217A - 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
- CN109005217A CN109005217A CN201810730373.2A CN201810730373A CN109005217A CN 109005217 A CN109005217 A CN 109005217A CN 201810730373 A CN201810730373 A CN 201810730373A CN 109005217 A CN109005217 A CN 109005217A
- 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.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
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;
It therefore is 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 gather around
Could occur or exist in the group for there are numerous individuals, the node in per thread all has the feature of high degree of autonomy.Pass through client
End is established length with server end and is linked, and client can receive the message sent by server end not timing, to reduce concurrent
The possibility of 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 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.
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 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.
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 b) 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 true CN109005217A (en) | 2018-12-14 |
CN109005217B 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 (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070061863A1 (en) * | 2005-07-20 | 2007-03-15 | Hariharan Rajasekaran | Method and system for distribution of digital protected content data via a peer-to-peer data network |
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 |
CN105354328A (en) * | 2015-11-25 | 2016-02-24 | 南京莱斯信息技术股份有限公司 | System and method for solving concurrent access conflict of NoSQL database |
CN105354092A (en) * | 2015-11-19 | 2016-02-24 | 东软集团股份有限公司 | Method, device and system for predicting application performance risk |
CN108021597A (en) * | 2016-10-28 | 2018-05-11 | 阿里巴巴集团控股有限公司 | A kind of parallel counter, server and a kind of method of counting |
-
2018
- 2018-07-05 CN CN201810730373.2A patent/CN109005217B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070061863A1 (en) * | 2005-07-20 | 2007-03-15 | Hariharan Rajasekaran | Method and system for distribution of digital protected content data via a peer-to-peer data network |
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 |
CN105354328A (en) * | 2015-11-25 | 2016-02-24 | 南京莱斯信息技术股份有限公司 | System and method for solving concurrent access conflict of NoSQL database |
CN108021597A (en) * | 2016-10-28 | 2018-05-11 | 阿里巴巴集团控股有限公司 | A kind of parallel counter, server and a kind of method of counting |
Also Published As
Publication number | Publication date |
---|---|
CN109005217B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110019350B (en) | Data query method and device based on configuration information | |
US10565199B2 (en) | Massively parallel processing database middleware connector | |
Das et al. | Big data analytics: A framework for unstructured data analysis | |
Padhy | Big data processing with Hadoop-MapReduce in cloud systems | |
US20120158655A1 (en) | Non-relational function-based data publication for relational data | |
US9531830B2 (en) | Odata offline cache for mobile device | |
US20100332531A1 (en) | Batched Transfer of Arbitrarily Distributed Data | |
CN111258978B (en) | Data storage method | |
EP2767912A2 (en) | In-memory real-time synchronized database system and method | |
CN103399894A (en) | Distributed transaction processing method on basis of shared storage pool | |
Srivastava et al. | Analysis of various NoSql database | |
CN114461603A (en) | Multi-source heterogeneous data fusion method and device | |
Medvedev et al. | Data ingestion and storage performance of iot platforms: Study of openiot | |
CN108363741B (en) | Big data unified interface method, device, equipment and storage medium | |
CN112948486A (en) | Batch data synchronization method and system and electronic equipment | |
US8930946B1 (en) | Leasing prioritized tasks | |
US11055259B2 (en) | Method and system for deleting obsolete files from a file system | |
US20130179400A1 (en) | Intelligent data publishing framework for common data updates in large scale networks of heterogeneous computer systems | |
CN110069565B (en) | Distributed database data batch processing method and device | |
WO2018188607A1 (en) | Stream processing method and device | |
Gupta et al. | HADOOP-An Open Source Framework for Big Data | |
CN113190517A (en) | Data integration method and device, electronic equipment and computer readable medium | |
CN103634374A (en) | Method and device for processing concurrent access requests | |
US20140317044A1 (en) | Method And Device for Real-Time Knowledge Processing Based on an Ontology With Temporal Extensions | |
CN109005217B (en) | The method for solving concurrency conflict using read-only variable under cloud computing environment |
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 | ||
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 |