PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: joao.saleiro on August 18, 2008, 06:53:39



Title: Communication between modules
Post by: joao.saleiro on August 18, 2008, 06:53:39
Hi,

I am trying to understand how pipes can solve my problem. I have read the available docs, but I still don't feel very comfortable with it to figure out how to use it on this case.

I have multicore application where I need to share some data between cores. Considering this minimalistic example:
- a core that is responsible for managing "categories";
- several cores that need data from the core "categories";

I can have the following scenarios:

- The user opens the "categories manager", and then the categories are loaded from the server. If the user moves to another module that needs those categories, that module should communicate with the "categories core" and ask for them;
- The user goes directly to another core without passing by the categories manager - so categories are not yet loaded. That core will need categories, so it has to communicate with the core "categories" that should load the data, and then retrieve it;

It seems that pipes is the solution to my problem, but I'm having some difficulties figuring out the best architecture to solve my problem using pipes. Can you give a brief explanation on the best practices for solving this case?

Thanks!



Title: Re: Communication between modules
Post by: puremvc on August 23, 2008, 11:47:59
Here are some recent thoughts about this:
http://forums.puremvc.org/index.php?topic=643.msg2865#msg2865

-=Cliff>