https://github.com/flowerwrong/anychat
https://github.com/flowerwrong/anychat
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/flowerwrong/anychat
- Owner: FlowerWrong
- Created: 2019-04-29T03:58:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T14:24:04.000Z (over 2 years ago)
- Last Synced: 2025-01-11T11:15:35.879Z (5 months ago)
- Language: Go
- Size: 6.11 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# new chat
* [chat references](https://github.com/FlowerWrong/erlim/blob/master/api/chat.md#chat-api)
## 技术栈
* [postgresql 11.2+](https://www.postgresql.org/)
* [rails 6](https://rubyonrails.org/): db and test only
* [gorilla/websocket](https://github.com/gorilla/websocket)
* [go-micro](https://micro.mu/)
* [opencensus](https://github.com/census-instrumentation/opencensus-go): A stats collection and distributed tracing framework
* [uber zap](https://github.com/uber-go/zap) + [lumberjack](https://github.com/natefinch/lumberjack)
* [otto](https://github.com/robertkrimen/otto): a javascript interpreter
* [blevesearch/bleve](https://github.com/blevesearch/bleve)
* [xormplus](https://github.com/xormplus/xorm)
* [viper](https://github.com/spf13/viper)
* [gin](https://github.com/gin-gonic/gin)
* [nats](https://nats.io/documentation/)
* [jaeger](https://github.com/jaegertracing/jaeger)
* [sonyflake](https://github.com/sony/sonyflake): distributed unique ID generator## Design
用户列表统一存储在redis,key为user.UUID,value为node host:port,即所在服务器实例,走rpc
## TODO
* [ ] cluster
* [ ] pub/sub based on redis
* [ ] grpc
* [ ] session reconnectable
* [ ] registration center: consul
* [ ] configuration center
* [ ] hot restart