sshniro opened a new pull request #1102: Batch processor util to process the 
logs in batches
URL: https://github.com/apache/incubator-apisix/pull/1102
 
 
   The following is inspired by the following [batch processor 
util](https://github.com/Kong/kong/blob/master/kong/tools/batch_queue.lua) 
implementation (Apache 2) and includes the modifications to the source file.
   
   - Renamed Queue to Batch_Processor
   - Added comprehensive test cases covering the edge case scenarios
   - Refactored to parallel process the batch instead of appending the failed 
items as the last element of the array
   - Converted the logs to use the core logging module
   - Introduced an additional attribute(name) to the batch processor and 
enhanced the logging by appending the processor name to the logs to exactly 
identify the failed processes.
   - Fixed the wrong assertion for 
[process_delay](https://github.com/Kong/kong/blob/619de297b0a68769bd38cff49f7810030851b550/kong/tools/batch_queue.lua#L234)
 in the original source file
   - Renamed the following variables(batch_size => batch_max_size, retries => 
retry_count, batch_queue => batch_to_process )
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to