You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems command line wizard doesn't on include a option to have websockets configured in the project If I select the application type to be a micro service.
don't seem to care for this change and infact overwrites the .yo-rc.json by changing it back to
"websocket": false
Motivation for or Use Case
I find it quite useful to have a microservice communicate in websockets. I would tinker the app that is generated by manually adding the support it's messy.
Reproduce the error
Generate a microservice app and observe that wizard don't ask to include web sockets (in its option list), nor give the option to include it from market place.
Try to modify .yo-rc.json file as stated above and run 'yo jhipster'
Related issues
N/A
Suggest a Fix
Include the option to have websockets in microservices project.
lets not overwrite .yo-rc.json
JHipster Version(s)
v 4.14.1
JHipster configuration
Using JHipster version installed locally in current project's node_modules
Executing jhipster:info
Options:
Yes this is on purpose, as our gateway does not support Websockets yet, as this is a limitation with Zuul 1. So we're not prompting for an option that would not make sense.
What people usually do is use Kafka between the gateway and the microservices, and then have only the gateway do websockets. It's much more stable (otherwise you need to chain the open sockets on several servers), and much more scalable (Kafka scales much better than a Websocket server), so it's also probably a better approach.
In the future, I sure hope we can propose this option, of course.
@jdubois I think we can do websockets for microservices on our gateway in a way spring cloud gateway supports websockets. It filter out the websocket connection req, and then passes the connection to the underlying microservices. I'm not sure about it but can take a look into the spring cloud gateway
Overview of the issue
It seems command line wizard doesn't on include a option to have websockets configured in the project If I select the application type to be a micro service.
According to "https://stackoverflow.com/questions/40076535/jhipster-can-i-add-websocket-support-to-my-existing-generated-application"
I could should be able to change the .yo-rc.json by adding
and get it done. how ever,
don't seem to care for this change and infact overwrites the .yo-rc.json by changing it back to
Motivation for or Use Case
I find it quite useful to have a microservice communicate in websockets. I would tinker the app that is generated by manually adding the support it's messy.
Reproduce the error
Related issues
N/A
Suggest a Fix
JHipster Version(s)
v 4.14.1
JHipster configuration
Using JHipster version installed locally in current project's node_modules
Executing jhipster:info
Options:
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
git version 2.15.1.windows.2
node: v8.10.0
npm: 5.6.0
yeoman: 2.0.1
yarn: 1.5.1
Congratulations, JHipster execution is complete!
Browsers and Operating System
Windows 10
The text was updated successfully, but these errors were encountered: