Observer pattern w/ cfthread?

10 views
Skip to first unread message

Henry Ho

unread,
Dec 10, 2009, 5:42:41 PM12/10/09
to Object-Oriented Programming in ColdFusion
Thinking of implementing Observer pattern, and call the listener async
using cfthread, do u think that's a good idea? Any potential problems?

Mark Mandel

unread,
Dec 10, 2009, 5:44:50 PM12/10/09
to coldfu...@googlegroups.com
It Depends.

Transfer does this with discarding objects, but its not as important there if discards don't happen real time... (and it also does more cache sync later on).

So it becomes a question of whether or not synchronous behaviour is required for your given context.

Mark


On Fri, Dec 11, 2009 at 9:42 AM, Henry Ho <henry...@gmail.com> wrote:
Thinking of implementing Observer pattern, and call the listener async
using cfthread, do u think that's a good idea?  Any potential problems?

--

You received this message because you are subscribed to the Google Groups "Object-Oriented Programming in ColdFusion" group.
To post to this group, send email to coldfu...@googlegroups.com.
To unsubscribe from this group, send email to coldfusionoo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/coldfusionoo?hl=en.





--
E: mark....@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

Sean Corfield

unread,
Dec 11, 2009, 1:07:28 AM12/11/09
to coldfu...@googlegroups.com
On Thu, Dec 10, 2009 at 2:42 PM, Henry Ho <henry...@gmail.com> wrote:
> Thinking of implementing Observer pattern, and call the listener async
> using cfthread, do u think that's a good idea?  Any potential problems?

This is exactly what my Edmund framework does (well, it allows both
sync and async listeners). Feel free to download it and have a look.
It even works on multiple CFML engines (which have different
implementations of cfthread!).

http://edmund.riaforge.org
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
Reply all
Reply to author
Forward
0 new messages