In your solution as soon as queue gets big, switch to the second one. I am sure this can be done easily.
And switch to the one again, as soon as you find that queue gets empty or small.
Type: Posts; User: Mr.777
In your solution as soon as queue gets big, switch to the second one. I am sure this can be done easily.
And switch to the one again, as soon as you find that queue gets empty or small.
How you define complexity?
Implement both solutions, and switch to either one according to your defined criteria of switching.
Well, why don't you implement both? As soon as queue size gets big, switch to the second solution and keep altering the solutions within your application according to data processing needs.