Understanding Data Outside Of Service : SOA

后端 未结 1 540
面向向阳花
面向向阳花 2020-12-04 00:49

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

相关标签:
1条回答
  • 2020-12-04 01:43
    1. You are missing the fact that (as @Carsten-Konig implies) the data for any given snapshot time is immutable. Unless you go back and fill in old orders, then the last person to buy the book as of 5:00 PM yesterday is always going to be the same. The fact that since then someone has bought the book (resulting in a new version of that data) is irrelevant to yesterday's result. This may or may not be useful data to cache, but as of any given point in time it is immutable.

    2. The message is immutable if part of the message's key is it's timestamp.

    3. The version-independent identifier is the ID of the book. The version-dependent identifier is the snapshot timestamp.

    4. By snapshot timestamp (which again, may or not be useful for caching purposes)

    As for a good book on the subject, I'm afraid I can't give recommendations. But I suspect that the reviews on amazon or bn.com are a good place to start.

    0 讨论(0)
提交回复
热议问题