Topic: delayedjob

Am new to background jobs delayed_job and beanstalk.
In delayed_job we will use initialize and perform methods.
Already have written code in delayedjob initlaize and perform.
Same code how to manger in beanstalk.what are the alternatives for in beanstalk for initialize() and perform ()

Can anybody help me