Php mysql queue queue data accumulation
Php mysql queue queue data accumulation, solution: 1. Create a table in the new database as a new queue queue and access new requests to the new queue. two。 Start more processes to consume this new queue. 3. The old queue continued its original consumption.
If kafka queue data is piled up, a similar method can be used, 1. Copy the data in the existing queue to the new kafka instance, start the corresponding thread to consume the old data in this instance, 2. Change its offset to connect the new request to the original instance.