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

Published: 2023-06-30
Duration: 1198s
Audio: https://pdst.fm/e/pscrb.fm/rss/p/audio4.redcircle.com/episodes/ccc74085-27bf-40a8-9635-fec95ea8ae19/stream.mp3

## 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.

**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](https://grafbase.com/).

Sponsors

- [Cipherstash](https://cipherstash.com/codestory)
- [Treblle](https://www.treblle.com/codestory)
- [CAST AI](https://cast.ai/codestory/)
- [Firefly](https://www.gofirefly.io/codestory)
- [Turso](https://turso.tech/codestory)
- [Memberstack](https://memberstack.com/codestory)

Links

- Website: [https://grafbase.com/](https://grafbase.com/)
- LinkedIn: [https://www.linkedin.com/in/fbjork/](https://www.linkedin.com/in/fbjork/)

  

Timestamps

00:00 – Intro

05:49 – Building the Grafbase MVP

06:58 – MVP Decisions and Tradeoffs

08:26 – Maturing the Product Roadmap

11:02 – Building the Grafbase Team

12:02 – Scaling at the Edge

12:53 – Proudest Accomplishment

14:14 – Learning From a Mistake

15:48 – The Future of Grafbase

16:52 – Influences on Fredrik's Work

17:42 – What He'd Do Differently

18:34 – Advice for Young Entrepreneurs

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/](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:

- [Tiger Data](https://tigerdata.com/)

- [Protected Harbor](http://protectedharbor.com/codestory)

- [Render](https://render.com/)

- [Fitnexa](https://www.fitnexa.com/)

- [Perplexity](https://pplx.ai/codestory)

- [Entelligence](https://entelligence.ai/)

Checkout our [Substack](https://news.codestory.co/subscribe)

Checkout our [Stacklist!](https://stacks.codestory.co/)

Checkout our [Patreon!](https://www.patreon.com/cw/codestory)

Hosted by  [Noah Labhart.](https://noahlabhart.com/)

  
  
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](https://redcircle.com/brands)  
  
Privacy & Opt-Out: [https://redcircle.com/privacy](https://redcircle.com/privacy)

## Chapters
- 0:00 — Intro
- 5:49 — Building the Grafbase MVP
- 6:58 — MVP Decisions and Tradeoffs
- 8:26 — Maturing the Product Roadmap
- 11:02 — Building the Grafbase Team
- 12:02 — Scaling at the Edge
- 12:53 — Proudest Accomplishment
- 14:14 — Learning From a Mistake
- 15:48 — The Future of Grafbase
- 16:52 — Influences on Fredrik's Work
- 17:42 — What He'd Do Differently
- 18:34 — Advice for Young Entrepreneurs

## Frequently Asked Questions
- **Q:** What is Grafbase? — **A:** 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].
- **Q:** How was the Grafbase MVP built? — **A:** 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.
- **Q:** Why did Grafbase shift away from a pure backend-as-a-service focus? — **A:** 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].
- **Q:** Why does Grafbase deploy GraphQL gateways to the edge? — **A:** 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].
- **Q:** What would Fredrik Björk do differently if he started Grafbase again? — **A:** 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].
