dolfelt / proton-example

An example of using the Proton framework for a large application.
0 stars 0 forks source link

Architecture Pattern #2

Open dolfelt opened 9 years ago

dolfelt commented 9 years ago

Let the discussion begin, @ameech and @shadowhand.

shadowhand commented 9 years ago

As I said on on the other issue, I think the key part is coming up with patterns we can use to support a large REST API.

I think that delegate pattern combined with CQRS enforcement would be a decent way to start structuring the app, while still enforcing a clear separation of concerns. One of the biggest challenges I see is dealing with interactions between different roles and having separate code objects to handle different roles will prevent both command and data leakage. (For example, a lower role seeing data that should only be visible to more privileged roles.)