Building Scalable AI Applications: Architecture Patterns