views:

290

answers:

1

I have been trying to figure out a solution but nothing has really presented itself to work. I am building a system that sends out emails (among other things), and I have been trying to figure out a way to have the queuing of messages work. I would like to provide the user a (somewhat) accurate count of the messages sent so far. I was thinking of having the user facing page, and then another page that would start the sending process and continually output (no like a refresh, just kind of a real-time output) and then parse that and make the information more user-friendly. I'm open to any suggestions on how I could do this, and thanks for any ideas ahead of time!

A: 

See this question about message queues in rails.

Essentially, choose a messaging queue and interogate it for the status once in a while with a jquery ajax timer or something.

Sam Saffron
Thanks Sam! Do you know how I would go about getting the status?
@Alex, it depends on the framework you use ... they all do it differently make sure you read the article by topfunky in the linked question
Sam Saffron