Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Communication between modules based on XML messages
At work I was able to join the team that creates quite a large and complicated system. Before implementation, I would like to have my own thoughts and a little more understanding of the subject.
Could you read few questions ?
I have to create a module which can communicate with that system, and perform some necessary actions. Whole communication between system and all modules are based on XML messages, which can have very different forms ( only header is constant ). The simplest message can be XML with one node, while another could have three of them . What do you think about it ? Could you guide me, how to parse those messages in the most elegant way ? Maybe I should try to keep some templates of those messages in external files?
The system gives the ability to listen for new messages, receive and interpret them. Here comes the next question about architecture. In this case we have to create an additional thread that will only listen to the "mailbox", and if a message was detected it will pass it to the main thread where it can be interpreted. Do you think it
0 · ·