There was a company, it was called Apollo, and they built a solution. And I was super smart, or I thought I was super smart. So I took their solution and made it much, much better. From a business perspective, it was the worst idea ever. After one and a half years and almost going broke. So Apollo changed their licenses. They had a product and they changed the license from open source to closed source. And we sat together in the Netherlands, it was a retreat. We figured out one evening, we looked at the numbers and we figured out we're dead. So at that point, it was clear it's over. So we killed our first product. My name is Jens Neuse and I'm the CEO and one of the co-founders of WunderGraph.
This is Code Story, a podcast bringing you interviews with tech visionaries.
Six months moonlighting. There's nothing on the back end.
Who share what it takes to change an industry.
I don't exactly know what to do. Too many goes to get right.
Who built the teams that have their back.
A company is its people. The teams help each other achieve more. Most proud of our team.
Keeping scalability top of mind.
All that infrastructure was a pain. Yes, we've been fighting it as we've grown. Total waste of time.
The stories you don't read in the headlines.
It's not an easy thing to achieve, my dear. Took it off the shelf and dusted it off and tried it again.
Drive the ups and downs of the startup life.
You need to really want it. It's not just about technology. All this and more.
on Code Story. I'm your host, Noah Labhart, and today, how Jens Neuse has built the open-source solution for federation that avoids drift under a single trusted contract model. Jens Neuse grew up in Germany, originally planning to be a carpenter. In his second year as an apprentice, he was in a motorcycle wreck that thrust him into a process of surgery Eventually, he decided he wouldn't be doing carpentry and got into sysadmin work. Once he got bored with this, he moved into startups, learned how to code, and started digging into programming, APIs, and eventually GraphQL Federation. Outside of tech, he's married with three young kids. He loves to sit-ski on the mountain, which is the coolest carbon fiber chair on a ski, where you steer with your knees and hips. After chasing building a better Apollo, Jens and his team ran into a point where their prior product and company was doomed to go under. When they accepted this fact, they started to think about what people actually wanted and started to dig into the federation of GraphQL. This is the creation story of WunderGraph.
WunderGraph is a tech company. We're 30 people, most of us are engineers, and we build a platform. We call it Cosmo. It's fully open source and we offer a managed version of that. And at the very core, what we do is you can do GraphQL federation with our platform. And for everybody who doesn't know what that means is, imagine you have a very large API, and this API, it's actually, it's like a tree, and this tree is split down into subtrees. So it's split down into sub services. If you put all these services together, you have the one API, but the implementation is actually split into these subsystems. And what is cool about this is on the consumer side, it looks like a monolith, and on the the implementation side, it's actually microservices. So that means you can have a lot of different apps and use cases and mobile and LLMs and AI agents, and you can have all sorts of API consumers. They all think they talk to a monolith, but on the other side, there can actually be 100 teams and each team responsible for one little part of this tree. It's an approach that allows an organization that is growing or that has a very large domain It allows them to scale that across many teams. And there are super interesting problems to solve. For example, if you change one field in one of the services, you need to figure out that it's compatible with all the other services. And maybe you want to have some governance in place that if you create a user type and I want to add a field to the user type, maybe we should have a process where you can propose the change and I can review it and we can agree on good schema design and these kind of things. can't have wild west with 100 teams building APIs. You can, but there's a certain point where people, like the specialists in the market, they will then say this is called API sprawl. When everybody does whatever they want, then it's not gonna end well. And we solve all these kind of problems of scaling APIs and making sure that this all fits together. And yeah, it's interesting stuff. Of it started like very typical. And by the way, if technical founders are listening, this is where you should listen very carefully, because you can learn a lot from our mistakes, especially my mistakes. Okay, so there was a company, it was called Apollo, and they built a solution, and I was super smart or I thought I was super smart. So I took their solution and made it much, much better. Like it They had over 100 million in funding and our company had 3 million in funding. And I said, okay, let's take what they have, make it better and create like a new standard, a better standard and go to the world and they will take the better solution. From a business perspective, it was the worst idea ever. This old idea of I take something and then I have good intentions and I want to build a better thing and I want to solve it in a better way. miss you and i would say i have made a very interesting transition like when i started WunderGraph, I was very much like super focused on the tech and how to build things and how to make them fast and efficient and everything, and over the years I have completely transitioned into how can we build something that people will buy? Because there's a huge gap between amazing amazing solution and solution that people want to buy. So after one and a half years and almost going broke, like we were almost dead and we had to let go some people. And one of the founders actually was ready to leave the ship because it was sinking too fast. He wanted to stay outside on the sideline and help us reduce the burn. But what we figured out after, I think, one and a half, two years, and that was our pivot is, so Apollo changed their licenses. They had a product and they changed the license from open source to closed source. And we sat together in the Netherlands. It was a retreat. And we figured out one evening, we looked at the numbers and we figured out we're dead. So at that point it was clear, it's over. So we killed our first product and we built Cosmo. It's so stupid simple. We sat in Netherlands, there was like an old sheep house. We sat all together and we were like, okay, what are we going to do? Stefan, one of my co-founders, he opened his black notebook and he looked at it and he said, I have some notes from a couple of meetings. And like our last straw is that a couple of people said, could you do Apollo Federation, but open source? And so we sat there in this old sheep house and we were like, OK, if that's the thing what people want, let's build Cosmo. And then two weeks after this retreat, he was like, it is typical fashion. Hey, guys, I have built something. It's called Cosmo. And we were, holy, it cannot be. What did you do? And he built the first MVP of Cosmo and he just pulled something together.
What I want to dive into is that MVP. And so maybe it was when your co-founder brought the solution and then you took it from there. Or maybe it's a little bit before or after in all of that. I'm curious about that MVP. about it what sort of tools you were using to bring it to life and how long it took you to basically take it to the users where they could use cosmo
So this was in the pre-AI era. So I don't know, when, like, two years ago or something. So it's, it was a different time. You didn't have Cursor. So, you know, the old guys like us, we wrote code by hand. What we did is actually on one day in the on-site, we had the realization, okay, we're dead. And then next day what we did is we sat together, like the whole team, and we talked a bit to customers and looked at the notes and figure out, and looked a bit at Apollo, and we were like, okay, what's the minimum thing we need? What would make people buy? And we built that. That first version, it was like like really bare bones, like compared to today. I would say it was like 5% of the scope, but we knew we need an API gateway. It needs to be compatible with the Apollo Federation spec. We knew we need a backend to somehow manage the state and everything. So Dustin built like a Node.js backend. And we knew that we need a studio. So we built a Next.js studio with Tailwind, like not waste time on UI or anything. We also knew that we want to build everything on open source and keep things super simple. We didn't want to roll our own off. So we used Keycloak. It's ugly, but it is complete. It has a lot of features. It's well maintained. And today we have a Keycloak provider. They are ISO certified and everything. We're now SOC 2 and we're working on ISO 27001. When you have enterprise customers, you have new problems. But coming back to the MVP, it was really like we had a router in Go. We had a CLI in TypeScript, a backend in TypeScript, and frontend, Next.js, and bare bones. And I think one of our big advantages, and this is also something I would recommend someone if they also want to build a successful business. We try to use the most boring stack we can actually use. That means the most boring database in the world, Postgres. this thing on the most boring Kubernetes cluster on GCP. We use GCP Autopilot. We don't use any fancy features or any fancy tech. If you want to be fast and innovative, use tech that is proven and boring. Because the last thing you really want to do is build on top of something that keeps breaking. You know what's interesting? We have this GCP cluster. And I think now for three years in a row, our backend, it's 100% up, although it's just a Node.js container on GCP. But this is, it's, I don't know, it's such a great architecture to deploy to.
Now, how did you progress and mature the product from that point? I'm curious about how you built your roadmap. And, you know, you mentioned enterprise customers, there are probably enterprise customers now, maybe not in the early days. decided that, okay, this is the next most important thing to build or to address with WunderGraph?
I think there's two parts. And I think this was one of the most stressful periods of my life because so I'm ultimately I'm responsible for the product. So I have a vision of things I would like to do. And then one thing I have to admit, and I hope not so many customers are listening to us us here but one thing we did in the beginning is we had enterprises in the pipeline and what we tried to sell them it never really worked and it never really existed like you cannot imagine how stressful this was but we tried to make deals but we knew it's not working somehow i don't know it was as a founder you need to find customers who need something so desperately that they hop on a a call with you, the founder, you can build trust. They are not buying your solution because your solution is garbage. They buy you. You are the product. So I was on calls constantly and we educated people. We were consulting, we were helping, we were doing everything we can. Plus my CTO, Dustin, we call him the machine. Somehow we figured things out. There was always this is balancing between the vision where I think if we go there, we will be able to have a larger total addressable market. As a founder, as a CEO, like one of your major goals is not just add fancy features or something, but you want to add stuff that allows you to have a bigger funnel, talk to more people, sell to more people. So that's like your long-term North Star. But then you have this constant problem of we need this and that to close that deal. So for a very long time, I had to give up my vision and just do what secured us deals because we were broke. And so we went from deal to deal. And then our ARR was, burn was still high, but our investors gave us another 500k. And then we landed some bigger deals and then we quickly became profitable. And that was a year where we, in that year, within 12 months, we went from we're dead in two months to we're profitable. That was a huge year. And yeah, it was actually last year.
So there's people involved, right? You mentioned you're a 30-person team here. How do you build that team? How did you build that team? And I'm curious what you look for in those people to indicate that they're the winning horses to join you.
when you try to hire you will realize that nobody wants to join you because you're nobody like i can work for so many established companies why would i join you guys and so you hire what you can and and i think this is one of my first points in in terms of helping other founders to start with something it's not just i build a company and then i raise money and then success but maybe before Before you build a company, build a network. Like you need that network already. You need the people. And maybe if you don't have the network and you don't have the people, maybe it's not yet the right time. Maybe you should work in a startup and build the network. Okay, we didn't have that because we made every mistake in the book. One funny thing we did in the beginning is we used a tool and one month later the company shut down. And so we like the people and they ask us, hey, we have two guys here from India. Maybe they can work for you. We hired two guys, two young guys from India. I think in the end, this was like they were juniors. It was one of our luckiest hires, I would say, because and this is something you need to think about. If you have a machine like Dustin, so you need Dustin, the CTO machine. If you don't have the best CTO in the world, you will fail. someone who is capable of building back-end, front-end, everything. Like, you need that. But if you give him two guys from India who are junior but extremely ambitious, they will work day and night, and they will help your Dustin to get the front-end done and some other things. And the coolest thing is they are now with us like three years, and they know, like, they might not be seniors yet, but they know our domain better than everybody else. recommendation, have someone extremely senior and maybe give them a junior and this junior can grow and everything. Now, the other question is, who do we hire today and what are we looking for? And I would say like you need a skill set. It needs to be good enough so that you can do the job. But I think most importantly, what we look for is attitude. It's do you care? Is it important to you to build something great and to not just finish the ticket but do you really want to build something great and this can be like marketing sales whatever and and i think attitude is everything because if you need a programmer and we need a senior you cannot be a junior but if you're a senior and you don't care it it just won't work and on the other side if you're lacking some skills but you really care that gap it will be filled quickly if I send and you don't know Go, but you really care, you will pick it up so fast, and I think in especially in a small startup we want to find people who are into this problem who care who want to grow together and so we don't have like superstars in the team we have Dustin's really good but very humble we I would say and this is We're working hard. Everybody helps each other. And we have that common nonstop. We want to hit it big. And it's nice, humble people.
Okay, let's flip to scalability. And this will be interesting because it's critical to what you're building, not only to support the enterprise, but to federate GraphQL in general. So, you know, I'm curious where scalability has sort of reared its ugly head, right? Have there been interesting areas where you've had to fight it as you've grown?
Scalability on the software side, this is, I would say, it's very interesting because in the first year where we built our software, we ran into some customers who had ridiculous queries. You have to think about like the way GraphQL Federation works is you have this monolithic schema. You send a query to the, you have the router, that's the API gateway. And the router, it takes this GraphQL query and then looks into the query. And like I said earlier, GraphQL Federation is like you take a tree and you cut it into subtrees. And each service is responsible for a subtree. If I write a query that covers some part of this tree, it needs to be resolved by always a different combination of subtrees. And this gets especially complicated to figure out what to do is when you have abstract types like unions or interfaces. And let's say one service implements some structs that are members of a union. Another subgraph implements some other structs. we call this query planning very complex engineering behind that to figure out how do we get the data and how do we get it in the right order and in the end when this process is done we have a query plan which again it's a tree of fetches by the way if you learn programming and you think data structures are stupid we do a lot of things with data structures and trees and everything and you do tree walking every day and I personally love tree walking from a mental model like walking through ASTs. I love it and transforming ASTs. It's fun. But okay, coming back to this scalability issue, we had customers who would send more than 10 kilobytes of query to the router. And then the router for I don't know, a minute or something tries to build up query. And so we had issues where we needed to figure out, okay, how can we built caches so that the query planner can look up things faster so that query planning time is faster now like our p95 query planning time is like 10 seconds which is still not good enough we also build a query planning cache because when you start a new router or when you send a router a new config that cache is empty we also build a heuristics based system that looks into your analytics and builds a list of queries we should warm up a router before it gets a new config that means you never really plan a query because we have planned it ahead of time that's quite smart and it helps us to make the router extremely efficient one other problem we had is with this customer with those weird queries we realized that due to the structure of the queries we would build like this query of 10 kilobytes we would actually build a sub query that we sent to the service of I don't know like a couple of megabytes it was too big and we looked into it and we figured out that the problem is the query we generate for the subservice it actually has some duplicate fields because of the way we plan queries as a solution we build to that reduces the query size by 99%. It's actually pretty, pretty cool. So I built an algorithm that would traverse this query. And every time it walks through a selection set, it would print the selection set into a printer, which in this case was a hash function. And so we would build a hash map where we keep track of all the selection set in this gigantic query, and then try to figure out do we have duplicate And then if you find these duplicates, you go from the leaf nodes all the way up step by step to the parent nodes and you replace all duplicate selection sets with a single fragment. A fragment is like a reference to a selection set, which you can then with an inline fragment, you can inline it back. It's like creating a function and then instead of calling code, calling the function. And so, yeah, I built this algorithm. Quite simple. A little bit stupid, actually. But it's able to reduce the query size by 99%. And yeah, we have it on for quite some time. And this allows us to send the smallest possible query. So that was some challenges on the technical side.
Okay, so as you step out on the balcony, you look across all that you've built at WunderGraph. proud of?
I think I'm most proud of the team. The team we have built, I like to meet them. Sometimes we do retreats. Maybe investors don't like to hear it so much, but for me, it was always important to do something important with my time in life. And just becoming rich, it's not enough. It cannot be the goal. Once you have the money you need to keep the family For the vacation, money is not the big topic anymore. You want to go beyond that. And my answer would have been different a couple of years ago. But when I look at our company, we have built a group of really smart, amazing people. I really like them. And I think we're doing something meaningful together. And it makes me proud that we have built an environment where these people can spend so much time of their life together. Super meaningful.
Okay, let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it.
I hinted it, but our first product was completely wrong and we wasted so much energy. We had an SDK. This SDK, it would allow you to combine multiple APIs together. So it was designed for a single user or a small team to be efficient. And we didn't really have a lot of success with this solution. I thought it's a great solution. Some people in open source, they really liked it. Quickly, we had 2K stars and people were really engaged and we got a lot of feedback on GitHub and everything. So from an outside perspective, you would say this looks quite successful. Like it's a good thing and people ask questions and we kept improving. Proving what I didn't realize is when you build a solution and you listen to people and you listen to feedback from people who are not paying you, you can keep building forever, but you're paving the road for the wrong people. I think one of the biggest mistakes here was that I was in love with my solution and I wanted to build what I think is right. and what we didn't figure out early on and we should have focused much more on that is to think about monetization and everything. So we said, okay, nobody is buying our support. We now build a cloud, the Vercel for backend so that people can host our thing. And we build CI pipelines like GitHub Actions and deployments on fly.io, because it keeps breaking. And we built this whole cloud service where you could deploy our SDK because we thought if we do that, if we only automate that problem, then everybody would come. And then we had two customers and they were horrible customers because they were super demanding and they paid like 50 bucks per month and it just didn't work out. I think the biggest learning here is and like technical founders love to hide in code. And they love to be like, I'm just going to build and I just add more features and eventually we will be successful. And I did that for a very long time. Biggest mistake. And I can tell you, if you want to be a good founder, your number one job is to talk to people, talk to customers and get them to commit to buying something or to commit to anything. Like these days, it's like when you stop being needy, it's so simple. You don't want to admit it because you're just so hopeful, but it's wrong. Today, we do very simple mechanisms because we're not needy. We're like, okay, we engage with the customer. Then we say, can we please do an NDA? Because without NDA, we cannot talk with you about financials. And then they would say, you know what? NDA, that's too much work. So at that point, if they don't want to go the way to create an NDA, it's not a problem for them. It's not important. Move on. Find someone who wants to sign an NDA because get the other side to do something for you. Nobody will ever give you money if they are not even willing to get someone else to sign an NDA or something. Get people to commit to something. And also another big thing. You want to operate in a big market. If you operate in a very small market and it's hard to get some leads, it's much easier to be in an extremely large market than just because you can talk to more people. Yeah, like big conclusion, stop building, like really never stop building. Talk to people, get them to commit to something and only build stuff when you really have an opportunity where people want to buy something from you.
Let's move forward then. I'm curious about what the future looks like for WunderGraph, for the what you've built, the product, and for your team that's
very straightforward. The cool thing is when you start in a niche and you master it, and you, we now have, I don't know, 50-plus enterprise customers. If you talk with them enough, you learn a lot. And so what we're currently doing is essentially two things one is we want to be in a much bigger TAM so bigger total addressable market so we take the principles of federation currently you can only really use Cosmo with GraphQL and we're opening that up and we apply the same principles and tooling to REST APIs and other APIs so we we allow anybody to to use that even companies that don't want to use GraphQL at all And the second part is we learn a lot through our customers that software engineering is actually not so much about tech also, but it's a lot about people and process. And so we're investing heavily in tooling for API design and collaboration and helping people build great APIs together. And that's really the focus is like less on queries and query planning and these kind of things, but much more on how can people work together better. And we're the next couple of months, we're launching something super exciting.
Let's switch to you. Jens, who influences the way that you work? Name a person or many persons or something you look up to and why.
I would say in the past, read a lot of books. One person is Steve Jobs because he always felt like he really cares about his stuff and quality. He was a bit crazy, but he really cared and he wanted to build a great product, and he cared about aesthetics and things like that. So I wouldn't say it's a role model, but it's definitely inspiration. And I think my biggest critic is myself, and I'm, I don't know, I'm, for me, it's It's never enough. So I don't know. Even though you could say we have some level of success, for me, we're still very early and we have a lot to learn. And yeah, I think it's important to stay on the ground and humble. And sometimes it's good to have a wife and kids and family who keep you grounded. And otherwise, you're just a weird tech guy. But having a family in the back, I think it really helps you to stay a normal person.
100% agree. question. So you're getting on a plane, you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. And can we show it off to you right there on the plane? What advice do you give that person having gone down this road a bit?
I think when you're a young entrepreneur, it is very hard to filter inputs and feedback from other people. Like there will be very experienced people who can tell you how they were successful. The problem typically is they were successful in a different market or maybe in a different time, and tech has changed and time has changed and the world has changed, and maybe you should just go your way. I think you should have your own North Star, like where do you want to go long term. Be stubborn long term, but short term don't be like too stubborn. Burn, like you can adjust. Like me, I wanted to help people build great APIs. I came up with my own solution. It didn't work. I adopted something from Apollo that worked, and now I can actually go back to my solution. I can now make it better again, but I first had to go a different path. So my advice for you, yeah, listen to people, like don't be stupid, but don't listen too much. Find your own way, because Because how will we build the next unicorns if you're doing what we did? Then we already did it. You need to do something else. Figure out your own
way. That's fantastic advice. Couldn't agree more. Well, Jens, thank you for being on the show today. Thank you for telling the creation story of WunderGraph.
Thank you, Noah.
And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.