panjf2000 / gnet

🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go.
https://gnet.host
Apache License 2.0
9.7k stars 1.04k forks source link

使用gnet 做物联网长连接网关,是否合适? #403

Closed ZhangChengJi closed 2 years ago

ZhangChengJi commented 2 years ago

需求是每个设备连接到网关后,网关需要根据每个设备的连接定期1分钟对设备进行下发消息,获取设备最新数据,类似于modbus 通信

ZhangChengJi commented 2 years ago

时间轮定时任务存储 image

定时发送 image

panjf2000 commented 2 years ago

能实现你的需求就合适。