-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Some refactoring about database queue mode
When we used the database queue mode, we encountered the following problems:
-
MySql Queue support for the database is poor, it is very troublesome to implement, and error prone.
-
When the database uses load-balanced middleware, due to data synchronization and consistency issues, the queuing model will cause great trouble.
-
The database queue mode brings the overall architecture complexity.
-
The database queue mode will operate too much database, leading to low performance.
Due to the above issues, we have made some adjustments to the entire CAP architecture. These adjustments include:
-
The cap.queue table was removed and we used the memory queue instead.
-
Removed the status of some messages, such as Enqueue and Processing.
-
Refactored a part of the code, now they are easier to read.
The new code is currently in the remove-queue branch.
For the end-user's API, we did not make any adjustments, and we can safely upgrade after the test is stable.
We will release a minor version in the near future.