Rails 2.3.X - Execute code after request was rendered and returned? -


is possible in rails 2.3.x start new chain of commands after request has been rendered , returned requestor?

i need feature in order work asynchronous api on other side: expect response request , after response done rails app should send new http-request them (post api)...

what possibilities here? there after_render hook? should make use of threads or background tasks , how done?

i glad solutions :-)

kind regards

update: return-code (eg. 200) should sent requestor before other calls executed

the easiest thing spawn new thread. assuming lightweight call , don't need advanced error logging or retry logic.

thread.new   puts  "call api" end 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -