Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thenetcircle/dino
Distributed notifications using websockets
https://github.com/thenetcircle/dino
distributed-notifications flask notifications socket-io
Last synced: 24 days ago
JSON representation
Distributed notifications using websockets
- Host: GitHub
- URL: https://github.com/thenetcircle/dino
- Owner: thenetcircle
- License: apache-2.0
- Created: 2016-10-04T05:40:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T05:00:07.000Z (5 months ago)
- Last Synced: 2024-08-09T13:17:26.071Z (5 months ago)
- Topics: distributed-notifications, flask, notifications, socket-io
- Language: Python
- Size: 66.1 MB
- Stars: 137
- Watchers: 10
- Forks: 6
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
README
# Dino
[![Build Status](https://travis-ci.org/thenetcircle/dino.svg?branch=master)](https://travis-ci.org/thenetcircle/dino)
[![coverage](https://codecov.io/gh/thenetcircle/dino/branch/master/graph/badge.svg)](https://codecov.io/gh/thenetcircle/dino)
[![Code Climate](https://codeclimate.com/github/thenetcircle/dino/badges/gpa.svg)](https://codeclimate.com/github/thenetcircle/dino)
[![License](https://img.shields.io/github/license/thenetcircle/dino.svg)](LICENSE)Dino is a distributed notification service intended to push events to groups of clients. Example use cases are chat
server, real-time notifications for websites, push notifications for mobile apps, multi-player browser games, and more.
Dino is un-opinionated and any kind of events can be sent, meaning Dino only acts as the router of events between
clients.Any number of nodes can be started on different machines or same machine on different port. Flask will handle connection
routing using either Redis or RabbitMQ as a message queue internally. An nginx reverse proxy needs to sit in-front of
all these nodes with sticky sessions (`ip_hash`). Fail-over can be configured in nginx for high availability.Documentation is hosed on [GitHub Pages](https://thenetcircle.github.io/dino/).
[![Dino Architecture](https://raw.githubusercontent.com/thenetcircle/dino/master/docs/dino-arch.png)](https://raw.githubusercontent.com/thenetcircle/dino/master/docs/dino-arch.svg)
## Monitoring
Loads of metrics is by default being collected by Dino and sent to `statsd`. To enable `statsd` monitoring, configure the `statsd` block in `dino.yaml` to [point to your `statsd` instance](https://thenetcircle.github.io/dino/md/installation/#monitoring):
[![Dino Grafana](https://raw.githubusercontent.com/thenetcircle/dino/master/docs/dino-grafana.png)](https://raw.githubusercontent.com/thenetcircle/dino/master/docs/dino-grafana.png)
## Future features
* The socket.io flask cluster only acts as the router of events,
* Flask nodes sends events to kafka cluster,
* Kafka cluster enriches streams with a timestamp and sequence id,
* Flask nodes subscribe on certain streams, such as events to be broadcasted (e.g. messages in a chat room),
* For other streams such as updating acls, managing rooms, user info, another application will subscribe and store maybe in a relational db,
* An application will subscribe to the e.g. message streams to store data in cassandra.