views:

55

answers:

2

I am implementing a contact importer and will be geocoding the contacts that are imported. If a user imports 1000 contacts, geocoding is way too slow. Essentially I would like to start a background process to geocode the contacts after they are imported and somehow report the status to a log.

Does this sound like the best way to do this? If so, can I do this with some simple ruby/rails? I have the javan-whenever gem which is essentially a ruby API for CRON but I would rather this be an immediately spawned background process after importing.

+1  A: 

There are a couple of plugins that can help you do this:

  1. BackgroundDRb
  2. Spawn
Siddhartha Reddy
+2  A: 

There's also Delayed Job.

agregoire