Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): fix response to other node #240

Merged
merged 45 commits into from
Nov 22, 2021

Conversation

samuelmasse
Copy link
Contributor

This PR fixes a situation in converse or websocket where sending a response message to a node other than the node where the converse request was made or where the websocket is connected would result in the response being lost.

Closes DEV-1977

@linear
Copy link

linear bot commented Nov 11, 2021

DEV-1977 Ensure that botpress sending answer to other messaging server still works

If messaging node 1 is connected to a socket, and it sends a message to a runtime, and this runtime answers on messaging node 2, this node can't send the message to the socket connected on node 1. So we need to have pub sub with redis to solve this.

@samuelmasse samuelmasse marked this pull request as ready for review November 12, 2021 17:12
Copy link
Contributor

@laurentlp laurentlp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work as usual. I think there is some refactor needed, but it could be done in another PR.

packages/server/src/converse/service.ts Outdated Show resolved Hide resolved
packages/server/src/distributed/base/subservice.ts Outdated Show resolved Hide resolved
packages/server/src/distributed/local/subservice.ts Outdated Show resolved Hide resolved
packages/server/src/distributed/service.ts Outdated Show resolved Hide resolved
packages/server/src/stream/service.ts Show resolved Hide resolved
@samuelmasse samuelmasse changed the base branch from master to sm-engine-2 November 18, 2021 22:31
packages/server/src/stream/dispatch.ts Outdated Show resolved Hide resolved
Base automatically changed from sm-engine-2 to master November 22, 2021 21:10
@samuelmasse samuelmasse merged commit a54b554 into master Nov 22, 2021
@samuelmasse samuelmasse deleted the sm-fix-response-to-other-node branch November 22, 2021 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants