Optimizing Machine Learning Model Deployment in Snowflake Using External Functions and AWS SageMaker
-
DOI:
https://doi.org/10.67228/30715717/IJDEIC-2021PI5A8YPublished 04-11-2021
Snowflake, AWS SageMaker, Machine Learning Deployment, External Functions, Cloud Data Platform, Model Inference, AWS Lambda, Performance Optimization, Real-time Analytics, Serverless Computing Issue
Section
ArticlesHow to Cite
[1]P. Wilson, “Optimizing Machine Learning Model Deployment in Snowflake Using External Functions and AWS SageMaker”, IJDEIC, vol. 4, no. 1, pp. 01–12, Apr. 2021, doi: 10.67228/30715717/IJDEIC-2021PI5A8Y.Abstract
Deploying machine learning models efficiently within cloud data platforms is critical for enabling real-time, data-driven decision making. Snowflake, a leading cloud data warehouse, provides powerful capabilities for data storage and processing but lacks native tools for hosting and serving complex ML models. This paper presents a novel approach for optimizing machine learning model deployment by integrating Snowflake’s external functions with AWS SageMaker, a managed machine learning service. We describe an architecture where Snowflake invokes SageMaker-hosted models via AWS Lambda-based external functions, enabling seamless, scalable, and secure model inference directly from within SQL queries. The implementation details and optimization techniques to minimize latency and cost are discussed. Experimental evaluations demonstrate significant performance improvements and cost savings, showcasing the feasibility and benefits of this integration. This approach empowers data teams to leverage their existing Snowflake infrastructure while harnessing advanced ML capabilities from SageMaker, facilitating faster and more efficient AI-driven insights.
References
[1] Kleppmann, M. (2017). Designing data-intensive applications: The big ideas behind reliable, scalable, and maintainable systems. O’Reilly Media.
[2] Zaharia, M., Chen, A., Davidson, A., Ghodsi, A., Hong, S. A., Konwinski, A., Murching, S., Nykodym, T., Ogilvie, P., Parkhe, M., Xie, F., & Zumar, C. (2018). Accelerating the machine learning lifecycle with MLflow. IEEE Data Engineering Bulletin, 41(4), 39–45.
[3] Gannon, D. (2018). Cloud services for transfer learning on deep neural networks (Technical Report No. 24). Indiana University. https://www.researchgate.net/publication/323226029_Cloud_Services_for_Transfer_Learning_on_Deep_Neural_Networks
[4] Banerjee, S. S., Athreya, A. P., Kalbarczyk, Z., Lumetta, S., & Iyer, R. K. (2018). A ML-based runtime system for executing dataflow graphs on heterogeneous processors. In Proceedings of the 2018 ACM Symposium on Cloud Computing (p. 533). Association for Computing Machinery. https://doi.org/10.1145/3267809.3275474
[5] Mendler-Dünner, C., Parnell, T., Sarigiannis, D., Ioannou, N., Anghel, A., Ravi, G., Kandasamy, M., & Pozidis, H. (2018). SNaP ML: A hierarchical framework for machine learning. In Advances in Neural Information Processing Systems 31 (NeurIPS 2018).
[6] Marko, K. (2018, January 31). Latest AWS machine learning service takes aim at AI novices. TechTarget. https://www.techtarget.com/searchaws/tip/Latest-AWS-machine-learning-service-takes-aim-at-AI-novices
[7] Amazon Web Services. (2018, August 15). Deploy Amazon SageMaker and a data lake on AWS for predictive data science with new Quick Start. AWS. https://aws.amazon.com/about-aws/whats-new/2018/08/deploy-sagemaker-and-a-data-lake-on-aws-with-new-quick-start/
[8] Nguyen, G., Dlugolinsky, S., Bobák, M., Tran, V., García, Á. L., Heredia, I., Malík, P., & Hluchý, L. (2019). Machine learning and deep learning frameworks and libraries for large-scale data mining: A survey. Artificial Intelligence Review, 52(1), 77–124. https://doi.org/10.1007/s10462-018-09679-z
[9] Dean, J., Corrado, G., Monga, R., Chen, K., Devin, M., Le, Q. V., Mao, M., Ranzato, M., Senior, A., Tucker, P., Yang, K., Ng, A. Y., & Dean, J. (2012). Large scale distributed deep networks. In Proceedings of the 25th International Conference on Neural Information Processing Systems (pp. 1223–1231).
Downloads
How to Cite
[1]P. Wilson, “Optimizing Machine Learning Model Deployment in Snowflake Using External Functions and AWS SageMaker”, IJDEIC, vol. 4, no. 1, pp. 01–12, Apr. 2021, doi: 10.67228/30715717/IJDEIC-2021PI5A8Y.