GraphQL Workshop Medley to build cloud native apps with Open Source Distributed SQL database

Rate this content
Bookmark

YugateDB is a popular open-source Distributed SQL database designed and built for cloud native applications from the ground up. YugateDB allows developers to easily scale the RDBMS workloads for internet-scale apps while natively handling the cloud infrastructure outages supporting cross-region and cross Datacenter deployments. In this workshop, participants will get firsthand experience implementing GraphQL applications using three of the most popular GraphQL engines in Hasura, Prisma, and Spring GraphQL connected to the YugateDB database.

This workshop will provide quick start guides for GraphQL developers for getting started with YugateDB. The workshop will include steps for creating a YugateDB database instance, configuring the database for the respective GraphQL engine, and the best practices for writing the GraphQL queries for YugateDB. From this workshop session, developers will know all the main concepts of getting started with YugateDB and GraphQL to solve the business use case at hand using YugateDB.

This workshop has been presented at GraphQL Galaxy 2021, check out the latest edition of this Tech Conference.

FAQ

GraphQL is a query language for your API that allows you to build queries to get exactly what you need, combine resources in a single request, and evolve your API without versioning.

Yugabyte DB is an open source distributed SQL database designed for cloud native applications. It features PostgreSQL compatibility, horizontal scalability, strong consistency, geo-redundancy, and supports both SQL and NoSQL data models.

Using GraphQL with Yugabyte DB allows developers to leverage Yugabyte's horizontal scalability and fault tolerance while providing a powerful API layer that can fetch exactly the required data, reduce network requests, and simplify client-side logic.

Yes, Yugabyte DB is PostgreSQL compatible, so most tools and applications that work with PostgreSQL can work with Yugabyte DB without significant changes.

Distributed SQL databases are designed to scale horizontally by distributing data and queries across multiple nodes. They bridge the gap between traditional SQL systems and NoSQL systems, providing strong SQL features, horizontal scalability, and high availability.

GraphQL can integrate with distributed databases like Yugabyte by using GraphQL servers like Apollo or Hasura to communicate with the database. This setup leverages the database's scalability and robustness while providing a flexible and efficient API layer.

Nikhil Chandrappa
Nikhil Chandrappa
Eric Pratt
Eric Pratt
Marko Rajcevic
Marko Rajcevic
Taylor Mull
Taylor Mull
155 min
06 Dec, 2021

Comments

Sign in or register to post your comment.
Video Summary and Transcription
The GraphQL Workshop Medley covers Distributed SQL, Yugabyte, and Popular GraphQL Servers. YugabyteDB bridges the gap between SQL and NoSQL systems, offering strong SQL features and horizontal scalability. It integrates seamlessly with GraphQL and supports regional and multi-cloud deployments. The workshop explores creating Hasura and YugabyteDB instances, configuring the cluster and database, applying migrations, and working with Hasura, Prisma, and Apollo. It also covers scaling GraphQL workloads with YugabyteDB, query tuning, and optimizing performance.

1. Introduction to Workshop and Agenda

Short description:

Welcome to the GraphQL Workshop Medley! We'll cover Distributed SQL, Yugabyte, and Popular GraphQL Servers. I'm Eric Pratt, a senior solutions engineer at Yugibyte. With me are Nikhil, an engineer on the ecosystem team, and Marco Rejcic, a solutions engineer at Ubite. We'll provide an overview of distributed SQL databases and GraphQL, and then dive into hands-on sessions. Join us for real-time poll app, social post app, and space explorer app. Time permitting, we'll discuss tuning performance for GraphQL queries with distributed SQL.

Welcome everybody. My name is Eric Pratt. Today we're going to be going over our GraphQL Workshop Medley. We're getting started with Distributed SQL, Yugabyte, and some Popular GraphQL Servers. My name is, as I said, Eric Pratt. I'm a senior solutions engineer here at Yugibyte on the cloud team. Previously, I was a premium support engineer over at Datastats. I have two others with me, and I will let them introduce themselves.

Hey everyone, my name is Nikhil. I'm one of the engineers on the ecosystem team. We build integrations with popular developer tools like GraphQL, Spring Framework, and hosts of other cloud-native projects. If you have any questions on the integrations with distributed SQL and GraphQL. You can reach us out on our Slack. That's what we do daily in our engineering efforts. Prior to this, I was at Ubuntu. I was a senior data architect there, building cloud-native solutions. Thanks, Brad.

Hi everyone. My name is Marco Rejcic. I'm also a solutions engineer here at Ubite. Previously in solutions engineering at Oracle focused on both cloud and on-premise technologies. So excited to speak to you today. As Nikhil mentioned, we're very active on our Community Slack channel. So if you're able to download Ubite locally or using the cloud or whatever, have any questions, feel free to find us there.

This is our workshop agenda. We're just going to give you a brief overview, getting started with distributed SQL databases and GraphQL. We're going to have a brief overview of our open source database, our open source offering for Ubite. And then we're going to do some hands-on sessions for implementing these. So you're going to do a real-time poll app that'll be with Marco and Asura. For me, we have a social post app with Prisma and Ubite. And then finally, Nico will be doing a space explorer app, which I think is pretty cool, with Apollo Platform and Ubite. At the end of those, if we have some time, we will be going over tuning performance for GraphQL queries with distributed SQL and some do's and don'ts that we've come across as we've worked with customers over the last year or so.

2. Introduction to GraphQL and Lugabyte DB

Short description:

Getting started with GraphQL, you can query and mutate data via GraphQL constructs, evolve the API without versioning, and use out-of-the-box pagination and filtering. GraphQL is a robust query language for your API, supporting both GraphQL and generic REST APIs. Examples are provided to demonstrate data retrieval using GraphQL. We will explore different GraphQL frameworks such as Casura, Prisma, and Apollo in relation to Lugabyte. Lugabyte DB is an open-source distributed SQL database that bridges the gap between traditional SQL and NoSQL systems, aiming to be the go-to database for cloud-native applications. The founders have experience with Oracle, Cassandra, and HPASE at Facebook, where they encountered the need for scalable NoSQL systems due to rapid user growth.

So getting started with GraphQL, we have your app, we have your GraphQL server, our database. We have abstract layers that kind of go over our database so you can query mutate data via the GraphQL constructs, build your schema and evolve the domain models. We can evolve the API without versioning, which I think is kind of nice. And then you have out-of-the-box pagination and filtering. We'll call it disparate data sources and then finally venting support.

So the GraphQL, right, it's just query language for your API, you build your queries, you can get exactly what you need. You can combine a few different resources in a single request. It's pretty robust. And you can, like we said previously, you can evolve your API without versioning and supports event-based system. So we kinda have an example here of a query. If you guys are familiar with GraphQL, this should look pretty familiar. And then, you know, it has your generic rest APIs. So your gets, posts, it supports all of those. Here's some examples that we have on how those work with a particular response. And then for GraphQL, we have our ways for retrieving data, right? Which is our posts. You can see the request there. Here's the query that we would run on this side. So let's say we wanna get the author name and articles from a particular thing table, and then we have that response here that you'll get. And as we work through a lot of these examples, or a lot of these different workshops, we will be running through quite a few of these, so you'll get kinda familiar with those for the different GraphQL, Casura, Prisma and then Apollo. So you get to kinda see what each of those has and how they kind of interact with Lugabyte. It's pretty cool. I think you guys are gonna like it.

So I'm gonna turn it over to Marko here as we will be going over the open source distributed SQL database and how kinda fundamentals of Lugabyte. So before we get into the fun part of the live demo, we wanted to just catch everybody up what we're doing here at Lugabyte DB, why we feel this is important for cloud native applications and really what Lugabyte DB is for those that are unfamiliar. So Lugabyte DB is an 100% open source distributed SQL database. Our goal is to make it the go-to cloud native database for cloud native applications. We're really trying to bridge the two worlds between traditional SQL and the strengths that those types of systems provide with the strengths of typical NoSQL systems. Our founders have vast experience with both Oracle as well as building out Cassandra and HPASE at Facebook in the mid 2000s. And if you guys are, know anything about Facebook in the mid 2000s, that's kind of where they had this crazy user growth and really had to start moving towards NoSQL systems because the traditional database systems that they were using just could not scale to what they wanted.

Watch more workshops on topic

Build with SvelteKit and GraphQL
GraphQL Galaxy 2021GraphQL Galaxy 2021
140 min
Build with SvelteKit and GraphQL
Top Content
Featured WorkshopFree
Scott Spence
Scott Spence
Have you ever thought about building something that doesn't require a lot of boilerplate with a tiny bundle size? In this workshop, Scott Spence will go from hello world to covering routing and using endpoints in SvelteKit. You'll set up a backend GraphQL API then use GraphQL queries with SvelteKit to display the GraphQL API data. You'll build a fast secure project that uses SvelteKit's features, then deploy it as a fully static site. This course is for the Svelte curious who haven't had extensive experience with SvelteKit and want a deeper understanding of how to use it in practical applications.

Table of contents:
- Kick-off and Svelte introduction
- Initialise frontend project
- Tour of the SvelteKit skeleton project
- Configure backend project
- Query Data with GraphQL
- Fetching data to the frontend with GraphQL
- Styling
- Svelte directives
- Routing in SvelteKit
- Endpoints in SvelteKit
- Deploying to Netlify
- Navigation
- Mutations in GraphCMS
- Sending GraphQL Mutations via SvelteKit
- Q&A
Build Modern Applications Using GraphQL and Javascript
Node Congress 2024Node Congress 2024
152 min
Build Modern Applications Using GraphQL and Javascript
Featured Workshop
Emanuel Scirlet
Miguel Henriques
2 authors
Come and learn how you can supercharge your modern and secure applications using GraphQL and Javascript. In this workshop we will build a GraphQL API and we will demonstrate the benefits of the query language for APIs and what use cases that are fit for it. Basic Javascript knowledge required.
How to Solve Real-World Problems with Remix
Remix Conf Europe 2022Remix Conf Europe 2022
195 min
How to Solve Real-World Problems with Remix
Featured Workshop
Michael Carter
Michael Carter
- Errors? How to render and log your server and client errorsa - When to return errors vs throwb - Setup logging service like Sentry, LogRocket, and Bugsnag- Forms? How to validate and handle multi-page formsa - Use zod to validate form data in your actionb - Step through multi-page forms without losing data- Stuck? How to patch bugs or missing features in Remix so you can move ona - Use patch-package to quickly fix your Remix installb - Show tool for managing multiple patches and cherry-pick open PRs- Users? How to handle multi-tenant apps with Prismaa - Determine tenant by host or by userb - Multiple database or single database/multiple schemasc - Ensures tenant data always separate from others
End-To-End Type Safety with React, GraphQL & Prisma
React Advanced 2022React Advanced 2022
95 min
End-To-End Type Safety with React, GraphQL & Prisma
Featured WorkshopFree
Sabin Adams
Sabin Adams
In this workshop, you will get a first-hand look at what end-to-end type safety is and why it is important. To accomplish this, you’ll be building a GraphQL API using modern, relevant tools which will be consumed by a React client.
Prerequisites: - Node.js installed on your machine (12.2.X / 14.X)- It is recommended (but not required) to use VS Code for the practical tasks- An IDE installed (VSCode recommended)- (Good to have)*A basic understanding of Node.js, React, and TypeScript
GraphQL for React Developers
GraphQL Galaxy 2022GraphQL Galaxy 2022
112 min
GraphQL for React Developers
Featured Workshop
Roy Derks
Roy Derks
There are many advantages to using GraphQL as a datasource for frontend development, compared to REST APIs. We developers in example need to write a lot of imperative code to retrieve data to display in our applications and handle state. With GraphQL you cannot only decrease the amount of code needed around data fetching and state-management you'll also get increased flexibility, better performance and most of all an improved developer experience. In this workshop you'll learn how GraphQL can improve your work as a frontend developer and how to handle GraphQL in your frontend React application.
Build a Headless WordPress App with Next.js and WPGraphQL
React Summit 2022React Summit 2022
173 min
Build a Headless WordPress App with Next.js and WPGraphQL
Top Content
WorkshopFree
Kellen Mace
Kellen Mace
In this workshop, you’ll learn how to build a Next.js app that uses Apollo Client to fetch data from a headless WordPress backend and use it to render the pages of your app. You’ll learn when you should consider a headless WordPress architecture, how to turn a WordPress backend into a GraphQL server, how to compose queries using the GraphiQL IDE, how to colocate GraphQL fragments with your components, and more.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

From GraphQL Zero to GraphQL Hero with RedwoodJS
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
From GraphQL Zero to GraphQL Hero with RedwoodJS
Top Content
Tom Pressenwurter introduces Redwood.js, a full stack app framework for building GraphQL APIs easily and maintainably. He demonstrates a Redwood.js application with a React-based front end and a Node.js API. Redwood.js offers a simplified folder structure and schema for organizing the application. It provides easy data manipulation and CRUD operations through GraphQL functions. Redwood.js allows for easy implementation of new queries and directives, including authentication and limiting access to data. It is a stable and production-ready framework that integrates well with other front-end technologies.
Local State and Server Cache: Finding a Balance
Vue.js London Live 2021Vue.js London Live 2021
24 min
Local State and Server Cache: Finding a Balance
Top Content
This Talk discusses handling local state in software development, particularly when dealing with asynchronous behavior and API requests. It explores the challenges of managing global state and the need for actions when handling server data. The Talk also highlights the issue of fetching data not in Vuex and the challenges of keeping data up-to-date in Vuex. It mentions alternative tools like Apollo Client and React Query for handling local state. The Talk concludes with a discussion on GitLab going public and the celebration that followed.
Batteries Included Reimagined - The Revival of GraphQL Yoga
GraphQL Galaxy 2021GraphQL Galaxy 2021
33 min
Batteries Included Reimagined - The Revival of GraphQL Yoga
Envelope is a powerful GraphQL plugin system that simplifies server development and allows for powerful plugin integration. It provides conformity for large corporations with multiple GraphQL servers and can be used with various frameworks. Envelope acts as the Babel of GraphQL, allowing the use of non-spec features. The Guild offers GraphQL Hive, a service similar to Apollo Studio, and encourages collaboration with other frameworks and languages.
Rock Solid React and GraphQL Apps for People in a Hurry
GraphQL Galaxy 2022GraphQL Galaxy 2022
29 min
Rock Solid React and GraphQL Apps for People in a Hurry
The Talk discusses the challenges and advancements in using GraphQL and React together. It introduces RedwoodJS, a framework that simplifies frontend-backend integration and provides features like code generation, scaffolding, and authentication. The Talk demonstrates how to set up a Redwood project, generate layouts and models, and perform CRUD operations. Redwood automates many GraphQL parts and provides an easy way for developers to get started with GraphQL. It also highlights the benefits of Redwood and suggests checking out RedwoodJS.com for more information.
Adopting GraphQL in an Enterprise
GraphQL Galaxy 2021GraphQL Galaxy 2021
32 min
Adopting GraphQL in an Enterprise
Today's Talk is about adopting GraphQL in an enterprise. It discusses the challenges of using REST APIs and the benefits of GraphQL. The Talk explores different approaches to adopting GraphQL, including coexistence with REST APIs. It emphasizes the power of GraphQL and provides tips for successful adoption. Overall, the Talk highlights the advantages of GraphQL in terms of efficiency, collaboration, and control over APIs.
Step aside resolvers: a new approach to GraphQL execution
GraphQL Galaxy 2022GraphQL Galaxy 2022
16 min
Step aside resolvers: a new approach to GraphQL execution
GraphQL has made a huge impact in the way we build client applications, websites, and mobile apps. Despite the dominance of resolvers, the GraphQL specification does not mandate their use. Introducing Graphast, a new project that compiles GraphQL operations into execution and output plans, providing advanced optimizations. In GraphFast, instead of resolvers, we have plan resolvers that deal with future data. Graphfast plan resolvers are short and efficient, supporting all features of modern GraphQL.