★ wanayoo — archive 1999 https://github.com/cpp-redis/cpp_redis/projects/1Nouvelle recherche | Portail wanayoo
Skip to content

Redis Streams

  
3

To do

0

In progress

0

Needs review

0

Reviewer approved

0

Done

This project doesn’t have any columns or cards.

Menu

Redis Streams #1

  
Updated Jan 21, 2019
Provide a high performance thread dispatcher for Redis streams following the patterns introduced in the official documention.

Provide a high performance thread dispatcher for Redis streams following the patterns introduced in the official documention.

WHILE true
    entries = XREADGROUP $GroupName $ConsumerName BLOCK 2000 COUNT 10 STREAMS mystream >
    if entries == nil
        puts "Timeout... try again"
        CONTINUE
    end

    FOREACH entries AS stream_entries
        FOREACH stream_entries as message
            process_message(message.id,message.fields)

            # ACK the message as processed
            XACK mystream $GroupName message.id
        END
    END
END

Activity

    Loading activity

Archived cards

Loading archived cards…

You can’t perform that action at this time.