All content on jerakeen.org

Faking a message queue

10 October 2008 in notes
tagged with [lazy] [messages] [programming] [queue]

Right. Here’s an idea I want someone else to build, because I’m too lazy/busy. I want a Stomp interface to mysql.

Let me explain. There are lots of reasons you might want a message queue architecture in your new web application. You want long-running background processes, or you want to fan out changes to lots of users without tying up the web server process. Or you want to make calls to an API somewhere, again without tying up an expensive web server process. It’s a lot easier to build this stuff in from the beginning than to try to work out later which bits of your application flow don’t need to happen before the web page is returned to the user.

At the same time, it’s a tiny new web site. You don’t want to have to run a message queue just yet, so you want to fake it - write tasks into a database table, and have a long-running daemon loop forever, pulling out rows in order and doing them. Almost as good as a real message queue for small volumes of messages, and a lot cheaper. So what I want is a way of doing this that has the same API as a real message queue, so that when you cut over, you don’t have to change any code, everything just gets more responsive. Yay!

Right. Now someone do it. Let me know when you’re done.

disqus comments  

Faking a message queue

Grubered

10 October 2008 in notes
tagged with [gruber] [spike] [traffic]

I don’t normally get much traffic…

http://daringfireball.net/linked/2008/10/08/contacts-and-...

disqus comments  

Grubered

Marked “Hooterdashery” as a favourite on Flickr

10 October 2008 in stream

 

Marked "Hooterdashery" as a favourite on Flickr

Twitter

10 October 2008 in stream
tagged with [coffee] [coworkers]

New twitter: I may have to give up coffee again. Curse my coworkers.

http://twitter.com/jerakeen/statuses/954068096

 

New twitter: I may have to give up coffee again. Curse my coworkers.

MacBook Pro: Distorted video or no video issues

10 October 2008 in links
tagged with [apple] [failure] [hardware] [hardwarefailure] [replacement]

Hey, this is the MBP hardware I have. Wonder if this is the source of my display problems..

http://support.apple.com/kb/TS2377

disqus comments  

MacBook Pro: Distorted video or no video issues

Marked “Bacon Angels” as a favourite on Flickr

10 October 2008 in stream
tagged with [angel] [awards] [bacon] [best] [christmas] [cuisine] [food] [hsa7deck] [meat] [plush] [sappymoosetree] [sew] [softie]

Marked “Bacon Angels” as a favourite on Flickr

http://flickr.com/photos/83679340@N00/295901522

 

Marked "Bacon Angels" as a favourite on Flickr