Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

How Do I Update Rails Servers from another Rails Server?

Servers • Asked by jundalisay
I have a Rails Server A in Country A, Rails Server B in Country B, and Rails Server C in Country C, all using Devise and Omniauth.

A user can sign up in all 3 servers. But when he logs in to Server A, that server should update Server B and C, updating the user's record there that he is currently logged into Server A. How can I do this in Rails? I've heard that this process requires interprocess communication and RPC and that RabbitMQ could be used for it. 

What do I need to implement this feature?


Rather than doing something complicated with RPC and all that, why not just have Server A make a POST request to an API on Server B and C? You could simply POST the same data changed over to those and make the same update. That's what I would probably do.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.