Better HN
topnewbestaskshowjobs
Log inSign up

n1ru4l

8 karma · joined Mar 29, 2022 (4y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

You could also implement live queries using polling and the E-Tag, If-None-Match header (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If...).

We experimented with something similar on a customer project where having a long-lived HTTP connection was not possible.

comment 3y ago · link · parent

There are even more implementations of live queries available by now. e.g. https://github.com/samsarahq/thunder (go) or https://github.com/n1ru4l/graphql-live-query (JavaScript).

comment 4y ago · link · parent

Had a lot of fun collaborating with you on the supabase pg_graphql example, which of course is a HackerNews clone! https://github.com/supabase-community/supabase-graphql-examp...