My Rails web app has dozens of methods from making calls to an API and processing query result. These methods have the following structure:
def method_one batc
You should check out Sidekiq.
RailsCasts episode about Sidekiq.