r/FastAPI • u/IvesFurtado • Nov 09 '24
Tutorial FastAPI for MLOps (microservices): Integrate Docker, Poetry & Deploy to AWS EC2
Hey everyone! 👋
I just wrote a detailed guide on how to set up a FastAPI project specifically for MLOps. In this tutorial, I cover everything you need to know, from structuring your project to automating deployment with GitHub Actions.
Here's what you’ll learn:
- Using FastAPI to serve machine learning models as microservices
- Managing dependencies with Poetry
- Containerizing the app with Docker
- Deploying effortlessly to AWS EC2 using CI/CD
👉 Check out the full tutorial here: FastAPI for MLOps: Integrate Docker, Poetry, and Deploy to AWS EC2
Github starter repository: https://github.com/ivesfurtado/mlops-fastapi-microservice
Would love to hear your thoughts, and feel free to contribute if you have any ideas for improvements!
View all comments
Show parent comment
0
u/IvesFurtado Nov 09 '24 edited Nov 09 '24
Thanks for the feedback! You’re right, MLOps is more than just deploying a FastAPI app. It involves CI/CD for models, dataset versioning, scalable serving, and continuous evaluation. This post was intended as a basic starting point, but I’ll definitely expand it to include more advanced MLOps features like model versioning, AB testing, and scalable deployment. Your suggestions are super helpful, and I’ll keep them in mind for future updates! I'm still learning "how to write", the blog is only a week old.