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.

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.

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.

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.

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.

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.

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
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 Conference 2022React Advanced Conference 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.
Relational Database Modeling for GraphQL
GraphQL Galaxy 2020GraphQL Galaxy 2020
106 min
Relational Database Modeling for GraphQL
Top Content
WorkshopFree
Adron Hall
Adron Hall
In this workshop we'll dig deeper into data modeling. We'll start with a discussion about various database types and how they map to GraphQL. Once that groundwork is laid out, the focus will shift to specific types of databases and how to build data models that work best for GraphQL within various scenarios.
Table of contentsPart 1 - Hour 1      a. Relational Database Data Modeling      b. Comparing Relational and NoSQL Databases      c. GraphQL with the Database in mindPart 2 - Hour 2      a. Designing Relational Data Models      b. Relationship, Building MultijoinsTables      c. GraphQL & Relational Data Modeling Query Complexities
Prerequisites      a. Data modeling tool. The trainer will be using dbdiagram      b. Postgres, albeit no need to install this locally, as I'll be using a Postgres Dicker image, from Docker Hub for all examples      c. Hasura

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
We all love GraphQL, but it can be daunting to get a server up and running and keep your code organized, maintainable, and testable over the long term. No more! Come watch as I go from an empty directory to a fully fledged GraphQL API in minutes flat. Plus, see how easy it is to use and create directives to clean up your code even more. You're gonna love GraphQL even more once you make things Redwood Easy!
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
How many times did you implement the same flow in your application: check, if data is already fetched from the server, if yes - render the data, if not - fetch this data and then render it? I think I've done it more than ten times myself and I've seen the question about this flow more than fifty times. Unfortunately, our go-to state management library, Vuex, doesn't provide any solution for this.For GraphQL-based application, there was an alternative to use Apollo client that provided tools for working with the cache. But what if you use REST? Luckily, now we have a Vue alternative to a react-query library that provides a nice solution for working with server cache. In this talk, I will explain the distinction between local application state and local server cache and do some live coding to show how to work with the latter.
Batteries Included Reimagined - The Revival of GraphQL Yoga
GraphQL Galaxy 2021GraphQL Galaxy 2021
33 min
Batteries Included Reimagined - The Revival of GraphQL Yoga
The Guild has recently released Envelop - a new, modern GraphQL Server Framework and plugin system. In this talk I’ll share a brief overview of Envelop and why you should probably upgrade your existing GraphQL server to it.
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
In this talk, we'll look at some of the modern options for building a full-stack React and GraphQL app with strong conventions and how this can be of enormous benefit to you and your team. We'll focus specifically on RedwoodJS, a full stack React framework that is often called 'Ruby on Rails for React'.
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
Though GraphQL is declarative, resolvers operate field-by-field, layer-by-layer, often resulting in unnecessary work for your business logic even when using techniques such as DataLoader. In this talk, Benjie will introduce his vision for a new general-purpose GraphQL execution strategy whose holistic approach could lead to significant efficiency and scalability gains for all GraphQL APIs.