I am writing a app, which has to create multiple Resources. The input is a XML. I need to parse the XML, create the Resources in parallel and update the responses in the Ouputs.
<Components>
<Resources>
<CreateResourceARequest> ...</CreateResourceARequest>
<CreateResourceBRequest>...</CreateResourceBRequest>
<CreateResourceCRequest>...</CreateResourceCRequest>
</Resources>
<Outputs>
<CreateResourceAResponse>...</CreateResourceAResponse>
<CreateResourceBResponse>...</CreateResourceBResponse>
<CreateResourceCResponse>...</CreateResourceCResponse>
</Outputs>
<Components>
Each of the ResourceRequests are handled by a specific Classes.
What is the best way to create Resources in parallel, aggregate the results and update the xml ?