Java + NodeJS communicating via socket: Bad Idea?

后端 未结 6 1935
生来不讨喜
生来不讨喜 2020-12-23 18:50

I like some features of NodeJS, particularly JQuerification, websocket compatibility via socket.io, view and css engines that I cannot use with JSP (and of course, asynchron

6条回答
  •  暖寄归人
    2020-12-23 19:02

    I think nodejs is great for first layer where we work on IO handling jobs.

    The second layer could be a broker like rabbitmq. The last layer is your business logic which is implemented in Java. So I suggest to have a look at

    my approach which is a kind of hub-spoke architecture:

    https://github.com/farshad-nsh/nodejs-rabbitmq-Java

    Using this approach you can appreciate nodejs and java world simultaneously and utilize the bests of both worlds in a distributed software.

提交回复
热议问题