Most Popular
1. Banking Crisis is Stocks Bull Market Buying Opportunity - Nadeem_Walayat
2.The Crypto Signal for the Precious Metals Market - P_Radomski_CFA
3. One Possible Outcome to a New World Order - Raymond_Matison
4.Nvidia Blow Off Top - Flying High like the Phoenix too Close to the Sun - Nadeem_Walayat
5. Apple AAPL Stock Trend and Earnings Analysis - Nadeem_Walayat
6.AI, Stocks, and Gold Stocks – Connected After All - P_Radomski_CFA
7.Stock Market CHEAT SHEET - - Nadeem_Walayat
8.US Debt Ceiling Crisis Smoke and Mirrors Circus - Nadeem_Walayat
9.Silver Price May Explode - Avi_Gilburt
10.More US Banks Could Collapse -- A Lot More- EWI
Last 7 days
US Presidential Election Cycle and Recessions - 18th Mar 24
US Recession Already Happened in 2022! - 18th Mar 24
AI can now remember everything you say - 18th Mar 24
Bitcoin Crypto Mania 2024 - MicroStrategy MSTR Blow off Top! - 14th Mar 24
Bitcoin Gravy Train Trend Forecast 2024 - 11th Mar 24
Gold and the Long-Term Inflation Cycle - 11th Mar 24
Fed’s Next Intertest Rate Move might not align with popular consensus - 11th Mar 24
Two Reasons The Fed Manipulates Interest Rates - 11th Mar 24
US Dollar Trend 2024 - 9th Mar 2024
The Bond Trade and Interest Rates - 9th Mar 2024
Investors Don’t Believe the Gold Rally, Still Prefer General Stocks - 9th Mar 2024
Paper Gold Vs. Real Gold: It's Important to Know the Difference - 9th Mar 2024
Stocks: What This "Record Extreme" Indicator May Be Signaling - 9th Mar 2024
My 3 Favorite Trade Setups - Elliott Wave Course - 9th Mar 2024
Bitcoin Crypto Bubble Mania! - 4th Mar 2024
US Interest Rates - When WIll the Fed Pivot - 1st Mar 2024
S&P Stock Market Real Earnings Yield - 29th Feb 2024
US Unemployment is a Fake Statistic - 29th Feb 2024
U.S. financial market’s “Weimar phase” impact to your fiat and digital assets - 29th Feb 2024
What a Breakdown in Silver Mining Stocks! What an Opportunity! - 29th Feb 2024
Why AI will Soon become SA - Synthetic Intelligence - The Machine Learning Megatrend - 29th Feb 2024
Keep Calm and Carry on Buying Quantum AI Tech Stocks - 19th Feb 24

Market Oracle FREE Newsletter

How to Protect your Wealth by Investing in AI Tech Stocks

Why GraphQL? The Benefits Explained

Companies / Internet Aug 12, 2019 - 01:05 PM GMT

By: Sumeet_Manhas

Companies

GraphQL is a query language that was created in 2012 by Facebook. It aims to provide people with an alternative solution to the conventional REST API architecture. At its core, GraphQL offers a syntax that describes how data should be asked for, i.e. a Schema. GraphQL operates by creating a single endpoint that has the responsibility of accepting queries, making it database agnostic. This is as opposed to having a reliance on the approach REST API follows, which involves there being different endpoints for each service. In this blog post, we are going to give you a further insight into GraphQL by explaining the advantages.


No over-fetching - There is only one place to begin, and this is with the fact that there is no over-fetching in GraphQL. When it comes to Restful API, a mobile client will tend to over-fetch data when there is an identical API as the web client. However, this does not happen with GraphQL. This is because the mobile client can select a different number of fields, ensuring only the information that is needed is fetched for what is on screen.

Modern trends are embraced - Another benefit associated with GraphQL is that modern trends are embraced when it comes to how applications are built. You could have only one backed application yet multiple clients on smartwatches, phones, and the web who depend on the data. GraphQL can be utilised to connect both worlds while also fulfilling the requirements of each client application without each client needing a dedicated API for each client.

Single source of truth - For GraphQL applications, the GraphQL scheme is the single source of truth. It offers a central location, where you will find all of the available data described. The GraphQL schema tends to be defined on the server-side. However, clients can write (mutation) and read (query) data based on the schema. In essence, the application’s server-side provides all of the details regarding what is available on its side.

There are lots of great tools available - Aside from the points that have already been mentioned, another benefit is that there has become a market for complementary tools. This is something that has developed because of the popularity of GraphQL. You can read about the different GraphQL tools online for a better understanding. Some of the best include Visual GraphQL Editor, GraphCMS, GraphQL Docs, Apollo Launchpad, and GraphQL Voyager.

As you can see, there are a number of different advantages that are associated with GraphQL. This merely scratches the surface as well. Other benefits include GraphQL versioning, the fact the query language is strongly typed, GraphQL introspection, and GraphQL Schema stitching. It perhaps comes as no surprise, therefore, that this is being used by a number of well-known companies. Some examples of these businesses include The New York Times, WordPress, Yelp, Twitter, and Shopify. This is a testament to just how effective this type of query language is.

By Sumeet Manhas

© 2019 Copyright Sumeet Manhas - All Rights Reserved

Disclaimer: The above is a matter of opinion provided for general information purposes only and is not intended as investment advice. Information and analysis above are derived from sources and utilising methods believed to be reliable, but we cannot accept responsibility for any losses you may incur as a result of this analysis. Individuals should consult with their personal financial advisors.


© 2005-2022 http://www.MarketOracle.co.uk - The Market Oracle is a FREE Daily Financial Markets Analysis & Forecasting online publication.


Post Comment

Only logged in users are allowed to post comments. Register/ Log in