Insights into the Growing Trend of GraphQL

8:17 pm
October 4, 2023

GraphQL has gained significant traction in the API space as organizations increasingly adopt this new API structure into their ecosystems. Seen as an alternative to REST APIs, GraphQL offers more flexibility to API consumers while also posing new challenges to API development and delivery. Here are seven key insights into the trends surrounding GraphQL based on learnings from the recent GraphQLConf 2023 conference.

1. GraphQL Adoption at Scale

Enterprises are rapidly embracing GraphQL, with a Gartner report predicting that over 50% of businesses will use GraphQL in production by 2025, up from less than 10% in 2021. The GraphQLConf showcased the technology’s growing popularity with speakers and attendees from prominent companies like Pinterest, AWS, Meta, Salesforce, Netflix, Coinbase, and Atlassian.

2. API Management for GraphQL

Pairing GraphQL with API management software is essential to maximize its benefits. Since GraphQL acts as a gateway or middleware for various data sources, API performance and security rely on these downstream sources. Implementing query cost analysis and rate limiting based on connected data sources can optimize GraphQL API performance. The conference discussions emphasized the importance of observability and rate limiting in API management for GraphQL.

3. GraphQL Security

With enterprises running GraphQL at scale, ensuring security for GraphQL APIs has become critical. GraphQL has its own security needs due to its structural differences from other API specifications. The conference highlighted GraphQL-specific vulnerabilities such as complexity issues and schema leaks. However, typical security threats like injections and server errors that apply to standard API specifications can usually be mitigated by API management solutions.

4. Declarative, SDL-first GraphQL API Development

GraphQL APIs can be built using either a “code-first” or “schema-first” approach. The core of every GraphQL API is a schema that serves as the type-system. The “code-first” approach generates the schema from the business logic implemented in the framework, while the “schema-first” approach defines the schema separately and maps it to the business logic. A newer approach called “SDL-first” (Schema Definition Language) combines both the schema and business logic directly inside the GraphQL schema.

5. Incremental Delivery of Streaming Data

Streaming data in GraphQL has been a neglected aspect but is gaining relevance as GraphQL adoption increases. Real-time data in GraphQL is implemented using a specific operation type called “Subscription,” but streaming data has different requirements. The GraphQL specification is expected to introduce two new built-in directives, “@stream” and “@defer,” to handle situations where incremental data delivery is necessary. This development will make GraphQL more compatible with asynchronous or event-driven data sources.

6. Open Specification for GraphQL Federation

GraphQL federation enables the consolidation of multiple GraphQL APIs into a single API, enhancing usability and discoverability within an organization. However, existing GraphQL federation implementations have varied based on vendor-specific requirements. To address this, IBM and other leading companies in the API space are working on an open specification for GraphQL federation under the GraphQL Foundation.

7. GraphQL and AI

The rise of artificial intelligence (AI) poses both challenges and opportunities for GraphQL. Developers need to consider how AI will impact the development of GraphQL APIs and how AI can help identify and prevent security vulnerabilities in GraphQL. IBM Fellow and CTO, Anant Jhingran, presented on the role of GraphQL in AI and API integration at both GraphQLConf and IBM TechXchange.

Learn More

As GraphQL gains momentum, IBM is supporting organizations of all sizes in their GraphQL journey by providing tools that simplify the development of production-level GraphQL APIs. To learn more about the GraphQL capabilities in IBM API Connect and how to get started for free, visit the IBM API Connect website.

FAQs

What is GraphQL?

GraphQL is a new API structure that offers more flexibility to API consumers by allowing them to specify the exact data they need from an API. It is often seen as an alternative to REST APIs.

Why is GraphQL gaining popularity?

GraphQL is gaining popularity because it provides more flexibility to API consumers, allows for efficient data fetching, and enables clients to request multiple resources in a single request.

What is the difference between “code-first” and “schema-first” approaches to building GraphQL APIs?

In the “code-first” approach, the GraphQL schema is generated from the business logic implemented in the framework used to build the GraphQL API. In the “schema-first” approach, the schema is defined separately and then mapped to the business logic.

How can GraphQL handle streaming data?

GraphQL is expected to introduce two new built-in directives, “@stream” and “@defer,” to handle streaming data. These directives will enable GraphQL to handle incremental delivery of data from asynchronous or event-driven data sources.

What is GraphQL federation?

GraphQL federation is a way to consolidate multiple GraphQL APIs into a single API, improving the usability and discoverability of services within an organization.


Share:

More in this category ...

7:27 pm April 30, 2024

Ripple companions with SBI Group and HashKey DX for XRPL answers in Japan

Featured image for “Ripple companions with SBI Group and HashKey DX for XRPL answers in Japan”
6:54 pm April 30, 2024

April sees $25M in exploits and scams, marking historic low ― Certik

Featured image for “April sees $25M in exploits and scams, marking historic low ― Certik”
5:21 pm April 30, 2024

MSTR, COIN, RIOT and different crypto shares down as Bitcoin dips

Featured image for “MSTR, COIN, RIOT and different crypto shares down as Bitcoin dips”
10:10 am April 30, 2024

EigenLayer publicizes token release and airdrop for the group

Featured image for “EigenLayer publicizes token release and airdrop for the group”
7:48 am April 30, 2024

VeloxCon 2024: Innovation in knowledge control

Featured image for “VeloxCon 2024: Innovation in knowledge control”
6:54 am April 30, 2024

Successful Beta Service release of SOMESING, ‘My Hand-Carry Studio Karaoke App’

Featured image for “Successful Beta Service release of SOMESING, ‘My Hand-Carry Studio Karaoke App’”
2:58 am April 30, 2024

Dogwifhat (WIF) large pump on Bybit after record reasons marketplace frenzy

Featured image for “Dogwifhat (WIF) large pump on Bybit after record reasons marketplace frenzy”
8:07 pm April 29, 2024

How fintech innovation is riding virtual transformation for communities around the globe  

Featured image for “How fintech innovation is riding virtual transformation for communities around the globe  ”
7:46 pm April 29, 2024

Wasabi Wallet developer bars U.S. customers amidst regulatory considerations

Featured image for “Wasabi Wallet developer bars U.S. customers amidst regulatory considerations”
6:56 pm April 29, 2024

Analyst Foresees Peak In Late 2025

Featured image for “Analyst Foresees Peak In Late 2025”
6:59 am April 29, 2024

Solo Bitcoin miner wins the three.125 BTC lottery, fixing legitimate block

Featured image for “Solo Bitcoin miner wins the three.125 BTC lottery, fixing legitimate block”
7:02 pm April 28, 2024

Ace Exchange Suspects Should Get 20-Year Prison Sentences: Prosecutors

Featured image for “Ace Exchange Suspects Should Get 20-Year Prison Sentences: Prosecutors”
7:04 am April 28, 2024

Google Cloud's Web3 portal release sparks debate in crypto trade

Featured image for “Google Cloud's Web3 portal release sparks debate in crypto trade”
7:08 pm April 27, 2024

Bitcoin Primed For $77,000 Surge

Featured image for “Bitcoin Primed For $77,000 Surge”
5:19 pm April 27, 2024

Bitbot’s twelfth presale level nears its finish after elevating $2.87 million

Featured image for “Bitbot’s twelfth presale level nears its finish after elevating $2.87 million”
10:07 am April 27, 2024

PANDA and MEW bullish momentum cool off: traders shift to new altcoin

Featured image for “PANDA and MEW bullish momentum cool off: traders shift to new altcoin”
9:51 am April 27, 2024

Commerce technique: Ecommerce is useless, lengthy are living ecommerce

Featured image for “Commerce technique: Ecommerce is useless, lengthy are living ecommerce”
7:06 am April 27, 2024

Republic First Bank closed by way of US regulators — crypto neighborhood reacts

Featured image for “Republic First Bank closed by way of US regulators — crypto neighborhood reacts”
2:55 am April 27, 2024

China’s former CBDC leader is beneath executive investigation

Featured image for “China’s former CBDC leader is beneath executive investigation”
10:13 pm April 26, 2024

Bigger isn’t all the time higher: How hybrid Computational Intelligence development permits smaller language fashions

Featured image for “Bigger isn’t all the time higher: How hybrid Computational Intelligence development permits smaller language fashions”
7:41 pm April 26, 2024

Pantera Capital buys extra Solana (SOL) from FTX

Featured image for “Pantera Capital buys extra Solana (SOL) from FTX”
7:08 pm April 26, 2024

Successful Beta Service release of SOMESING, ‘My Hand-Carry Studio Karaoke App’

Featured image for “Successful Beta Service release of SOMESING, ‘My Hand-Carry Studio Karaoke App’”
12:29 pm April 26, 2024

SEC sues Bitcoin miner Geosyn Mining for fraud; Bitbot presale nears $3M

Featured image for “SEC sues Bitcoin miner Geosyn Mining for fraud; Bitbot presale nears $3M”
10:34 am April 26, 2024

Business procedure reengineering (BPR) examples

Featured image for “Business procedure reengineering (BPR) examples”
7:10 am April 26, 2024

85% Of Altcoins In “Opportunity Zone,” Santiment Reveals

Featured image for “85% Of Altcoins In “Opportunity Zone,” Santiment Reveals”
5:17 am April 26, 2024

Sam Altman’s Worldcoin eyeing PayPal and OpenAI partnerships

Featured image for “Sam Altman’s Worldcoin eyeing PayPal and OpenAI partnerships”
10:55 pm April 25, 2024

Artificial Intelligence transforms the IT strengthen enjoy

Featured image for “Artificial Intelligence transforms the IT strengthen enjoy”
10:04 pm April 25, 2024

Franklin Templeton tokenizes $380M fund on Polygon and Stellar for P2P transfers

Featured image for “Franklin Templeton tokenizes $380M fund on Polygon and Stellar for P2P transfers”
7:13 pm April 25, 2024

Meta’s letting Xbox, Lenovo, and Asus construct new Quest metaverse {hardware}

Featured image for “Meta’s letting Xbox, Lenovo, and Asus construct new Quest metaverse {hardware}”
2:52 pm April 25, 2024

Shiba Inu (SHIB) unveils bold Shibarium plans as Kangamoon steals the display

Featured image for “Shiba Inu (SHIB) unveils bold Shibarium plans as Kangamoon steals the display”