|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Defining XPaths in UDP to handle future new file formats |
« View previous topic :: View next topic » |
Author |
Message
|
Kodi |
Posted: Wed Jan 22, 2020 5:39 am Post subject: Defining XPaths in UDP to handle future new file formats |
|
|
Newbie
Joined: 22 Jan 2020 Posts: 2
|
We are building a message flow integration on IIB to parse application files, perform duplicate data check with the DB data and then insert the file in DB as BLOB. The issue is that these files are not of XML type but some other proprietary file type like .dtax, .sfra, etc. but the contents are XML payload. There is a possibility that these XMLs structures could change in the future with product upgrades or enhancements. The ask is to define the Xpaths of the specific XML fields as UDP properties so that the logic can be expanded in the future to handle any new XML structures that are introduced.
Is it a good design to define XPaths outside of the compiled code? If we take this approach would it introduce any performance and run-time errors risks?
The given integration has to handle around 8k files which are .xml, .sfra, .dtx, etc. The payload size in under 500KB and there are four fields that would be defined as XPaths in UDP file.
Thanks in advance for any advise and suggestions. |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Jan 22, 2020 6:07 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Moved to Broker forum. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
timber |
Posted: Wed Jan 22, 2020 9:09 am Post subject: |
|
|
 Grand Master
Joined: 25 Aug 2015 Posts: 1292
|
Quote: |
these files are not of XML type but some other proprietary file type like .dtax, .sfra, etc. but the contents are XML payload |
[quote]The files are XML if they are guaranteed to contain well-formed XML. I think you mean that the schema for the XML might change.
Quote: |
Is it a good design to define XPaths outside of the compiled code? |
I understand why you would ask that question, but I am going to play safe. I don't have enough information to judge whether the structure of the XML is likely to change. I don't know how much of a business impact that would have.
I will say this, though. Externalising the XPaths will reduce the impact of a change to the XML structure. But these integration flows might still require fixes/enhancements in future for reasons that cannot be anticipated now.
Quote: |
The given integration has to handle around 8k files which are .xml, .sfra, .dtx, etc. The payload size in under 500KB and there are four fields that would be defined as XPaths in UDP file. |
I assume you want guidance on whether this will perform adequately. Again, we don't know enough to make that judgement. You should run some performance tests before deploying this solution (and maybe before developing it). |
|
Back to top |
|
 |
Kodi |
Posted: Wed Jan 22, 2020 9:31 am Post subject: |
|
|
Newbie
Joined: 22 Jan 2020 Posts: 2
|
Thanks @timber. I have the same thoughts as you stated and your response is helpful. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|