Reputation: 43
I get sensor data(with XML format) from URL, and i must process(get some parts of XML - filter) this XML data, then must save to db. But, i dont know which "processing way" to use.
I know a few solution. One of these is XMLTextReader. XMlTextReader so fast to process XML data. Another solution is Azure IoT streaming tool. But I dont know any information about this tool.
Which solution is best way for this scenario?
Upvotes: 0
Views: 199
Reputation: 23782
There's no best way here, everything has pros and cons.
If you use XMLTextReader
, you need to focus on the code logic and write your own program to read the xml file and store it into database. However, it has no limitation,you could use XMLTextReader
to process xml data as you want.
Also, you could use Azure Stream Analytics service.
1.You could get the data from the url and store them into Azure Blob Storage via sdk code.Or you could use Azure Data Factory to copy data from Http request into Azure Blob Storage.
2.Then make the azure blob storage as input in azure stream analytics.Please refer to this doc.
3.You could make many services as output such as cosmos db, sql database.
Hope it helps you.Any concern,please let me know.
Upvotes: 0