ninibe / netlog

A lightweight, HTTP-centric, log-based (Kafka-like) message queue.
Mozilla Public License 2.0
191 stars 11 forks source link

question #1

Closed joeblew99 closed 8 years ago

joeblew99 commented 8 years ago

if its 100% based how does notification work ? web sockets ?

bictorman commented 8 years ago

This is still very much a work in progress with a lot to be defined, for the moment, the only thing implemented is long polling while doing single message scans, so the connection blocks until there is a new message, this is the example that you can find on the readme.

Then, the streamming API will probably be HTTP2 only, but I have yet to make a proof of concept, with HTTP2 we could leverage PUSH_PROMISE, or do bidirectional streaming as explained here: https://github.com/golang/go/issues/13444

joeblew99 commented 8 years ago

PUSH_PROMISE looks nice https://github.com/golang/go/issues/13443

you might want to see what go-micro team is going in their code, as it relates to this. https://github.com/micro/go-micro

https://github.com/micro/go-plugins/tree/master/broker Other brokers like yours here

bictorman commented 8 years ago

Nice, I'll take a look, thanks.