pwshub.com

Apollo bridges the gap between GraphQL and REST APIs

Apollo GraphQL Inc., a provider of tools and services for working with the GraphQL open-source data query language, today announced a set of connectors that bridge the gap between GraphQL and representational state transfer application programming interfaces, which are widely used to build web services that allow communication between services and applications.

Developed by Facebook in 2012, GraphQL allows client services to request precisely the data they need from a server, making it more efficient and flexible compared with REST APIs. Though REST is ubiquitous in microservices architectures, it’s an older standard that supports less precision in requests. That often results in queries retrieving more data than necessary or not enough data, requiring multiple requests.

In contrast, a GraphQL client can specify exactly the data needed in a single request and can request data from multiple related resources, making it faster and more efficient than REST.

Apollo GraphQL said the introduction of Apollo Connectors significantly reduces the need to write redundant resolver code when working with the REST APIs. They allow developers to declaratively expose REST APIs through a federated GraphQL schema. An organization’s REST APIs can be combined into a unified graph, reducing integration complexity.

Making REST better

“GraphQL makes REST APIs better,” said Apollo GraphQL Chief Technology Officer Matt DeBergalis. “We see it as sitting above REST APIs but not replacing them. The technologies that win are those that are incrementally adoptable.”

REST APIs are ubiquitous on the Internet and will be used long in the future, DeBergalis said. “There are REST APIs for adding items to your shopping cart, for estimating shipping times, dynamic pricing, real-time inventory, product recommendations, and user-generated reviews,” he said. “Those APIs are your business capabilities wrapped up into an interface. Connectors allow us to come into a large organization and transform their API platform so that they can ship more quickly and support more kinds of experiences.”

GraphQL sits between APIs and applications. That has meant that developers have historically had to write code called a graph server to connect APIs across an organization. “While GraphQL has an incredible developer experience and is a delight to work with, developers have had to go through a fairly involved technical process to get to the point where they’re able to take advantage of it,” DeBergalis said. “Connectors gets rid of that. They makes it a five-minute exercise to add a new API to a graph that you already have.”

Developers can use a simple declarative syntax within their GraphQL schema to connect directly to REST API endpoints and streamline the process of mapping types and fields to underlying services. Connectors reduce technical debt and drudgery.

“You can use Apollo Connectors and an artificial intelligence chatbot we’ve built without writing code,” DeBergalis said. “It understands how to call everything the right way and taps into the excitement around AI.”

GraphOS enhancements

Apollo GraphOS, which provides the infrastructure and workflows to unify and deliver APIs with a federated GraphQL platform, provides standardized tooling and a smart editor for Visual Studio Code, which has extensions and tooling that help with writing and consuming GraphQL schemas.

Apollo is also enhancing GraphOS with a new native query planner that it said delivers significant performance improvement, reduces resource usage and makes requests more efficient. The company is also introducing entity caching with cache invalidation in public preview. That allows developers to store business entities such as inventory and user records in a Redis database management system for long-term caching.

New workflow improvements in the Rover command line interface integrate it more closely with GraphOS Studio, which is the primary web interface for GraphOS. Additional under-the-hood improvements make processing of large-scale graphs up to 10 times faster. Rover now also supports subgraph mirroring, an automated workflow that allows developers to easily fetch and test subgraph configurations on their local machines.

Photo: Pixabay

Source: siliconangle.com

Related stories
6 days ago - Concerns are mounting over when and how all this investment in artificial intelligence will pay off — even at AI leader OpenAI, which reportedly predicts it will lose $14 billion in 2026 on $100 billion in revenue and won’t make a profit...
2 weeks ago - (Bloomberg) -- A previously gloomy corner of the debt world has become the biggest winning trade in global financial markets, producing returns that few traders have seen in more than a decade.Most Read from BloombergClimate Migrants...
1 month ago - (Bloomberg) -- Apollo Global Management has struck a $1 billion deal with BP Plc to fund its stake in the Trans Adriatic natural gas pipeline.Most Read from BloombergHousing’s Worst Crisis in Decades Reverberates Through 2024 RaceAn...
3 weeks ago - (Bloomberg) -- Apollo Global Management Inc. has offered to make a multibillion-dollar investment in Intel Corp., according to people familiar with the matter, in a move that would be a vote of confidence in the chipmaker’s turnaround...
3 weeks ago - Apollo has indicated in recent days it would be willing to make an equity-like investment of billions of dollars in Intel, the report said, citing a person familiar with the matter. The news comes at a moment of weakness for Intel, which...
Other stories
34 minutes ago - A recent exchange on X between entrepreneur Mark Cuban and a crypto enthusiast has shed light on Vice President Kamala Harris’s evolving stance on cryptocurrency, particularly Bitcoin (CRYPTO: BTC), in light of the November election. What...
1 hour ago - Worldcoin, the identity-proving cryptocurrency project co-founded by OpenAI Chief Executive Officer Sam Altman, today announced a rebrand and a new version of its Iris-scanning Orb. Starting today, Worldcoin is now known as World because,...
1 hour ago - Meta Platforms Inc. has been cutting jobs in various divisions, including letting 24 go from Instagram and Facebook for abusing the company’s $25 meal credit system. In the latter case, it’s reported that the transgressors had not been...
1 hour ago - Artificial intelligence inference startup Simplismart, officially known as Verute Technologies Pvt Ltd., said today it has closed on $7 million in funding to build out its infrastructure platform and help companies to deploy AI models...
1 hour ago - (Bloomberg) -- A selloff in Treasuries strengthened the dollar and left equities mixed as new signs of economic vigor led traders to trim expectations for US rate cuts.Most Read from BloombergInside the ‘Utopias’ of Mexico CityOne City’s...