Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I will see this pattern, but I have doubt. could it lead to an incoherence state? For example, if the price is changed very quick two times, could some intems to have a price and another items another prices after the second change? Commented Feb 23, 2023 at 12:29
  • @ÁlvaroGarcía, Regardless of what you do, there will always be a time period, maybe just a few nanoseconds, in which the prices are inconsistent. The Observer patterns can be implemented that the notification happens synchronously. Commented Feb 23, 2023 at 13:03