-
Design question: large XML data in Web Service
HelloAll:
I have a web service design question here and hope to get your inputs.
I need to design two services, say, WS1 and WS2. WS1 needs to talk to a database to get some data and WS2 is the consumer of WS1 and itself is a service as well. Now, for WS1, I need to make DB call to get a few hundred rows of data (4 or 5 fields). I want to make this data into XML format before WS2 consumes it. My question is: what is the best way to design this, especially, get this large amount XML data (the xml tags and real data) transmitted without affect performance? First of all, I don't want to make a DB call each time when WS2 consumes WS1. Certainly, I am thinking some sort of cache mechanism for WS1 to make its DB call first (or even when WS1 is consumed at its very first time) and cache the data somewhere then when WS2 consumes WS1, WS1 goes to the cache to obtain this large amount of data. However, the issue here is what if the DB source changes (i.e. updates and modifications, etc.)? How do I refresh my cache? Any other suggestions? What is the typical way for a web service (or web services) to handle large amount XML data?
Thank you,
-Ricky
Similar Threads
-
By sonofspm in forum ASP.NET
Replies: 1
Last Post: 11-12-2006, 07:49 PM
-
Replies: 1
Last Post: 11-28-2005, 04:07 PM
-
By (MC3)RaVeN in forum Java
Replies: 2
Last Post: 10-26-2005, 07:58 AM
-
Replies: 1
Last Post: 02-25-2003, 10:36 PM
-
Replies: 0
Last Post: 02-20-2003, 10:35 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|