nikonyrh / chat-clj

A simple experiment on core.async and Redis pub/sub patterns.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chat-clj

A simple experiment on core.async and Redis pub/sub patterns. Messages are published into a single Redis key, but /list command creates a short-lived user-specific subscription to which other clients announce their presence.

This starts a separate process for 3 test users, and uses a local Redis instance:

echo user1 user2 user3 | xargs -P0 -n1 java -jar target/chat-clj-0.0.1-SNAPSHOT-standalone.jar 127.0.0.1:6379

screenshot1

About

A simple experiment on core.async and Redis pub/sub patterns.

License:Apache License 2.0


Languages

Language:Clojure 100.0%