Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Communication between modules  (Read 6980 times)
joao.saleiro
Newbie
*
Posts: 6


View Profile Email
« 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!

Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print