Deploying an MLFlow Remote Server with Docker, S3 and SQL

Deploying an MLFlow Remote Server with Docker, S3 and SQL

MLFlow is an open-source platform for managing your machine learning lifecycle. You can either run MLFlow locally on your system, or host an MLFlow Tracking server, which allows for mutiple people to log models and store them remotely in a model repository for quick deployment/reuse.

In this article, I’ll tell you how to deploy MLFlow on a remote server using Docker, an S3 storage container of your choice Minio or Ceph and SQL SQLite or MySQL.

Read more
Deploying a Spark Model with REST Inference API

Deploying a Spark Model with REST Inference API

Deploying a machine learning model built with Apache Spark isn’t as straight forward as the deployment of a PyTorch model or a TF model. Especially when you’re planning on having a REST API for inference requests. One way of going about it is use MLeap, but that would require modifications to training code, as MLeap relies on it’s own serialization.

The best approach that I’ve found is using Openscoring and PMML (Predictive Model Markup Language). PMML is a an XML based markup language that stores your predictive model and openscoring is used to create the inference REST API. The steps for doing so are as follows:

Read more
Getting Started with Development in Windows

Getting Started with Development in Windows

Microsoft has been doing great stuff for years now, and WSL2 (Windows Subsystem for Linux - 2) is everything that I personally neeeded to feel completely at home as a developer in Windows. WSL2 allows you to run a full fledged Linux kernel with greatly improved IO and support, as compared to WSL1. WSL2 connects flawlessly with a Windows installation of Visual Studio Code and supports Docker natively. In short, your Windows setup would serve you well in your development endeavors.

In this article, I’ll discuss how to get WSL2 up and running on your system along with an integration with - Windows Terminal and Visual Studio Code.

Read more
Deploying a MERN Web-App to Heroku

Deploying a MERN Web-App to Heroku

This post builds upon the guide to developing projects in MERN stack that I posted a while back, you can find it here.

Heroku probably has the best free-tier service out there for hosting MERN stack web applications. Though it requires certain non-intuitive settings before you can go about deploying your app. This article will guide you through the process of deploying your web-app on Heroku.

  • We would be deploying the server and the frontend on the same deployment instance.
  • The database being used here is MongoDB Atlas.
  • This deployment uses npm instead of yarn for deployment.
Read more
Handling Global Variables in Flask

Handling Global Variables in Flask

The usage of the global keyword in pythonic development is discouraged, and for good reasons. It often becomes troublesome to keep track of global variable usage and assignment as the code file grows, and is almost impossible in very large code files. This creates issues in debugging, reading and understanding the functionality of different code blocks and understanding the workflow of the application under consideration.

Read more
Getting Started with MERN

Getting Started with MERN

MERN Stack implies the usage of the following technologies for full stack development:

  • MongoDB
  • ExpressJS
  • ReactJS
  • NodeJS

In this post, we’ll go through the basics and logistics of getting started with MERN development. I’ve limited the content of this post to the bare essentials, while learning MERN development from FreeCodeCamp. Resources for where are :

Read more
Guide to Deploying a Flask app on Heroku

Guide to Deploying a Flask app on Heroku

Heroku is a popular application deployment platform with a functional free tier of services, and Flask is populalar application development micro-framework in Python. The Heroku-Flask environment is one of the quickest ways to deploy a small application for testing, yet sadly, I did not find a single tutorial that covered all aspects of the deployment process without leaving room for a whole bunch of errors.

Hence, this guide.

Read more