Git Product home page Git Product logo

Comments (13)

edeandrea avatar edeandrea commented on May 25, 2024 3

Maybe the fight service makes the most sense/is the least invasive?

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024 1

Awesome! Thanks for taking an interest @Jenriksen!

@agoncal / @cescoffier thoughts?

from quarkus-super-heroes.

cescoffier avatar cescoffier commented on May 25, 2024 1

I would go for a noSQL DB. Mongo is fine, Redis might be interesting too.

Mongo is closer to what we did in the other microservices (we have a Panache layer). So, I would go mongo.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024

We certainly could. It would have an effect on running the system via docker compose though. Right now only 1 DB instance is started and 3 schemas are created. That would have to change.

from quarkus-super-heroes.

agoncal avatar agoncal commented on May 25, 2024

Or maybe have a simpler setup when using docker compose (only one instance of Postgres, as it is now) and a more complex one when doing K8s ?

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024

But then the apps would have to have each of the extensions. Isn't that a Quarkus anti-pattern?

By anti-pattern I mean it would be ok to have more than one datasource extension present if the app communicated with more than 1 datasource, but to switch datasource types between environments? Some of the datasource config is fixed at build time.

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024

BTW I'm not against the idea, just playing devil's advocate and thinking out loud about the repercussions.

from quarkus-super-heroes.

agoncal avatar agoncal commented on May 25, 2024

You're right. We could use Quarkus profiles but that could be cumbersome. I'll give it a try and submit a PR is I come up with something that ends up easy to run on docker compose and no too difficult on K8s

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024

Let me know if you have any questions about the setup and how the k8s/docker compose files are generated. I tried to be detailed in the documentation, but if something doesn't make sense or the documentation needs to be updated I'm happy to modify the docs (or take PRs :) ).

from quarkus-super-heroes.

Jenriksen avatar Jenriksen commented on May 25, 2024

Looking at eShopOnContainers project from Microsoft might give some ideas, they have implemented a full set of microservices with different databases as well (I believe their older versions of the repo used an even wider range of different db)

from quarkus-super-heroes.

edeandrea avatar edeandrea commented on May 25, 2024

I was thinking about Mongo and/or Cassandra? Although Cassandra doesn't yet have a Dev Service (see datastax/cassandra-quarkus#199) so I'd be hesitant to use it.

from quarkus-super-heroes.

Jenriksen avatar Jenriksen commented on May 25, 2024

from quarkus-super-heroes.

agoncal avatar agoncal commented on May 25, 2024

I like the idea of having several types of databases, APIs and so on. As @edeandrea mentioned, MongoDB has DevServices (which makes lives easier in dev). So, if Cassandra does not have DevServices (yet?), Mongo is a good choice

from quarkus-super-heroes.

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.