machine learning web application architecture