Skip to content

unee-t/shownotification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Originally this project set out to consume AWS SQS messages. This approach doesn't work since you can't have more than one listener on a SQS queue. Please see https://www.youtube.com/watch?v=bKFZVNzloiA for more details on the topic.

I've since accepted a contribution from this SO answer which forms a better / simpler example of how you could do it.

EventSource Server

Server Sent Events (SSE) allows clients to receive notifications.

Build and Setup Network

make
make network

Start Cluster of Two Linked Systems

You may set this using service etcd discovery.

PORT=9000 NEIGHBORS=192.168.0.1:9001 make start
PORT=9001 NEIGHBORS=192.168.0.1:9000 make start

You can add more neighbors with a , comma delimiter.