Comments (6)
Yes, the Streams API
Here is a sample project I wrote to demonstrate the use of Groups to organize, produce, and consume stream emission from Redis in which a single, unique message is consumed per consume
https://github.com/reselbob/k8sdemos/tree/master/wordstream
from redis.
I have a project coming up in which using Deno/Redis will be perfect. But, I need to make it scale. I need to make it so that when a client subscribes to a Redis topic it receives a unique message from the topic. If multiple instances are picking up the same message, that won't due. Maybe I can do this already using this module in the current version, but I am ignorant as to how to do this. If so, please educate me.
from redis.
We should be able to close this issue once #86 is merged. Cheers, and thanks again for bringing this up!
from redis.
@reselbob Do you talk about Streams API? If so, those apis haven't supported yet. I've never use those api. There are the plan but priority is still low.
from redis.
Hi! #86 (implementation of Redis Streams API) will support this use case. I'll plan to add a test which demonstrates "one unique message per consumer"
from redis.
There are a couple of tests covering this concern in the WIP pull request #86.
test("unique message per consumer", async () => {
and
test("broadcast pattern, all groups read their own version of the stream", async () => {
The broadcast pattern test shows how to accomplish the opposite of what you're asking (fan-out across all groups, useful for multiple services reading the same stream and processing it independently, etc), so it provides a nice contrast to the requested demo in this issue.
from redis.
Related Issues (20)
- BulkNil and execArrayReply breaking xread
- PubSub with binary messages HOT 1
- [feat] keepalive feature
- [feat] automatically reconnect when interrupted
- Bug: xrange failed to parse empty string
- deps: import `cluster-key-slot` and `lodash-es` from esm.sh
- Support for RedisJson - JSON.GET
- Support AbortController in a client HOT 1
- Watch vs tx HOT 1
- Subscribe / psubscribe hangs after calling sub.receive() HOT 1
- `Redis.scan` cursor parameter requires a number
- sendCommand api inconsistency HOT 1
- Property 'set' does not exist on type 'Redis'.deno-ts(2339) HOT 5
- Parallel Request Issue HOT 1
- Subscribe, unsubscribe, resubscribe HOT 4
- feat: Auto-pipelining
- feat: Connection pooling
- Errors on concurrent pipeline invocation HOT 3
- Sentinel Support
- Hang up on auto reconnect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis.