Concurrent Document Loader Pattern - Opening multiple XMLHttpRequests and get notified when all requests are done
Alex Iskold described the Concurrent Document pattern here which explains how to load XML documents concurrently and how to know when all of them are loaded by having a loader that keeps track of what has been loaded and invokes a callback once all the documents have been fetched.
Its useful and reduces the initialization time when you need to load multiple configuration/bootstrap settings during application startup. Its like loading web application’s property settings, log settings, configuration settings etc., with different threads via init servlet in J2EE environment during the server startup.
Can you think of any alternative approaches to load the settings during the application startup?