Ruby Alternative for .NET

I would like to know what is my alternative for the next problem in a window other than a window that will work with ruby ​​on the rails web application.

The scenario is this:

The user activates a deep web crawl of the site, which can take about 15 minutes. I can use ajax to refresh a webpage as often with the results as they happen. I want to send the user a message about the results when the work is completed.

The problem is that I want to move the work of writing the results to the database and send a message to the user from the process so that the user can close the browser and exit.

If I did this on Windows, I would use msmq (message queue) to send the job to a Windows service that will complete the job.

How do I make it from rubies on rails and are there any gems that you would recommend?

I can also upgrade to JRuby, so this can also be considered.

+3
source share
2 answers

A message queue is a response for a web application regardless of language / implementation structure. For Rails, there are several options for message ordering. Delayed Job and Resque are two that seem to be popular these days.

In addition, there are Ruby clients for STOMP and AMQP , which allows you to use many popular message queues, such as ApacheMQ and RabbitMQ .

+1

, , .

0

Source: https://habr.com/ru/post/1765959/


All Articles