You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Compile the code. These will use the REDIS_URI environment variable from setEnvironment.sh
106
108
```bash
107
109
mvn clean verify
108
110
```
109
-
* run the consumer
111
+
* run the consumer
112
+
* These scripts use REDIS_URI environment variable for connectivity
113
+
*NOTE:* this use of one hash key for all the keys is needed because LUA only can function on redis objects in the exact same hash slot. Using this type of technique can severely skew the data so is for demo purpose only.
110
114
```bash
115
+
export REDIS_URI=redis://localhost:12000
111
116
./runconsumerLUA.sh
112
117
```
113
-
* run the producer
118
+
* run the producer.
114
119
```bash
115
-
./runproducer.sh
120
+
export REDIS_URI=redis://localhost:12000
121
+
./runproducerSingle.sh
116
122
```
117
123
### Verify the results
118
124
```bash
@@ -126,10 +132,12 @@ The individual redis sets and hashes are the same as above in the simple consume
126
132
* The crdpurge.sh is very handy to efficiently do a "purgeall" of the database contents
127
133
* Can run a consumer against each "region" and both will receive all the messages. The crdb logic will handle de-duplication of the redis objects.
0 commit comments