Giter Site home page Giter Site logo

Comments (3)

justinanderson avatar justinanderson commented on July 22, 2024

My plan here is to split ModelDB into multiple Docker images. Dockerized projects typically run one service per image, so services can be started/stopped/upgraded at the container level rather than having to shell into them and keep track of what's changed from the image.

I was thinking four images:

  1. Official MongoDB
  2. Backend Java app and SQLite
  3. Frontend NodeJS app
  4. Pre-built ModelDB client libraries

The current monolithic image on Docker Hub is 5 GB. A server made of split images would only need about 2.5 GB: MongoDB (0.3 GB), backend (1.3 GB), and frontend (0.9 GB).

We could shrink the total another 0.5 GB by removing the Thrift compiler from images after it has served its purpose, but then incremental dev builds would take a long time. That's something to think about for production builds if we want to be aggressive about image sizes.

I'll include a Docker Compose file so end users only need to run docker-compose up to get a server going.

Thoughts?

from modeldb.

 avatar commented on July 22, 2024

I strongly support going the microservices route as you've suggested. At Scotiabank we were already talking about splitting up the repo into frontend, server, and client containers to achieve our aims - separating out MongoDB makes sense as well.

from modeldb.

mpvartak avatar mpvartak commented on July 22, 2024

@shubhamchopra @skadambi thoughts?

from modeldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.