Hi, My rails app exposes REST SERVICES, when the server is down for any reason, server upgrade or a unexpected crash. The REST requests coming from the clients should be logged/captured so that we can insert the data after the server is running. Any idea? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Nov 11, 9:40 am, "Hemanth K." <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > My rails app exposes REST SERVICES, when the server is down for any > reason, > server upgrade or a unexpected crash. > The REST requests coming from the clients should be logged/captured so > that we can insert the data after the server is running. > > Any idea?If the app is not running, what do you propose will listen for the REST requests and log them? You''ll need some type of app that runs when your rails app is down. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, I really don''t understand what you need. If your Rails app can''t respond it is because there''s some problem in your server (apache, db, etc). It''s much better if you use a VIP in front of your infra and him will distribute the request. If anyone down, other take your place. Just answer your question, you can create an healthcheck url. Then, another app (REST app) listen this and when your RAILS App come down, it make something (start a job; change a DNS, etc) Att Andre Fonseca -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.