3 ms·
I while ago I wrote something similar with a friend for fun. Redis, ServerSentEvents and Go: https://github.com/vivienschilis/eddy/ https://github.com/viviensch
by zimbatm 13y ago
I while ago I wrote something similar with a friend for fun. Redis, ServerSentEvents and Go: https://github.com/vivienschilis/eddy/ https://github.com/vivienschilis/eddy/
It's not so well documented but it's practically the same except that it uses ServerSentEvents on the client and has buffers so no message is ever dropped. Each messages contains the payload, a TTL and a channel size. The TTL is used to expire a channel automatically and the channel size can be used for example to create 1-deep channels for updating values like progress.
- johnernaut 13y agoThis is really great - thanks for sharing! I'll definitely check it out more when I have some time.
- zimbatm 13y agoFeel free to PM me if you want to discuss the architecture/code/... @zimbatm on twitter
- calgaryeng 13y ago404.
- zimbatm 13y agoEDIT: sorry I didn't notice that the project is set to private and I don't have the perms to change it. It's not secret, contacting vivien to fix this.
- saiko-chriskun 13y ago404 for me as well. and don't see it on https://github.com/vivienschilis?tab=repositories https://github.com/vivienschilis?tab=repositories
- j_s 13y agomay be a private repo
- zimbatm 13y agofixed