TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hasura GraphQL Engine and SQL Server

182 pointsby tango12almost 4 years ago

18 comments

nerdywordyalmost 4 years ago
We have layered Hasura over an existing set of SQL Server databases to provide a public facing API for our product. [1]<p>Overall the experience has been fantastic. The performance and authorization scheme is very good. It has allowed us to wash our hands clean of bespoke endpoint writing for our enterprise customers with complex integration requirements (for the most part... waiting on mutations!).<p>One thing I wish was handled differently would be Same Schema, Different Database support.<p>We have multiple multi-tenant databases as well as many single tenant databases. All share the exact same table structure. As it stands, we have to maintain a separate Hasura instance for each of these databases as the table names conflict and there is no way to rename or reference them differently. That leaves us with the minor annoyance of needing to instruct users on their appropriate server prefix (server1.fast-weigh.dev&#x2F;graphql vs server2.fast-weigh.dev&#x2F;graphql... etc). Yes, we could proxy in front of these and route accordingly. But that&#x27;s just one more layer to deal with and maintain.<p>It sure would be nice to have a single instance to maintain that could handle database availability based on the role of the incoming request.<p>Even with the minor inconvenience of multiple instances, I 10&#x2F;10 would recommend. It&#x27;s a huge timesaver assuming you&#x27;ve got the data access problems it seeks to make easy.<p>[1]: <a href="https:&#x2F;&#x2F;fast-weigh.com" rel="nofollow">https:&#x2F;&#x2F;fast-weigh.com</a> &#x2F; <a href="https:&#x2F;&#x2F;docs.fast-weigh.dev" rel="nofollow">https:&#x2F;&#x2F;docs.fast-weigh.dev</a>
评论 #27553082 未加载
评论 #27553077 未加载
nirvdrumalmost 4 years ago
I&#x27;m overall very impressed with Hasura, but have found it cumbersome to work with if using UUID primary keys because it won&#x27;t map them as the GraphQL ID type [0]. There are plenty of people using Hasura successfully in production environments, so I&#x27;m curious how others handle it. I&#x27;m hoping the answer isn&#x27;t &quot;just use int PKs&quot;, but it&#x27;d be helpful to know if it is.<p>[0] -- <a href="https:&#x2F;&#x2F;github.com&#x2F;hasura&#x2F;graphql-engine&#x2F;issues&#x2F;3578" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hasura&#x2F;graphql-engine&#x2F;issues&#x2F;3578</a>
评论 #27552154 未加载
评论 #27555207 未加载
评论 #27553891 未加载
vsurabhialmost 4 years ago
(Vamshi from Hasura)<p>We&#x27;ve been working on SQL server native support and we&#x27;re happy to announce support for read-only GraphQL cases with new or existing SQL Servers.<p>Next up is adding support for stored procedures, mutations, Hasura event triggers [1] and more!<p>[1]: <a href="https:&#x2F;&#x2F;hasura.io&#x2F;docs&#x2F;latest&#x2F;graphql&#x2F;core&#x2F;event-triggers&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;hasura.io&#x2F;docs&#x2F;latest&#x2F;graphql&#x2F;core&#x2F;event-triggers&#x2F;in...</a>
评论 #27550945 未加载
willehalmost 4 years ago
I&#x27;ve used Hasura for a couple of projects but I feel somehow and sooner rather than later, a requirement shows up that you an&#x27;t really solve with Hasura. I don&#x27;t mean oh this is a bit awkward in Hasura but rather this needs to be fully custom code exposing its own graphql (which Hasura would do an excellent job of stitching together). That being said some of the operational challenges with Hasura specifically metadata and migrations are better solved using other solutions.<p>Prisma when combined with Apollo on the other hand makes it easy to build GQL handler, which can handle strange requirements but also makes it easy to avoid Hasura induced awkwardness.<p>The Hasura team seems very component however and I hope they will work out these issues.
评论 #27553115 未加载
yevpatsalmost 4 years ago
The space is def interesting and the product probably lowers the barrier to entry for development. My main question will be why would you use it against plain&#x2F;open-source PostgreSQL RBAC + GraphQL server or something like <a href="https:&#x2F;&#x2F;www.graphile.org&#x2F;postgraphile&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.graphile.org&#x2F;postgraphile&#x2F;</a> ?
评论 #27549316 未加载
评论 #27549348 未加载
评论 #27549477 未加载
评论 #27553631 未加载
评论 #27549336 未加载
gsvclassalmost 4 years ago
If you&#x27;re into GO then there is GraphJin which can be used a standalone service or a library. Works with Postgres, MySQL and MSSQL soon. <a href="https:&#x2F;&#x2F;github.com&#x2F;dosco&#x2F;graphjin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dosco&#x2F;graphjin</a>
nerdbaggyalmost 4 years ago
It’s pretty cool how Hasura uses&#x2F;abuses Postgres JSON support to be able to run many queries in the same “command”
评论 #27551037 未加载
评论 #27550341 未加载
评论 #27551826 未加载
评论 #27550206 未加载
diveanonalmost 4 years ago
Happy customer on Postgres who just signed a large contract that needs SQL support.<p>Love the product and the team, keep up the great work.<p>Out of curiosity is support for multiple roles in the works?
评论 #27549272 未加载
neural_thingalmost 4 years ago
I am now building on Hasura. Love the experience overall, but some aspects are frustrating. For example, setting up authentication for a React Native (Expo) app with Auth0 is quite cumbersome, and the docs are a bit out of date.
评论 #27550366 未加载
评论 #27549865 未加载
评论 #27550843 未加载
评论 #27554569 未加载
nicoburnsalmost 4 years ago
If anyone at Hasura is reading this. Are there any plans to make poll frequency configurable on a per-query basis?<p>We have different queries with dramatically different latency requirements (e.g. 1 second vs 5 minutes vs 1 hour). Currently we are only using Hasura for the low-latency queries, and are falling back to polling for other things. But it would simplify our development model if we could just subscribe to these changes with a lower frequency.<p>If we could additionally have some kind of ETAG-style if-not-modified support when initialising connections, that would be extra amazing.
评论 #27549403 未加载
评论 #27549473 未加载
perilousactsalmost 4 years ago
We literally had to rebuild an app because this support was so bad and they sold us on it being ready. Yikes.<p>It also needs its own PG db to function in order to support SQL Server.<p>PG usage was pretty good. Auth sucked.<p>Usage in CI pipelines is hot garbage. Command line tooling does not work well with it at all.<p>I&#x27;d probably take the risk again for a toy...maybe.
gipalmost 4 years ago
We&#x27;ve built and launched our community platform on Hasura + PG RDS. Row-level permission has been a time-saver to launch a product quickly. Stability has been great - our Hasura container hasn&#x27;t crashed &#x2F; restarted in the last 9 months.<p>Their are downsides (it has proven frustrating for us to implement the authentication part for a role that is not user or admin) but I would definitely recommend Hasura to experienced developpers.
评论 #27553910 未加载
elwellalmost 4 years ago
Hasura + CLJS w&#x2F; Re-frame + WebSockets realtime subscriptions to GraphQL as EDN: <a href="https:&#x2F;&#x2F;github.com&#x2F;Vetd-Inc&#x2F;vetd-app&#x2F;blob&#x2F;cdac4d55f771b1928eeffb151372f643ea88f937&#x2F;src&#x2F;cljs&#x2F;app&#x2F;vetd_app&#x2F;buyers&#x2F;pages&#x2F;product_detail.cljs#L226" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Vetd-Inc&#x2F;vetd-app&#x2F;blob&#x2F;cdac4d55f771b1928e...</a>
navleloalmost 4 years ago
How does this compare to Prisma?
评论 #27577670 未加载
onebotalmost 4 years ago
How about build-in authorization for Postgesql?
评论 #27549275 未加载
评论 #27549282 未加载
endisneighalmost 4 years ago
How exactly is caching handled?
评论 #27549420 未加载
npapag7almost 4 years ago
In greek hasoura means loss
评论 #27550876 未加载
评论 #27551807 未加载
shdhalmost 4 years ago
presence for subscriptions