CrunchyData / pg_eventserv

Small golang server to push PgSQL listen/notify events into websockets
Apache License 2.0
199 stars 14 forks source link

Why not use Server-Sent events? #1

Open docteurklein opened 1 year ago

docteurklein commented 1 year ago

Hi! Lovely project! I myself got interested in this idea and made a few POCs in haskell and rust, although I decided to do some kind of "in-band control" to avoid having arbitrary large notify payloads (there is a limit after all, and it wasn't meant for passing large json payloads).

Anyway, my question really was about using websockets, a (pretty much) obsolete protocol for the age of HTTP/2 or 3. It forces Connection upgrades, which plays badly with proxies, cannot exploit HTTP/2 streams, and this is not exploiting the bi-directional features, since this tool is purely from server to clients (i.e Server-sent).

That's why I wonder why you didn't use Server-Sent events?

Thanks for reading :)

Fxztam commented 1 year ago

Hi, this is an interesting project, but it does not work for me:

=> server start with debug level :: msg="viper.ConfigFileNotFoundError: Config File \"pg_eventserv\" Not Found

What is wrong, please?

Thanks, Fried