Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 857587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:25:19+00:00 2026-05-15T08:25:19+00:00

I have a Rails app whose major part is to query another web-service using

  • 0

I have a Rails app whose major part is to query another web-service using ActiveResource and show the results to the users. But it uses the database for other features like user-login , reviews comments etc.
When the mysql database goes down , the whole app goes down. In such cases i want have atleast the part which doesnt require the database. (the one which uses ActiveResource and get the results from the webservice) be functional. as it is the major thing for my Rails app.

What are the ways i can accomplish this. ?
To start the app without db i googled , where i got to know i should exclude ActiveRecod from the list of frameworks in the environment.rb file. But it wouldnt start cos there were so many reference the database all through my app.

so could i make a version of the app which doesnt require db and route the request to this version when ever the db goes down?

or

Is there anyway to just disable the database accessing part and make the webservice part running. when the database goes down?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T08:25:20+00:00Added an answer on May 15, 2026 at 8:25 am

    you can bind your full app at port, say, 4000, and your web-service-only app at port 4001, and then put some kind of reverse proxy before them (usually on port 80). nginx or haproxy.

    Both nginx & haproxy have options like ‘server pools’, so it will first try port 4000, and if it’s down then it will try next 4001.

    Also proxies can be easily configured to always route specified URI paths to port 4001, and all other to 4000.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.