What architectural patterns would you use to integrate a machine learning model into an existing web application?