Note: Data outside of service means the message returned by a service and consumed by the client.
I have a service named LastBuyer Service. This will return the last buyer name of a book when I input the bookID to the service. When I call the service for the same book id, it will return different result (if a book is purchased by a new buyer). So I cannot cache the result of the service in the client (for a particular BookID).
While reading the article “Data on the Inside vs. Data on the Outside” it says “Ok to Cache” – “ Since the ID of the message returns the same data, it is OK to cache a message”.
Reference: http://msdn.microsoft.com/en-us/library/ms954587.aspx
What is the missing point in my understanding?
Is the message immutable in above example?
What are the version-dependent and version-independent identifiers in above example?
How is versioning of message done here?
Which is the WCF book that explains SOA concepts and patterns clearly with examples?
READING
- Principles of Service Design: Service Patterns and Anti-Patterns
http://msdn.microsoft.com/en-us/library/ms954638.aspx
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…