Better HN
topnewbestaskshowjobs
Log inSign up

intellisense

9 karma · joined Sep 29, 2017 (9y ago) · 21 submissions

Submissions

comment 5y ago · link · parent

Yes the client queries for only data it needs and server returns only data which client requested.

With this query, { currentUser { id name todoLists { title items { name } } } }

It is up to the server how it is implemented.

- The server can fetch all the data for the user, todolist and items from the database in one go and resolve the client query mentioned above. In this case there will be overfetching from the database if the client only requested user information.

The server can also fetch the data in 3 queries

1> First to fetch the user, lets say with id 1. 2> Then get all the todos for the for user id 1. 3> Then get all the items for all the todos in step 2. Batching/Dataloaders.

All these queries can be executed in parallel on the server side. Does this make the server complex? Yes but there is also benefit to this when the user only request currentUser it does not fetch any todolists or items from the database.

comment 5y ago · link · parent

Yes, with SQL engine you can fetch a parent row with all its children in one go. However, sometimes the client does not need child rows at all and in this case there will overfetching from database and maybe it is fine when query is fast.

My main question was why implement GraphQL BFF layer on top of REST layer. How is this efficient, unless you have legacy REST service that you want expose as GraphQL service. If I am writing a service from scratch why would I create a REST service and then wrap it with GraphQL service?

comment 5y ago · link · parent

Isn't it more work to create REST services and GraphQl to implement BFF pattern. Also why is GraphQL bad for data services? The N+1 problem that author mentions is easily solvable by dataloaders. Why create two layers on backend?

comment 5y ago · link · parent

Agree but I believe the distinction is that in GraphQL this is part of specification to address overfetching/underfetching issues.

comment 7y ago · link · parent

Really interesting. I wonder how this agreement is implemented and what it contains. Also, do any of the US companies provide similar agreement?

6.

Huawei willing to sign 'no-spy' agreements with governments: chairman(reuters.com ↗)

1 points · by intellisense · 7y ago · 1 comment

comment 7y ago · link · parent

No organization is perfect. Because organizations are made of people and people are not perfect. Can the resources be utilized in a better way? maybe so. Even with all these inefficiencies what Bill Gates is doing through his foundation should be commended.

comment 7y ago · link · parent

Unfortunately it does not detect DSL changes automatically so yes you will have to copy changes.

comment 7y ago · link · parent

You can use FluentMigrator package for database migration. We have used it and it is pretty solid.

https://github.com/fluentmigrator/fluentmigrator/issues

I am curious about your encrytion scenario and why did .Net core fall short.

comment 7y ago · link · parent

This can be game changer for processing documents if it can accurately capture the tabular data and key/value pair as shown in the video.

11.

Introduction to Amazon Textract: Now in Preview(youtube.com ↗)

3 points · by intellisense · 7y ago · 1 comment

comment 8y ago · link · parent

Articles like this makes me wonder how much do we really know?

13.

Scientific American: Bizarre Particles Keep Flying Out of Antarctica’s Ice(scientificamerican.com ↗)

8 points · by intellisense · 8y ago · 3 comments

comment 8y ago · link · parent

Well Microsoft is not using Xamarin for any of their cross platform apps. Why should we?

comment 8y ago · link · parent

Wasn't banning beef support of Hindu nationalism?

Excluding Taj Mahal really!!!

https://www.theatlantic.com/international/archive/2017/11/ta...

16.

No wonders education is getting expensive every year(freep.com ↗)

1 points · by intellisense · 8y ago · discuss

17.

OpenSSH in Windows 10(blogs.msdn.microsoft.com ↗)

2 points · by intellisense · 8y ago · discuss

18.

Visual Studio Code Tools for AI Extension(blogs.msdn.microsoft.com ↗)

4 points · by intellisense · 9y ago · discuss