We want to launch a new open source project that will present as a Desktop app. We want to use Java Spring for business logic (backend) and Flutter to build the GUI (As we may create mobile and web applications).
The idea is that user has the choice to use its Flutter desktop app as standalone (business logic processed locally with java spring) or to connect its desktop app to an external server java spring that we provide (exactly the same processing features, just computation are done on OUR server).
Our initial idea is to just embed a Spring web server in the desktop app, that will launch and be used if user doesn't want to use our external server.
I feel this approach is overkilled. Why launching a web server locally just for 1 consumer (the desktop app itself)?
There should be a better approach... I made my researches but I found nothing, most solutions are to use front and back end solutions on same language (i.e, Flutter only application with business logic, or using Java Spring for backend and JavaFX for frontend) but we definitely want to avoid that and use both Flutter and Java Spring.
Maybe I am not addressing the right question. Does anyone can help me to achieve this goal or to better formulate my issue?
Many thanks !