D
D
Dmitry Belousov2021-03-24 22:07:29
Spring
Dmitry Belousov, 2021-03-24 22:07:29

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

1 answer(s)
O
Orkhan Hasanli, 2021-03-24
@dreven

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 question

Ask a Question

731 491 924 answers to any question