cloudwan / gohan

Gohan is an API Gateway Server written by Go that makes it easy for developers to create and maintain REST-style API
http://www.slideshare.net/natiueno/gohan-61170476
Other
109 stars 44 forks source link

[CW-1242] Do not skip SyncWriter based on last processed event ID. #735

Closed zimnx closed 5 years ago

zimnx commented 5 years ago

It's possible that events that come into queue will have unordered ID. It's because autoincremented ID is generated when INSERT happen, not on COMMIT. This commit removed logic which reduced number of SyncWriter iteration based on last processed event ID. Since this commit, every tx COMMIT will trigger SyncWriter. Keep in mind that in case when multiple Tx are commited at once, single SyncWriter trigger will happen.