HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bruchim

no profile record

Submissions

A Realtime Competitor Analysis

ably.com
1 points·by bruchim·2 yıl önce·0 comments

GraphQL Live Query, How To?

github.com
1 points·by bruchim·2 yıl önce·1 comments

Ask HN: Reactive and LocalFirst GraphQL Platform?

1 points·by bruchim·2 yıl önce·0 comments

Ask HN: Local First with GraphQL?

plain.com
1 points·by bruchim·2 yıl önce·0 comments

Ask HN: How Can I Make My Front End React to Database Changes in Real-Time?

38 points·by bruchim·2 yıl önce·54 comments

Ask HN: GraphQL Performance Issues, Am I the Only One?

1 points·by bruchim·2 yıl önce·7 comments

Ask HN: Edge Computing, a Half-Solved Puzzle?

3 points·by bruchim·3 yıl önce·3 comments

comments

bruchim
·2 yıl önce·discuss
Is there an official production-ready solution for getting the 'Live Query' unofficial feature working? (I'm not talking about 'subscription')

I've found some [1] [2] [3], but they're either archived or not ready for production.

I want to register from my clients (frontend app) for specific (can be complex) queries and get updates on changes.

[1] https://github.com/n1ru4l/graphql-live-query [2] https://www.graphile.org/postgraphile/live-queries/ [3]https://grafbase.com/blog/simplify-building-realtime-applica...
bruchim
·2 yıl önce·discuss
sure, I would be happy to hear more about it. Let me know how to contact you.
bruchim
·2 yıl önce·discuss
Thanks, super helpful. re Cloudflare, are you using them to reduce latency? what about a centralized database?
bruchim
·2 yıl önce·discuss
Expiration-based cache (e.g., 3 seconds) is not acceptable in this case, and more than that will reduce the load on the server + db dramatically.

Imaging subscribing to SQL query not just for a table; isn't it very complicated?
bruchim
·2 yıl önce·discuss
It's super simple for a simple demo app, not easy for a large scale.
bruchim
·2 yıl önce·discuss
Thanks! Electric looks great! though I'm wondering how it works in scale. I'm using Postgres and have some heavy queries, would be great to cache\materizlized the results instead of re-run them every time for every user, or for returning users without any change in the data.
bruchim
·2 yıl önce·discuss
Thank you for the detailed answer, you're awesome.

Electric-SQL, Convex, and Triplit are definitely relevant, and I'll dive deep into understanding their pros and cons. In the meantime, I found another relevant one: https://squid.cloud/, which has a slightly different approach, more like full BAAS.

On one end, it can save me some time; on another, it's another stack my R&D needs to be familiar with.
bruchim
·2 yıl önce·discuss
It looks very relevant to my problem! Have you used it? is it production-ready?
bruchim
·2 yıl önce·discuss
Agree.
bruchim
·2 yıl önce·discuss
Thanks! > It's fairly straightforward to write a websocket endpoint in whatever backend you have

It indeed solves half of the problem, but managing websockets for thousands of users is not that trivial IMO
bruchim
·2 yıl önce·discuss
Very interesting, thank you. I looks like a layer on top of your database, not a standalone baas, which is great. Have you used it in production?
bruchim
·2 yıl önce·discuss
just thinking about implementing incremental materialized views and maintaining web sockets with clients makes me nervous, but maybe I'm the only one. Have you implemented such a solution e2e? from db to frontend?
bruchim
·2 yıl önce·discuss
Specifically about performance, have you tried to solve it with any caching mechanism or any other out-of-the-box optimization?
bruchim
·2 yıl önce·discuss
We are using Apollo on top of our Postgres db, which is also used for other CRUD REST APIs.

I'm basically looking for more perspective of other teams, if they are feeling the same after migrating to graphQL (the same query in simple node + SQL ORM took half of the time), and if there is something that helped them solve these problems.

e.g. caching graphql is not as easy as caching GET API, something that I didn't know before.
bruchim
·2 yıl önce·discuss
TBH, I summarized here almost a year of a process into a single paragraph, maybe it's my bad. A few engineers with good performance minds have already benchmarked and improved some of the queries, and we learned a lot from the process.

My general feeling is that for the average developer, graphql can lead to some serious performance issues, and I wonder if it's just my experience or we are doing something wrong.
bruchim
·3 yıl önce·discuss
D1 is currently limited to 100 MB, and I'm doubtful it's meant to be a complete database. As I understand it, it's more for "manual cache" purposes and not for hosting everything there (think about 100 TB of data).

Regarding your second comment, while it's true that all the solutions you mentioned allow you to deploy a DB, they are offering between 5-10 locations around the world, compared to 100+ locations of Edge solutions.

Anyway, that's not the main point. I still don't think it's the right way to create read replicas for all your data in all locations. There should be a better way to copy only the relevant data (the data you want to fetch with low latency).