I have a very specific application architecture question.
I need to resolve a large amount of incoming destinations, the resolution of these objects is handled asynchronously and when complete the objects need to be passed to the next phase.
So the real question boils down to, what is an elegant way of coping with a large amount of Future objects.
Should I just throw these into a list, iterate over that list and remove them when done? Due to the constant concurrent access the list will most likely be livelocked and become a large bottleneck.
Sorry if my question is phrased rather vaguely.