Git Product home page Git Product logo

Comments (4)

albamig avatar albamig commented on June 18, 2024

In our daily @garciparedes has pointed out that creating the database on microservices' startup means giving them permission to create databases but also to delete them. This might create problems since a microservice might delete others databases.

from minos-cli.

albamig avatar albamig commented on June 18, 2024

Maybe just giving creation permission to every microservice might do the trick?

Another options, as we've discussed, is to create databases from an admin microservice or panel.

Any further ideas? @Clariteia/core-devs 🤔

from minos-cli.

garciparedes avatar garciparedes commented on June 18, 2024

Hi @albamig, I agree with you in the sense that having to create databases manually is an awful task, and even more if it requires restarting the database container (like in the case of our docker-compose.yml examples).

My proposal here is to have an outer configuration layer with that responsibility (as it's not only a microservice setup, but an environment one). Maybe that tool could be able to manage both database creations and also the roles to access them. Thinking about that, I'm getting another interesting use cases for this management tool such as key generation for secure connections among microservices and so on. I think this kind of tasks could fit within the minos-cli package. 🙂

from minos-cli.

garciparedes avatar garciparedes commented on June 18, 2024

According to the lasts decisions related with this topic (the database creation process should be performed by the microservice generator), I'll proceed transferring to the https://github.com/Clariteia/minos repository

from minos-cli.

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.