Giter Club home page Giter Club logo

Comments (11)

avdev4j avatar avdev4j commented on June 19, 2024 1

@danielpetisme @joewhite101
I suggest to remove this feature from the 1.0.0 milestone. The effort needed seems to be too high.

For me, it makes sens to have a first release without reactive programming and define a plan for next version, adding this feature step by step.

WDYT?

from generator-jhipster-quarkus.

vivekmore avatar vivekmore commented on June 19, 2024 1

Thank you 👍🏻
These are great advice and starter points!

I'll start looking at the blueprint code and Quarkus.

I feel I should also declare that, I'm mostly familiar with JHipster generator code and Spring and am new to Quarkus framework.

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

I can do this.

from generator-jhipster-quarkus.

 avatar commented on June 19, 2024

The jhister cli already provides a reactive option.. we have only to add related templates for the generic app (for data layer we have to refer to the other issues)

from generator-jhipster-quarkus.

danielpetisme avatar danielpetisme commented on June 19, 2024

You right, is 100% templates.

Couple of pointers:
https://quarkus.io/guides/reactive-routes
https://quarkus.io/guides/reactive-sql-clients

Quarkus "reactivity" relies on Vert.x but there is a "callback-free" API for the Web layer so I propose to focus on this one first.

Ping me if you need help, I have couple of contacts.

from generator-jhipster-quarkus.

danielpetisme avatar danielpetisme commented on June 19, 2024

Moving to reactive is a major step.
Where web and service are quite easy to migrate, data is way more tricky.
As for now, Quarkus does not provide a "reactive" ORM. This means for the application developer to write the CRUD SQL statements manually and for a code generator like JHipster... well to actually generate those queries (which is basically the job of the ORM 🤔 ).

You get my +1 to postpone reactive to a post-1.0 realease. IMHO, concerning database access we should definitively wait for a native support from Quarkus or give a very high bounty.

from generator-jhipster-quarkus.

avdev4j avatar avdev4j commented on June 19, 2024

I'm totally aligned with that, let's remove from 1.0.0.

from generator-jhipster-quarkus.

vivekmore avatar vivekmore commented on June 19, 2024

Interested in working on this

from generator-jhipster-quarkus.

avdev4j avatar avdev4j commented on June 19, 2024

feel free @vivekmore
I think @danielpetisme already prepare the field by creating partials. Anyway, we should avoid the mess we have on the official JHipster project mixing reactive and not in the same templates (as most as possible).

from generator-jhipster-quarkus.

vivekmore avatar vivekmore commented on June 19, 2024

Thanks @avdev4j
I just wanted to make sure someone isn't already working on it.

In addition to the partials, could you share any information that could help me get started on this?

from generator-jhipster-quarkus.

danielpetisme avatar danielpetisme commented on June 19, 2024

Hi,

I started a long time ago but I crash my machine and lost the code (yes it happens in real life...).
Anycase, feel free to progress on this one.

A couple of advice:
1- isolate the imperative and reactive code in separate partials. I would recommend to isolate in a per method granularity (like list_imperative.ejs and list_reactive.ejs it's way easier to debug.

2- For now, do not try to have ordered imports, let the first prettier Java execution trigger at the code generation handle that for you

3- When using mutiny, queries are composable. I would suggest to made small human-readable queries and then compose them. JHipster Spring reactive tend to have a huge block that is hard to troubleshoot, please break down in smaller blocks.

4- Mutiny has no Uni implicit null filtering. If you want to prevent NPE, you need to eagerly filter the null value and throw the exception to fail fast.

Let me know if you need more guidance, I would do my best to help you.

from generator-jhipster-quarkus.

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.