Bridging Frontend and Backend with GraphQL and Apache Kafka ft. Gerard Klijs

https://cnfl.io/podcast-episode-206 | What is GraphQL? And how can you combine GraphQL with Apache Kafka® to query data in real time?

With over 10 years of experience as a backend engineer, Gerard Klijs is a Confluent Community Catalyst, a contributor to several GraphQL libraries, and also a creator and maintainer of a Rust library to use Confluent Schema Registry with Java client. In this episode, he explains why you want to use Kafka with GraphQL and how they work together to bridge the gap between backend and frontend to make data more easily accessible in the frontend.

As an alternative to REST, GraphQL is an open source programming language developed by Meta, which lets you pull data from multiple data sources via a single API call. GraphQL lets you migrate and deprecate data easily. For example, if you have a `name` field, which you later decided to replace by `firstName` and `lastName`, you can group the field names together and monitor the server for query requests. If there are no additional query requests for the deprecated field, then it can be removed from the server.

Usually, GraphQL is used in the frontend with a server implemented in Node.js, while Kafka is often used as an integration layer between backend components. When it comes to connecting Kafka with GraphQL, the use cases might not seem as vast at first glance, but Gerard thinks that it is due to unfamiliarity and misconceptions on how the two can work together. For example, some may think Kafka is merely a message bus and GraphQL is for graph databases.

Gerard also talks about the backend for frontend (BFF) pattern as well as tips on working with GraphQL.

► Getting Started with GraphQL and Apache Kafka: https://cnfl.io/get-started-with-graphql-and-kafka-episode-206
► Kafka and GraphQL: Misconceptions and Connections: https://cnfl.io/kafka-graphql-misconceptions-episode-206
► Gerard Klijs Github: https://github.com/gklijs
► Kris Jenkins: https://twitter.com/krisajenkins
► Join the Confluent Community: https://cnfl.io/join-confluent-community-episode-206
► Learn more with Kafka tutorials, resources, and guides: https://cnfl.io/visit-confluent-developer-episode-206
► Live demo: Intro to Event-Driven Microservices with Confluent: https://cnfl.io/event-driven-microservices-episode-206
► Use PODCAST100 to get $100 of free Confluent Cloud usage: https://cnfl.io/try-confluent-cloud-episode-206
► Promo code details: https://cnfl.io/podcast100-details-episode-206

Subscribe: https://youtube.com/c/confluent?sub_confirmation=1
Site: https://confluent.io
GitHub: https://github.com/confluentinc
Facebook: https://facebook.com/confluentinc
Twitter: https://twitter.com/confluentinc
LinkedIn: https://www.linkedin.com/company/confluent
Instagram: https://www.instagram.com/confluent_inc

Confluent is pioneering a fundamentally new category of data infrastructure focused on data in motion. Confluent’s cloud-native offering is the foundational platform for data in motion – designed to be the intelligent connective tissue enabling real-time data, from multiple sources, to constantly stream across the organization. With Confluent, organizations can meet the new business imperative of delivering rich, digital front-end customer experiences and transitioning to sophisticated, real-time, software-driven backend operations. To learn more, please visit www.confluent.io.

#graphql #streamprocessing #apachekafka #kafka #confluent
Be the first to comment