Mathematica is a fantastic platform for Mathematical analysis, physics, quantitative finance and most realms of scientific work.
However, it doesn't serve well for general purpose programming, in particular web apps.
If I have some code running in Mathematica doing some analysis and a web app written E.G. Ruby-on-Rails, Django etc what are some methods to synchronize and manage the interactions between Mathematica and the web fronted?
An example might be, a Django based dating site, which the Mathematica code needs to do some calculations to find your true love, and write results back into a database. Beyond a cron job running Mathematica every 10 minutes I can't see a straightforward way to do this.
How can one make Mathematica play well in a heterogeneous environment?