Christopher Warner Studies and thoughts, usually in coherent fashion.

7Jan/090

Message Brokers

Sweet so this is cool, when you get to this part:

Assuming your machines database (or the interface too it) can be told to run this script when a modification occurs, you are halfway to completing this project

If you happen to be using Linux you can use inotify; I'm posting this here due to the comments here on this post. ActiveMQ is very easy to get running and it uses STOMP so it's just plain ole text. I'm not sure why this concept is new to so many people. Everyone repeat after me; Cron isn't an appropriate replacement for an event system and you shouldn't try or attempt at using it as one. Really i'd venture to say no one should be using poll() or select() at this point for monitoring the filesystem either.

Freebsd/OSX use kqueue. Here's a great tutorial on using inotify with linux. The opensolaris devs just pointed me to (FEM) libevent; couldn't find anything from google. Here are some good links/bg on that:

Event ports, The Event Completion Framework

About Christopher Warner

Christopher Warner is part genius, part idiot. This makes him well balanced. He's worked on numerous opensource projects with great people and has generally led an eventful and fulfilling life. He hopes to retire an old man in a rocking chair should he be so fortunate.
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

You must be logged in to post a comment.

No trackbacks yet.