-
Notifications
You must be signed in to change notification settings - Fork 9
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
XReadGroup can't listen event from other languange, even from redis-cli #44
Comments
@dhymasriyanto hello. it would be best if you could test this out with different groups and see if the outcome changes. the other thing to consider is that this package follows its own format of a message and it wont process message that wont match that format (it expects the Stream message to have at least |
Okay, thanks in advance, but sorry I know that if we listen with groups and consumers, having the same group, with different consumers won't get the message for both. So, in that GIF, I'm trying to send it twice, the first message will be listened to by the JavaScript listener, and the second one is supposed to be listened to by Laravel Stream. This GIF below, I'm trying to send it from JS, which will send message (with the And GIF below I'm try to send from Laravel Event, which are all listener works. |
I try to test with different group, but laravel listener still not respond anything |
@dhymasriyanto this looks for me like a format mismatch. The second gif proves that the message emitted by the package itself comply with its listener, but that message emitted by you in first gif does not.
so, from what I see based on your gifs (would be much better to paste text samples next time, hard to get stuff out of moving gifs :D), is that you emit is something like this:
while it should be:
The main content of the Stream should be inside "data" key. I must admit that streamer should warn in some way that it received message without the "data" in it, instead of simply ignoring it. However it does log it inside
so keep an eye on that file if something bad happens. |
So, I'm building a microservice app, then I use Laravel Streamer for my service's data transfer communication. Each service use different programming languange, such as PHP (Laravel), JavaScript (ExpressJS), Java (SpringBoot). When I try to listen data for same framework (in this case using Laravel with Laravel Streamer), the listener works. But when I try to publish a message from other service (JavaScript), the listener doesn't work. So I try to figure out with publish the data from redis-cli, but it's still same. Even the group name, and the stream name is correct. Is there a special way to use it? Cause I am new at this.
The text was updated successfully, but these errors were encountered: