So I am building a web app that uses a Ruby on Rails frontend and a Java backend. So basically when a user logs into the website I want a list of all the transactional data history for that user to be displayed on the screen.
The way I need to do this(for various reasons that I wont go in to) is to have code on the Ruby layer send a message(using RabbitMQ, packaged as a JSON object) to a queue and this message will be taken from the queue by code in the Java layer.
The Java layer then needs to send its response(the transactional data history, packaged as a JSON object) to another queue which code in my Ruby layer will consume and then display this on the browser.
So this request/response cycle needs to be async my consumer code on the Ruby layer also needs to know what client to display the details to, depending on the message it takes.
Can this be done on rails? Thanks.
Aucun commentaire:
Enregistrer un commentaire