Answer the question
In order to leave comments, you need to log in
What do you need to make a chat in spring?
It is necessary to make the chat not a group one, but tables person to person could communicate. At what one person has several chats. I don’t know where to look, in terms of what is needed so that a message comes to the client side (React js) immediately. back to spring. In principle, I understood the structure of the database, I did not understand only how to show a new message to two clients at once.
Answer the question
In order to leave comments, you need to log in
Well, if you need a simple chat, you can use Spring Websockets
Here, this article describes in detail how to implement this:
https://habr.com/en/company/otus/blog/516702/
And then you can look towards RabbitMQ
https ://spring.io/guides/gs/messaging-rabbitmq/
https://habr.com/ru/company/otus/blog/500936/
https://habr.com/ru/post/262069/
or ActiveMQ
activemq.apache.org/spring-support.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question