S2 E20: Data-Driven Supply Chain Logistics & E-Grocery Solutions with Daniel Gebler of Picnic [0:00:00] Noah Labhart: This episode of Code Story is sponsored by Ladder. Ladder was founded by LeBron James and Arnold Schwarzenegger to change the way supplements are made. They worked with the top scientists to formulate a line of clean performance products. Unlike other supplements, every batch is tested by a third party to verify the highest standards for quality and safety. We all know what a tremendous athlete LeBron is, and Arnold, no explanation needed. If they back it, you know it's got to be good. Ladder's goal is to help you unlock your best in any situation. situation. Right now, that means access to special offers and expert advice from their community. Use code BETTEREVERYDAY, all one word, all caps, for 30% off everything site-wide at ladder.sport. That's BETTEREVERYDAY, all caps, all one word, for 30% off at ladder.sport. [0:00:50] Daniel Gebler: Each delivery time is now refined based on the observations that we have from deliveries of yesterday and the day before. That means the system itself and the delivery accuracy becomes day by day better purely by new operational data. There's no software change, it's pure feedback from data into our operation systems that make it day by day better. And this is the third stage where we are now, which is kind of a self-learning and self-optimizing loop for most of the systems across especially the operational supply chain from purchasing front door delivery. I'm Daniel Gebler, CTO of Picnic. [0:01:34] Noah Labhart: This is Code Story, a podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host, Noah Labhart. And today, how Daniel Gebler built the tech behind the online supermarket Revolutionizing the last mile. All this and more on Code Story. A resident of Amsterdam, Daniel Gebler found his way into tech through an artistic route. Through creating demos combining visuals and music through technology. A husband and a dad of two, he enjoys rock climbing, but mostly bouldering indoors. Though he loves to get out in the trees with his friends when he can. After leading R&D at Fredhopper, he took several years to do research on large-scale systems. Coming out of his research in 2015, he joined Picnic, the online supermarket delivering groceries directly to your home, free of charge. If [0:02:41] Daniel Gebler: you build an online retailer, then there's a lot of stuff to build. So on the one hand, you need to have an app where customers can place order, but you also have to have systems where you can buy products from suppliers, where you can warehouse management, where you can make route planning, people management, payment, HR planning, all kinds of different tools. In an early stage, when you build an MVP, you have very limited resources and you certainly can't build all this stuff. So we did it very simple. We built only our consumer proposition, meaning our shopping app. Everything else was a very simple pen and paper or a Google Sheet solution which got us started. And that meant that we could have a proof of demand where we could see if customers like what we do and made a fulfillment and the logistics on a pure pen and paper approach. And at some point we saw, well, there's a lot of customers that really like the service, now we need to scale up the systems. And then one by one, we moved this pen and paper or spreadsheet-based solutions into actual real products where we had a full-scale buying solution, a full-scale warehouse management solution, a full-scale route planning solution, etc. [0:03:51] Noah Labhart: That's very cool. So you started out in an unconstrained model, essentially. You pen, paper, spreadsheet, and then you figured out what people really needed before you built it. Is that true? [0:04:03] Daniel Gebler: That's absolutely true. And we did one more step. We actually started in Stealth mode. So that means we didn't know exactly will customers like what we have thought about, will customers really love our proposition. So we started a mode where we had an unbranded launch. We just shared our idea, our proposition to customers and looked what will customers like. And then we saw that customers started to really start ordering with us without any real brand without any benefit of kind of a big retail corporate we got started said customers really placed orders with us and then there's something what we built until the scale of a couple of hundred orders on a weekly basis then we felt comfortable that we can make a public launch and that was the moment where we said well now we need to make a little bit of PR we just invited a few agencies and then they started to report about this. And we saw in the next stage, basically the entire country subscribed to the service. And then we had the reality, we had just a few cars, while actually tens of thousands of customers subscribed to the service. Now we quickly needed to build a tool that allowed us to manage which customers can actually immediately place an order and which customers place at a little bit later stage an order. And that is something what we call the waiting list, cannot immediately enter the shop, but one by one, we let them into the shops that they can place an order. [0:05:29] Noah Labhart: That's excellent. So let's dig into the MVP a little bit. Tell me about the tools that you use to bring it to life. So you mentioned an app, you mentioned a digital platform. You know, what sort of software frameworks did you use to start building the next model, the MVP? [0:05:45] Daniel Gebler: So on the mobile shopping site, we thought a bit about, should we build a web shop? Should we build an app? app? Should it be a native app or is it one of these hybrid apps? So what we saw is web is declining, app traffic is increasing. So we had only money for one platform. So therefore we moved to an app approach. And at a later stage, we also realized that it was pretty smart and I will get a bit into this later. And for the app solution, we first looked into maybe hybrid solutions, but then we learned from the Facebook experience, where it tried tried also with HTML5 to build up a hybrid solution and that this is not the smartest approach, so we built native iOS and Android apps. So what we realized at a later stage is, said building an app itself is convenient for customers for two reasons. Number one, is you can place the app wherever you like. The second thing is, you can actually mimic in all behaviors that all customers have in the app. In the old behaviors, said for especially food shopping, have a small sticky note on their fridge. And the sticky note simply says, the next time when I need to go for shopping, I need to buy milk, and I need to build butter or cheese. And that is a list that is built incrementally whenever you run low on a product. This is something what in essence, most of the customers are doing when they're building up their shopping list, just incrementally whenever you run low on a product. product. We see now said the same behavior is mimicked in the app itself, where customers are opening the app, adding a product to the basket and close again the app. This is a very different shopping behavior than what you see for non-food. If you buy electronics, then you just open the app, you compare, for instance, all different variants of an iPad or an iPhone, and then you press the buy button and then you become happy. With food, where you buy not only two or three items, but you buy 30 items, you build incrementally list. So you build maybe first dairy products and then meat products. And later you have more the kind of special weekend products. And that is something what we now can model with the app, which would not be possible on web interface. So [0:08:00] Noah Labhart: what decisions and trade-offs did you have to make in the short term when building that MVP? You mentioned some of them deciding to go native over hybrid, which makes a lot of sense, especially the type of app you're building. But what other decisions did you have to make in the short term as far as perhaps taking on technical debt or limiting features? Can you talk through that a little bit? [0:08:23] Daniel Gebler: So in such a business where you have a huge amount of consumer demand, the key decisions that you have to make is for all kinds of new services that you want to offer or the new scale that you want to achieve is, Do you build immediately a large-scale solution or do you build incrementally your scalable solutions up? And that has been an ongoing debate. If you immediately build a solution or a feature for the scale of a couple of million customers, or do we go incrementally, build just an MVP for a thousand customers, then maybe for 10,000, then for 100,000 customers. And this kind of balance between building MVPs and building scalable solutions is one of the key trade-offs and key decisions to be made. The other bigger trade-off decisions that we had to make was the make versus buy. And make versus buy is a decision where we very carefully thought about which systems are mission critical and which systems or which services can we take from a third party. Let me give you an example. We started very early on, not only to build our app, but also the route planning. Because the model that we have, our last mile model, is a unique milkman-based distribution model, which we wanted and we needed to build ourselves. There's simply no solution on the market that can fulfill this. On the other hand, there are pretty standard warehouse management solutions, which we could actually in the beginning use as a standard off-shelf solution. At a later stage, where we are now, where we're looking more and more in robotic automation, we are now insourcing this entire technology stack to build also fulfillment, especially robotic and automated fulfillment ourselves. So these are the key decisions that we had to make on our way. If you're talking about the trade-off of speed versus quality or maybe business needs versus technology depth, this is an ongoing debate and a trade-off that we had a lot of debate about it. And the way how we solve it and how we solve this dilemma in our case is that we are defining an underlying metric model where we can assess every proposal, even if it's a business proposal or a tech initiative, on the same type of metrics. And every tech and business initiative needs to contribute to the same metric model. Let me give you an example. Tech initiatives are usually not directly enabling new consumer features. However, they contribute to the time to market or they contribute to a defect density or they contribute to the uptime. So therefore, we are expressing all those kinds of contributions of technical initiatives also in business value and therefore make tech initiatives and business initiatives comparable. And that is a much better approach than the classical half-half or 80-20 type of split between business and tech initiatives. [0:11:20] Noah Labhart: Payoff.com is a paying sponsor of the Code Story podcast. podcast. You've tried balance transfers and budgeting, but high interest rates and unrelenting bill cycles make it almost impossible to get out of credit card debt on your own. Instead of another new savings technique, you need a clear path out of debt. And that's what a payoff loan can do. A payoff loan is a personal loan backed by member-centric credit unions designed to help you pay off your credit cards with rates as low as 5.99% APR and loan amounts up to $35,000 with no hidden fees and personal customer service support from Payoff to help you reach your financial goals. Some of the benefits of a Payoff loan may also include potential credit score boost, one monthly payment, and savings from lower interest rates. Go to payoff.com slash Code Story to learn more. Checking loan rates won't affect your credit score. Try something new. Pay off your credit card debt with Payoff. NMLS ID 1396805. Not all applicants may qualify. Loans only available within the United States. Loan is not available in all states. Payoff works with lending partners who originate the loans. Additional terms, conditions, and eligibility requirements may apply. More information is available at payoff.com slash Code Story. This message is brought to you by RIMS, the Risk Management Society. RIMS is a global dedicated to the profession of risk management. For nearly 60 years, RIMS has delivered the latest strategies and resources that allow risk professionals to grow, innovate, and succeed in any business. RIMS works with industry leaders to produce content and online training that business professionals turn to. Topics include business continuity, cyber risk, risk management techniques, the fundamentals of insurance, and more. There's also a private members-only site where people can discuss sensitive issues and get honest answers. leaning on each other as we all navigate the global pandemic. If you're concerned about the safety of your employees and the sustainability of your organization, you need the resources and connections RIMS provides. Learn more at go.rims.org slash Code Story. You can save 25% off a year-long membership. Again, that's go.rims.org slash Code Story. How have you progressed the product past the MVP. Walk me through the maturation process of the product past that first initial software version. [0:13:50] Daniel Gebler: So we started first consumer app and all the features around it and that went also in a couple of stages. So we started for instance just with the plain shopping application where you have a catalog and then now you have a search functionality. At the later stage we added one functionality that we thought is maybe a nice and nice to have feature, which is the past purchases page. So you can look up what did you buy the last week. This is a feature which became similar to Facebook's timeline, one of the most used features because customers are actually not building up a shopping list from scratch, but they are building up a shopping list by looking what did they buy last week and then filter out what they don't want this week and then think about what they additionally we want this week. So this is on the consumer side. On the logistical side, we went in three steps. And the first step is building up a first version of each product in-house as a native application, for instance, for the purchasing application, for the warehouse management, for the logistical planning, but also for the driver app. The next step is building very deep analytics around all those applications meaning that we can both on real time but also on a reporting basis understand what is really happening on the operational angles and therefore do on a day-by-day analysis about how do we do on a different operational metrics the third one is building a feedback loop from this analytics back to the product itself to in an incremental way to improve the product let me give you an example if you are making route planning then we are planning our routes based on a couple of criteria but the most simple criteria is you want to have the shortest route in an available time window and an available capacity of the vehicle however there are parameters that you need to understand over time how long it takes and one of the parameters is for each customer you need to understand how long does the stop take and there are parameters like how far is Is the customer from the street or the door of the customer from the street? Is the customer living in the second or the first floor? Is the customer young or old? Is the customer living with a family? Is it day or nighttime delivery? So over time, we understood step by step each of those kind of aspects. How does it contribute to the stop time and to the delivery times? And now in an incremental manner, each delivery time is now refined based on the observations that we have from deliveries of yesterday and the day before. That means the system itself and the delivery accuracy becomes day by day better purely by new operational data. There's no software change, it's pure feedback from data into our operation systems that make it day by day better. And this is the third stage where we are now, which is kind of a self-learning and self-optimizing loop for most of the systems across especially the operational front-door delivery. [0:16:53] Noah Labhart: How do you go about building your roadmap and deciding what is the next most important thing to build in the product? [0:17:03] Daniel Gebler: We started Picnic by defining autonomous independent teams. And for the first two or three years, the teams have been completely autonomous, running based on overarching business objectives and business goals. There are different product lines. after being three years in is that we need a little bit more high-level objectives, high-level target setting. And then we try to make it annual planning. But annual planning is something which is way too far down the road if you think about such a fast-moving business as we are in. The business itself is characterized by online delivery and food. And this is just moving way, way faster than what you can handle in a one-year planning. So what we now do is we do quarterly planning, are aligning especially the cross-product initiatives, meaning all those development initiatives that are between the different products we are aligning and then leave the prioritization to the product itself. The products themselves are defining or prioritizing their backlogs based on objectives and key results that they define on an annual level. And there is just a kind of weekly and a biweekly cycle, how they define what becomes the workload the backlog and what comes next. And on a quarterly basis, reviewing the objectives and the key results that the team sets for themselves. You [0:18:28] Noah Labhart: mentioned team. So tell me about how you build your team, how you built it. What did you look for in these people to deem them the winning horses, the people that should join Picnic and carry the banner for what you're building? [0:18:42] Daniel Gebler: So we started at a team where we basically looked for a team that is the right team to build the very first version of the product. And that was a team with whom I've been working earlier together in a SaaS business. We just hired those guys together. We knew each other pretty well. And we knew that with this team, we can build the very first version. This had one disadvantage because the team was not diverse enough. It didn't reflect all aspects that you want at a scalable team. So therefore, after a couple of months, we looked more actively into which kind of additional profiles do we need. And then we looked explicitly for engineers that have a strong engineering, a strong architect angle. Somebody who has been very strong on the mobile development side, who understands also the alternatives to the current mobile stack. Somebody who is very strong on the SRE side, somebody who can lead on the people side. We identified the white spots in the team and then we filled step by step those white spots. And this is the way how we have built the team from initially just five engineers to now a little bit more than 100 engineers. We are organized now in product teams and the product teams themselves now define what are the profiles that they need. So they make a self analysis and self assessment. What are the bright spots in their team from both the hard skill and the soft skill side? our recruitment and hiring plans going forward. Very [0:20:10] Noah Labhart: good. Let's talk about scalability a little bit. Did you build this in the beginning to scale efficiently or were you fighting this as you grew? [0:20:20] Daniel Gebler: So there are two angles to this question. On the one hand, we knew that some of the core elements need to build from day one in a scalable manner. This is essentially the planning and the master planning backbone backbone where we connect all the pieces from our supply chain in a master planning process that runs once per day. This is something what we have built up on day one in a way that it can handle tens of thousands, hundreds of thousands of orders on a single day. On the other hand, there are a lot of components that we built from a very MVP, very M, so MVP way, going forward to an MVP to a first version to a kind of scalable version. An example for this is our warehouse management system, our purchase order management, also a lot of consumer related features that we built from an MVP based implementation until the full scale solution. At the stage where we are now with roughly half a million active customers in Netherlands, we can no longer work or we are not completely working in this MVP based approach. What we are now doing is we are usually implementing MVPs that we are launching to just a few thousand customers as a test group. And then in parallel, we are building out the scalable solution that we are then launching to the larger customer base. [0:21:48] Noah Labhart: So as you step out on the balcony and you look across all that you've built with Picnic, what are you most proud of? [0:21:58] Daniel Gebler: That's a pretty cool question. And I have asked this myself. But on the other hand, this is also a bit like rating your child and scoring your favorite child. There are many, many topics that we tackled across our road. And the one thing what has formed us as a team and what makes us very happy is that we started with a very small team with just a vision that we wanted to tackle an unsolved problem, the last mile food delivery problem in a radically new way. And that this team built up a tech stack and an operational stack that could not only work in a small city where we started, but also at a full scale where we are operating now. Zooming in into some of the tech topics that we have tackled in the way that were pretty impressive is that we went along the journey from a system where we build purely on a spreadsheet some very simple rules that we later built in Java or Python as the first version of a product up to the state where we are having now for essentially all products, a feedback loop that goes from the product itself to the ops team to the data warehouse back to the product itself. self-learning and self-improvement cycle for a large set of all our business features. And this is something which some people call it machine learning and deep learning or AI. This is probably the essential piece that will help us also in the future to focus on developments of new features, while the optimization of the existing features is only driven and only dependent on the size of operation that we are running now. probably the essential piece that we are happy about the architectural setup that we have chosen so far. [0:23:48] Noah Labhart: So let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it. [0:23:58] Daniel Gebler: So in such a journey, you do a lot of mistakes. One thing what you're looking for and what you're looking out for is that you're not making fatal mistakes. And even But if you make mistakes that are drastic, then you find a fast way, an early way to correct them. So one of the things what we learned on our way are said, when we are aligning our tech priorities and our tech movements with the business side, that we need to look very careful what are hard deadlines and what are soft deadlines. An example for this is if you're launching in a new country, if you're launching in new cities, you have hard deadlines for the simple reason: agreements with media agencies, you have agreements with advertisements, you have agreements with suppliers. So if you have this kind of fixed agreement on the timeline, if you have fixed expectations on the quality, then the only variable in your attack game is the scope. And if the scope itself is also defined, because you want to launch a new country and you don't want to regress on your existing features, then you are in a pretty difficult situation if you're running low and resources. So our learnings here is that at least one of the three angles, so time, resources, quality, you want to open up and you want to keep flexible on. One thing what we learned in our journey is quality is something you can never debate about, meaning we are monitoring very carefully on a week-by-week basis with detailed reports, our technical debt, our code coverage by unit tests, but also component tests, integration tests. So this is something we don't want to regress at all. So the only two angles that we can take in any development project is either scope or the development timeline. And that is something what we very actively communicate now to business teams based on our past experience, that these are the only two variables that we can take into account. And based on those decisions with the business teams, we either decide if we are adjusting the scope, timeline is fixed or that we are becoming more flexible on the timeline and or discuss about different rollout approaches. It [0:26:11] Noah Labhart: makes sense. Sounds like a a classic project management problem there. Tell me what the future looks like for Picnic, for the product and for your team. [0:26:22] Daniel Gebler: A very early stage of our journey. What we have built so far is a service that customers love. But we know that with building a service where you're seeing each customer at least once per week and you have a penetration that you see a large part of every single street in every city, which is very high, then there are so much possibilities that come beyond food, beyond the logistical service that we're offering now, that we are very, very, very happy to look forward to the future opportunities. On the short term, what we're working on now and what gives us a lot of energy is the fulfillment operation, meaning the warehouse order picking and replenishment and receiving operation. We are now step by step automating. So we are building a fully robotized automated warehouse, which includes robots, conveyor belts and a lot of automated components that need to have local control components, but also cloud based steering components, which is something that we are now building up, which is one of the classical cases of edge computing, where you have very interesting and hard problems to solve on the digital platform. decision what do you locally compute and what do you compute in the cloud. So if you have various robots in a warehouse, you need to decide, can a robot by itself decide what is the next step to do or is it something what from a central control unit needs to be steered. So these are very, very interesting problems to solve, which are similar to problems of autonomous drones or autonomous driving, but now in a warehousing environment. [0:28:02] Noah Labhart: Let's flip back to you, Daniel. that you work? A CEO, CTO, architect, or any person really. Name a person you look up to and why. [0:28:12] Daniel Gebler: There are probably two groups that I find that influence me on a daily basis, but also on a longer horizon. These are on the one hand, the peers on our board level, on the executive level. So this is the CEO, this is the COO, all those executives that help to define the prioritization, not only for the tech, but for the entire business, on the operations side, on the on many angles. On the product team structure, we are looking into an organizational setup where we can keep the teams as much as possible autonomous, not building a heavy middle management structure, but still have a clear means to steer the teams based on company-wide objectives. And this is something where we see now with a little bit more than 100 engineers that all teams need a little bit more steering than just full autonomy but on the other hand we don't want to build immediately up a full-blown middle management layer and the means of OKRs, company-wide objectives, but also a shared vision of what do we do not only in three months time but what do we do in three years time or what is the long-term goal in 10 years time this is something what helps the teams to define for themselves also this kind of short, mid and long-term roadmaps. Great [0:29:29] Noah Labhart: answer. If you could, When you started Picnic, what would you do differently or what would you consider taking a different approach on? [0:29:40] Daniel Gebler: Many things that you learn along the way that you would do different, but it doesn't make so much sense to reflect about the stuff that you would do different after you know all the stuff that you know ex post. What I find much more meaningful is to ask the staff, what should you have done faster? Because the only real thing if you make your decisions based on the best knowledge that you have at this point in time, the only thing what you can do is prioritization or how fast you execute things. And there are certainly things that I would have loved to do a little bit faster. So one thing what is very close to my heart is moving into a purely data-driven engineering, but also data-driven operational approach is something what I would have loved to do a little bit faster. Moving into machine learning and deep learning, I would have loved to do a bit faster. For the simple reason that we see now the real benefit of what it means to have this feedback loop in real time, but also more on a batch basis. If you have feedback from your data warehouse into your operation systems for all the metrics. This self-learning loop for logistics, but also for the warehouse management, for the purchasing is a game changer for every business that is running at scale as we do here in logistics. things. [0:31:02] Noah Labhart: Last question, Daniel. You're getting on a plane and you're sitting next to a young entrepreneur who has built the next big thing. They're jazzed about it. They're super excited to show you their product. They really think it's going to make an impact on the world. What advice do you give that person having gone down this road a bit? [0:31:20] Daniel Gebler: The first advice I would give him is ask people for advice. Get feedback, but whatever feedback you take or you get, take it with a healthy grain of salt. You will have a lot of people that will encourage you, but don't really understand what you're doing. And you will have naysayers, which just are jealous about what you're working on. So you need to form yourself an opinion and a vision on where do you want to go and then stick to it. This is one angle that what I would share with them. The other angle is don't be for too long, too stubborn on what you are working on. is the change if you need to make a change a course correction then be also open to this of this feedback to yourself that you need to maybe adjust something in the model that you need to uh that you're working on the tech or the product vision that you have in this sense it is a kind of a healthy balance between on the one hand as being a little bit of stubborn but on the other hand not being too stubborn and being humble to also take feedback from people around you That is probably the most important thing. If you find a healthy balance here, then it is only a matter of time until you will be successful. That's [0:32:33] Noah Labhart: great advice. Well, Daniel, thank you for being on the show today. Thank you for telling the product creation story of Picnic. [0:32:40] Daniel Gebler: Thanks for having me. [0:32:42] Noah Labhart: And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Season two episodes are co-produced and edited by Bradley Denham. Be sure to subscribe on Apple Podcasts, Spotify, or the podcasting app of your choice. Support the show on patreon.com slash Code Story for just five to ten bucks a month. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.