News for hackers. Stuff that matters.
Re:Data-Oriented Architecture (2020) by mpweiher on Sunday November 14, 2021 @09:16AM (#29217275)
Sounds a lot like a variant of Model-View-Controller, or more precisely, both this and MVC are probably instances of a slightly more general pattern.

What is here referred to as the central data store is the model.

The services are the views. Just like views, they do not hold onto any actual application data, that must be stored in the model.

The services must not communicate with each other, just like views (and controllers/ViewControllers) should not communicate with each other. Instead they communicate via the store, just like in MVC, where the model is updated and then the model notifies other views of changes.

(The last part is the one that a lot of the alleged implementations of MVC get completely wrong, leading to the problems that they then blame on MVC. Which then leads to them creating new patterns to "fix" the "problems" of MVC that would be solved by just implementing MVC correctly).

So yeah: good stuff. Nice to see how good architectural patterns are widely applicable.

Re:Data-Oriented Architecture (2020) by perspicace on Sunday November 14, 2021 @01:15PM (#29219149)
“where the model is updated and then the model notifies other views of changes”

I like your overall analogy but you lost me (as you predicted lol) with that last part. Views notifying other views (probably via listeners and event handlers) sounds more like the MVP pattern to me. But yeah overall I like your take on understanding the article.