The invention discloses a
data processing method and
system. The
data processing method comprises the first stage of data writing, wherein
data information sent by a
client-side is received, persistence is carried out on the
data information into a
database, and to-be-processed data in the
data information are written into a Redis cache; the second state of
data processing, wherein the to-be-processed data are obtained from the Redis cache and are processed, processed result data are sent to an information
queue, the result data are obtained from the information
queue, and persistence is carried out the result data into the
database. As the Redis cache stores the to-be-processed data, concurrent
preemption and
processing of the to-be-processed data in the Redis cache are achieved, and persistence on the processed result data into the
database is achieved in a
serialization mode through the information
queue. According to the data
processing method and
system,
concurrency processing of the data is enhanced, good experience is brought to clients, the
bottleneck problem brought to the database under the condition of high
concurrency is avoided, the
deadlock problem of the database is avoided, and consistency and completeness of the data are ensured.