New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S8 Bonus: A Unified GraphQL Layer at the Edge with Fredrik Björk of Grafbase
Jun 30, 2023 19:58

S8 Bonus: A Unified GraphQL Layer at the Edge with Fredrik Björk of Grafbase

Bonus
0:00 / 19:58

About this episode

A GraphQL layer at the edge that unifies data sources: Fredrik Björk of Grafbase describes putting them behind one fast API.

———

Fredrik Björk is originally from Sweden, but has spent many years in San Francisco. He got started coding in BASIC on his Commodore 64 (while also playing video games, of course). Post graduating from RIT, he has been involved in many startups, like Avatars United and The Real Real. Outside of tech, he is a Dad of two kids and likes to run - specifically marathons. Beyond that, he likes wind surfing and wing foil.

Fredrik noticed that the patterns of development has changed towards outsourcing over building everything in house over the past decade. Fast forward to 2021, great services exist to empower developers to ship faster. Fredrik wanted to build a service like this for the API layer, and below.

This is the creation story of Grafbase.

Sponsors

Links

Times are from the episode recording; ad breaks in your player may shift them a bit later.

Read the key answers from this episode, with quotes and timestamps from Fredrik Björk from Grafbase: https://www.codestory.co/episodes/s8-bonus-the-realreal-ctos-playbook-engineering-rust-powered-graphql-federation-at-the-network-edge-with-fredrik-bjork-founder-ceo-of-grafbase/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



Our Sponsors:
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai
* Check out Perplexity: https://pplx.ai/codestory


Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Featured Guest

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • Test the Pitch First: Björk iterated on Grafbase's landing page before building the dashboard and product, learning what attracted people and what confused them. He found the pitch harder than expected.
  • A Scrappy Two-to-Three-Month MVP: The first version was a serverless database with a GraphQL interface, using a Next.js dashboard on Vercel, Firebase and Dgraph behind the scenes. Speed to feedback mattered while Björk paid contractors out of pocket.
  • Selling Into Existing Data: Larger companies already had databases they trusted, making backend-as-a-service hard to sell. Grafbase accelerated its focus on connecting existing databases and APIs through a unified GraphQL layer at the edge.
  • Betting on Edge Compute: Björk expects dynamic compute to follow static content to edge networks. Grafbase deploys each project as a GraphQL gateway across 300-plus data centers and uses edge caching to speed up single-region APIs and databases.
  • Three Hiring Filters: A Hacker News "Who's Hiring" post sought people who knew Rust, wanted to build for developers and were remote first. Grafbase went from just Björk to what he recalls as seven people in three weeks.

Frequently Asked Questions

What is Grafbase?

Grafbase, founded by Fredrik Björk, provides a managed GraphQL gateway and an edge network that accelerates APIs and existing data sources, including on-premise databases and third-party APIs. As Björk put it, "we want to unify them behind a GraphQL endpoint as well as make them go faster globally" [05:41].

How was the Grafbase MVP built?

Björk built it in about two to three months, with help on the dashboard from a front-end developer and a part-time designer, using Next.js, Vercel, Firebase and Dgraph. He said the MVP he had in mind "at the time was really a serverless database" [06:06] with a GraphQL interface.

Why did Grafbase shift away from a pure backend-as-a-service focus?

Björk found that mid-size and larger companies usually had databases they already trusted, so Grafbase moved sooner than expected toward connecting existing databases and APIs. In his words, "you realize that it's really hard to sell it into bigger companies" [14:38].

Why does Grafbase deploy GraphQL gateways to the edge?

Björk argues that most companies have users in more than one region, while most APIs and databases sit in a single region, so a nearby gateway with edge caching can improve performance. He said "you get a GraphQL endpoint that sits in 300 plus data centers within five seconds" [10:21].

What would Fredrik Björk do differently if he started Grafbase again?

Björk would focus much more on fewer things and dig deeper into what customers want and which pain points to solve. As he put it, "just because you are 19 people doesn't mean you should be working on 19 things" [18:21].

Media List 5000, Podcasts, Fall 2026