rest vs rpc

when to use which ? what's your preference ?