Skip to content

subscribe is not realtime. it's always 1 second delay, and stream same message if delay decreased #10

@yannice92

Description

@yannice92

when I check \Asiries335\redisSteamPhp\Stream::listen it's hardcoded delay 1 second, and when I change with 0 second, event it's always show realtime, but it will double event when running multiple service in one group.
For Example: I created Order Service with 2 replicas and listen to 1 channel and that service it's assigned to 1 consumer group with name orderGroup. When the event send to redis and Order Service subscribe to that channel, 2 replicas always get same message. please check the image. First Image it's 1st replica, Second Image it's 2nd replica

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions