<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Damien Leroux on Medium]]></title>
        <description><![CDATA[Stories by Damien Leroux on Medium]]></description>
        <link>https://medium.com/@damien.leroux.pro?source=rss-cd92108ca6d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*Le8RIgX4Bj9bvXx9Kv5cRA.jpeg</url>
            <title>Stories by Damien Leroux on Medium</title>
            <link>https://medium.com/@damien.leroux.pro?source=rss-cd92108ca6d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:12:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@damien.leroux.pro/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bigblue’s multi-model database on FoundationDB]]></title>
            <link>https://medium.com/bigblue-engineering/bigblues-multi-model-database-on-foundationdb-5c54b8d61942?source=rss-cd92108ca6d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c54b8d61942</guid>
            <category><![CDATA[foundationdb]]></category>
            <category><![CDATA[big-blue]]></category>
            <category><![CDATA[data-model]]></category>
            <category><![CDATA[protobuf]]></category>
            <dc:creator><![CDATA[Damien Leroux]]></dc:creator>
            <pubDate>Tue, 01 Feb 2022 15:02:37 GMT</pubDate>
            <atom:updated>2022-02-01T15:02:37.022Z</atom:updated>
            <content:encoded><![CDATA[<p>At Bigblue, we use FoundationDB as our primary data store to save many models like inventory items, fulfillment details, warehouse settings, carrier delivery areas, and so on…</p><p>This blog post is for you if:</p><ul><li>🔥 You wonder how to create a robust data model layer.</li><li>💡 You‘re interested in <a href="https://developers.google.com/protocol-buffers/docs/overview">Protocol buffer</a> and protoc.</li><li>🧐 You’re curious about our FoundationDB storage layer.</li><li>💙 Like us at Bigblue, you believe we learn a lot from others.</li></ul><p>Bigblue is the post-purchase delivery solution that allows brands of all sizes to compete with the service offered by retail giants. Since I joined the team more than one year ago, I marvel at how easy it has been to interact with FoundationDB while rapidly evolving our product at the same time. In this post, I’m trying to share key points in facilitating the data model management on FoundationDB<em>.</em></p><h3>FoundationDB and me</h3><p>As a software engineer, distributed systems is a passion I can’t satisfy enough. Still, I had the chance to work with data stores like PostgresSQL, MySQL, Mongo, Redis, and Elasticsearch. Joining Bigblue, FoundationDB was new to me, so I couldn’t help but dive into the documentation to understand all the nuances. To put it simply, <a href="https://apple.github.io/foundationdb/architecture.html">FoundationDB</a> is a distributed store with <a href="https://apple.github.io/foundationdb/transaction-manifesto.html">ACID promises</a> while ensuring at the same time <a href="https://apple.github.io/foundationdb/performance.html">performance and scaling guarantees</a>. But with great power comes great responsibility 🕷 😉. As some of you may already know, misusing a database can significantly impact performance and maintainability 😱. It’s here that wrapping FoundationDB with a layer of abstraction helps in many ways 💪.</p><h3>Defining a data model</h3><blockquote>On Linux, “everything is a file”. When engineering software, everything is data!</blockquote><p>At Bigblue, we believe that the data model is a vital architecture component! A unified representation of the data makes it very accessible to engineers, BI analysts, and newcomers. In addition, with code generation, we ensure that the data store always reflects our data model. As a result, we avoid unexpected insertions into the data store.</p><p>If I step back and take a closer look at databases I used to work with:</p><ul><li>PostgreSQL data model goes through <a href="https://www.postgresql.org/docs/current/ddl-schemas.html">SQL schemas</a>.</li><li>MongoDB contains denormalized data. Still, the data modeling can be enforced by external libs like the well-known <a href="https://mongoosejs.com/docs/guide.html">Mongoose</a>.</li></ul><p><strong>Now, what about FoundationDB?</strong></p><p>Regarding Foundation DB, <a href="https://apple.github.io/foundationdb/data-modeling.html">they tell us</a>:</p><blockquote>In FoundationDB, both keys and values are simple byte strings. Apart from storage and retrieval, the database does not interpret or depend on the content of values.</blockquote><p>Said otherwise: It is up to developers to provide their custom data layer to marshal and unmarshal the data model. At Bigblue, we have chosen to use <a href="https://developers.google.com/protocol-buffers/docs/overview">Protocol buffer</a> to build a robust, easy to change, and reliable data model.</p><p><strong>👇 Here is our magic soup 👇</strong></p><p>1/ A Github repository, called <strong><em>proto</em></strong>, contains all our Protocol buffer <a href="https://developers.google.com/protocol-buffers/docs/overview#simple">messages</a>. A Protocol buffer message represents a specific data model to store in the FoundationDB store.</p><p>2/ The Github repository is split into logical functional folders to group the data models with the same level of concern. Then each folder contains .proto files with the definitions of Protocol buffer messages:</p><pre>proto /<br>  bigblue /<br>    inventory /<br>      inventory.proto<br>    warehouse /<br>      carrier.proto<br>      warehouse.proto</pre><p>3/ In .proto files, a Protocol buffer message defines the list of typed fields that constitute the data model. Here is an example of what anyone would expect from inventory items:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5rl2e8N0aghqSU-RaJ8L1w.png" /></figure><p>4/ Once the PR that contains data model changes is merged, our CI runs a job that generates the Go code from Protocol buffer messages, pushes the results to dedicated Github repositories, and tags them with a new version. Then, anyone can update their dependencies on their project.</p><h3><strong>Code generation from data models</strong></h3><p>The protocol buffer compiler <a href="https://grpc.io/docs/protoc-installation/">protoc</a> is used to compile .proto messages. Using the plugin <a href="https://developers.google.com/protocol-buffers/docs/reference/go-generated">protoc-gen-go</a>, protoc generates the Go code that marshals and un-marshals messages, which is what we need to save or fetch data from FoundationDB. Here is a sample of the Go code generated by protoc:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WduUJnmqdeSN3hE-uFQPxQ.png" /><figcaption>The InventoryItem Go structure can now be marshaled and un-marshaled by <a href="https://developers.google.com/protocol-buffers/docs/gotutorial#writing_a_message">proto libs</a>.</figcaption></figure><h3>Building a FoundationDB storage layer</h3><p>With code generation, we can generate methods that interact with the database too!</p><p>To abstract the FoundationDB query complexity and ensure the data saving and fetching are consistent, we have developed our own specific protoc plugin. Executed by protoc, it generates the specific methods to interact with FoundationDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIXFHpQs5Vm2Wc_roufCDw.png" /><figcaption>Sample of the methods generated by the Bigblue protoc plugin</figcaption></figure><p><strong>How to declare the methods we need?</strong></p><p>A store configuration is declared on each proto message so that the Bigblue plugin generates the specific wanted methods that interact with FoundationDB. By refining this configuration, engineers control how the data is saved or fetched.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4Tyz7weZTphqclHpfLIYw.png" /></figure><p>👆 In this example, the store configuration declares primary_key to have inventory items saved and fetched using a product ID and a warehouse ID. From this simple configuration, our protoc plugin generates CRUD methods:</p><ul><li>A method to create or update an inventory item.</li><li>A method to read an inventory item, using the declared primary key‘s fields as arguments.</li><li>A method to delete an inventory item. Like the fetch method, a warehouse ID and product ID are requested.</li></ul><p>These methods define how data is stored, query FoundationDB and marshal and un-marshal protobuf values.</p><h3>Inside our FoundationDB data store</h3><p>The data is stored in FoundationDB in <em>directories </em>(the storage layer equivalent of a Postgres table or MongoDB collection): one directory per data model. In directories, data is stored as ordered <strong>key</strong> ⇒ <strong>value </strong>pairs.</p><ul><li>The <strong>key</strong> is based on the configured primary_key: it’s a <a href="https://apple.github.io/foundationdb/data-modeling.html#tuples">special concatenation of its fields</a>: each field is serialized so that the keys preserve the ordering of the data types <a href="https://apple.github.io/foundationdb/data-modeling.html#encoding-data-types">they encode</a>.</li><li>The <strong>value</strong> is the message’s data, marshaled into protobuf bytes.</li></ul><p><em>Keys are sorted in </em><a href="https://en.wikipedia.org/wiki/Lexicographic_order"><em>lexicographic order</em></a><em>. They will always be read in that order. It makes reading multiple adjacent values in one transaction very efficient.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YDz2OI6IgIj3h7t5EaMRKg.png" /><figcaption>Anatomy of a message’s directory in the storage layer</figcaption></figure><p>The methods that our protoc plugin generates make use of our data storage layer to connect with FoundationDB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3GintbmTIsEq5iHaBqyE4w.png" /><figcaption>Sample of the generated code that fetches and saves inventory items</figcaption></figure><p>👆Once this code is generated, engineers can very easily use these methods in their application to save or get their data models 🤩:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6GhH9w70HWmpTfnb_yRmgA.png" /></figure><p>In the end:</p><ul><li>Few lines are required to store our data model within FoundationDB.</li><li>The code semantic is consistent, making it easy to maintain our code stack, which, in the end, speeds up our productivity.</li><li>The DX is great and simple, making it easy to onboard new Bigbluers.</li><li>The abstraction layer makes us focus more on Product outcomes than technical issues, which increases the growth of our products 🚀.</li></ul><p><em>For the sake of clarity, I didn’t explain how our custom </em><em>protoc plugin works, how we do data versioning, or how we leverage all the FoundationDB capabilities. But I guess that it would be perfect topics for future blog posts. Anyway, feel free to share the topic you’d like to see covered in the comments. For now, if you want an overview of FoundationDB capabilities, </em><a href="https://www.foundationdb.org/files/record-layer-paper.pdf"><em>this paper</em></a><em> is for you!</em></p><p><em>Thank you for reading! We’ll blog again, so subscribe to </em><a href="https://medium.com/bigblue-engineering"><em>our blog</em></a><em> to get notified when we do!</em></p><p><em>Like what you’ve read? We’re hiring software engineers to build the ultimate delivery experience for all brands. </em><a href="https://jobs.lever.co/bigblue?department=Product"><em>Check our open positions</em></a><em>!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c54b8d61942" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bigblue-engineering/bigblues-multi-model-database-on-foundationdb-5c54b8d61942">Bigblue’s multi-model database on FoundationDB</a> was originally published in <a href="https://medium.com/bigblue-engineering">Bigblue Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmark an exact algorithm solving the traveling-salesman problem with Go]]></title>
            <link>https://medium.com/@damien.leroux.pro/benchmark-an-exact-algorithm-solving-the-traveling-salesman-problem-with-go-e502b0ca3d0e?source=rss-cd92108ca6d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e502b0ca3d0e</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Damien Leroux]]></dc:creator>
            <pubDate>Tue, 17 Mar 2020 21:37:53 GMT</pubDate>
            <atom:updated>2020-03-23T09:28:36.559Z</atom:updated>
            <content:encoded><![CDATA[<p><em>What does it cost to compute every routes to find out the best one?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WCPbljg_groEpa1OxqHEbw.jpeg" /></figure><h3>What is the problem to solve?</h3><p>The <a href="https://en.wikipedia.org/wiki/Travelling_salesman_problem">traveling-salesman problem</a> is as famous as old.</p><p>The problem is simple: <strong>what is the quickest route for a salesman to travel through a list of cities?</strong> Solution to this problem can be applied in many businesses. If I first learned about it during my university studies, then it is only when joining <a href="https://www.frichti.co/">Frichti</a> that I discovered the high complexity this problem could be. Actually, <a href="https://www.frichti.co/">Frichti</a> develops their own algorithms to offer delivery without delay and with accurate estimated time of arrival.</p><blockquote>Simple doesn’t mean easy.</blockquote><p><strong>During 9 decades, various methods have been conceived to resolved this problem</strong>. Some compute reliable routes but are not practicable given specific computation time conditions. Others offer reasonable computation time but do not return optimized routes. In this post, I won’t describe these methods. Instead, <strong>I highly recommend you to read</strong> <a href="https://medium.com/u/8f55993c973e">Vaidehi Joshi</a> great posts explaining all the ins and outs the traveling-salesman problem involves:</p><ul><li><a href="https://medium.com/basecs/the-trials-and-tribulations-of-the-traveling-salesman-56048d6709d">The Trials And Tribulations Of The Traveling Salesman</a></li><li><a href="https://medium.com/basecs/speeding-up-the-traveling-salesman-using-dynamic-programming-b76d7552e8dd">Speeding Up The Traveling Salesman Using Dynamic Programming</a></li></ul><p>Now, if you’re up to date, let’s go on!</p><h3>How do I intend to resolve the problem?</h3><blockquote>The wrong way :)</blockquote><p>I mean: resolving the traveling-salesman problem using a “naive” algorithm that compares all the possible routes, and as a result, deduces the exact best route.</p><h4>Why is that wrong?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*a-76PpHVYLjxmS6cI2vnmA.png" /></figure><p>Using an <a href="https://en.wikipedia.org/wiki/Exact_algorithm">exact algorithm</a> is not scalable. The greater the number of cities, the more time is necessary to compute all possible routes. The reason is that the number of distinct routes — call it <strong><em>Nr</em></strong> — is a <a href="https://en.wikipedia.org/wiki/Factorial">factorial</a> of the number of cities — call it <strong><em>n</em></strong>. In mathematics, we write it:</p><p><strong>Nr = n!</strong></p><p><strong>!</strong> being the symbol for <strong>factorial</strong>. Put it another way:</p><p><strong>Nr = n x (n-1) x (n-2) x …. x 2 x 1</strong></p><p>As you can see on the left, the number of distinct routes increases faster than the number of cities to visit.For example, <strong>3 628 800 distinct routes exist for 10 cities</strong>.Therefore the algorithm complexity is <strong>O(n!)</strong>. That is known as <a href="https://medium.com/@lauren.kroner/understanding-big-o-notation-61ba6dbb2215">extremely un-performant</a> that’s why such using exact algorithm is not recommended.</p><h4>Why doing it wrong then?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*SV6oa6y7tjx1-8r-3B1mHg.png" /></figure><p>Under a number of cities , the number of distinct routes to compute can still be practicable.<strong> The whole point of benchmarking an exact algorithm is to find out that limit</strong>.</p><p>At the end, if you can ensure that your system always handle less cities than the limit, there is no point in implementing a heuristic algorithm that gives good but none-optimal results when an exact algorithm gives the best route.</p><h3>Implementing the exact algorithm with Go</h3><p>Familiar with <a href="https://nodejs.org/en/">Node.js</a>, I could have use Javascript to implement the algorithm but <a href="https://nodejs.org/en/">Node.js</a> is a single threaded language. To better my chances to find out the higher number of cities that an exact algorithm can handle, I preferred a language allowing me to use several threads during the computation. I chose <a href="https://golang.org/">Go</a>.</p><blockquote>Multi-threading in Go is easy!!</blockquote><p>Yes! I can assure you that developing multi-threading program with Go is easy. Mainly because <a href="https://blog.golang.org/share-memory-by-communicating">Go rethought traditional threading models</a>.</p><p>Take a look at practical examples:</p><p><a href="https://medium.com/@greenraccoon23/multi-thread-for-loops-easily-and-safely-in-go-a2e915302f8b">Multi-thread For Loops Easily and Safely in Go</a></p><h4>In practice</h4><p>I have developed an algorithm in <a href="https://golang.org/">Go</a> that loops on each unvisited cities — named <em>Sales</em> within my code — then for each just visited cities, visits all remaining unvisited cities. For example, considering 3 cities; 6 routes are computed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*c5K257szOTXTqsgFHG1_zw.png" /></figure><p>You can find <a href="https://github.com/damienleroux/test-go-exact-algo-travelling-salesman-problem">my implementation of this algorithm on my github</a>. Feel free to use it. I have kept it as simple as possible for the sake of clarity. Cities — aka <em>Sales</em> — use only geographic coordinates to be differentiated. The initial salesman coordinates are excluded. The best route is the one with the lowest total distance.</p><p>One cool thing with <a href="https://golang.org/">Go</a> is the embedded <a href="https://golang.org/pkg/testing/">test and benchmark utils</a>. Using it locally on my local computer, I could benchmark the algorithm computing time required for a given number of cities.</p><h4>Modus operandi</h4><p>I only needed to add <a href="https://github.com/damienleroux/test-go-exact-algo-travelling-salesman-problem/blob/master/computeTour/computeTour_test.go">few tests</a>, then I launched it from my command line tool:</p><pre>go test -bench=&quot;.&quot; -run=&quot;^a&quot; -v ./...</pre><p>Below the <strong>benchmark results with only one thread:</strong></p><pre>BenchmarkGetBestRoute5              7922             159934 ns/op<br>BenchmarkGetBestRoute6               1198             985810 ns/op<br>BenchmarkGetBestRoute7                182            6719754 ns/op<br>BenchmarkGetBestRoute8                 21           57523724 ns/op<br>BenchmarkGetBestRoute9                  2          540000000 ns/op<br>BenchmarkGetBestRoute10                 1         6446002000 ns/op<br>BenchmarkGetBestRoute11                 1        59872999000 ns/op</pre><p>30% of my CPU was used during the process over 90% available.</p><p><strong>With one thread, we can see that finding the best route for 9 cities requires 540 milliseconds</strong>. Then, adding only one city— for a total of 10 cities— leads to a computing time of 6.44 seconds. Depending on how often you want to trigger the computation and the <a href="https://landing.google.com/sre/sre-book/chapters/service-level-objectives/">latency SLO</a> you target, the limit here may be 8, 9 or 10 cities.</p><p>Below the <strong>benchmark results with multiple threads:</strong></p><pre>BenchmarkGetBestRouteMultithread5   12206              93888 ns/op<br>BenchmarkGetBestRoutMultithreade6    2998             407605 ns/op<br>BenchmarkGetBestRouteMultithread7     481            2482329 ns/op<br>BenchmarkGetBestRouteMultithread8      58           18724136 ns/op<br>BenchmarkGetBestRouteMultithread9       6          175166767 ns/op<br>BenchmarkGetBestRouteMultithread10      1         1647998600 ns/op<br>BenchmarkGetBestRouteMultithread11      1        19823001300 ns/op</pre><p>90% of my CPU used for that over 90% available on my computer.</p><p><strong>With 4 parallel threads, we can see that finding the best route for 9 cities requires 175 milliseconds</strong>. Adding only one city —for a total o f 10 cities— leads to a computing time of 1.64 seconds.</p><blockquote>The computing time is dividing by almost 4 using multi-threading program with a quad core CPU.</blockquote><h3>Conclusion</h3><ul><li>Using an exact algorithm can be practicable if you can limit the number of cities to reach.</li><li>The definition of the limit — max number of cities — depends on the computing time <a href="https://en.wikipedia.org/wiki/Service-level_objective">SLO</a> you target.</li><li>The computation time can decrease running multi-threading program — using Go on a multi CPU computer for example. Then the limit can be pushed higher.</li></ul><p>If I had more time, I would have benchmarked the algorithm computing time on stronger computers like <a href="https://aws.amazon.com/fr/ec2/instance-types/">AWS EC2 instance M5 with 96 cCPU</a>. To compute all possible distinct routes; the more CPU the computer has, the less time the algorithm requires — except if the number of CPU exceeds what the program can parallelize.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e502b0ca3d0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should I accept to be the CTO within the company?]]></title>
            <link>https://medium.com/@damien.leroux.pro/should-i-accept-to-be-the-cto-within-the-company-8936237ca70?source=rss-cd92108ca6d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8936237ca70</guid>
            <category><![CDATA[advice]]></category>
            <category><![CDATA[cto]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Damien Leroux]]></dc:creator>
            <pubDate>Sat, 07 Mar 2020 23:42:57 GMT</pubDate>
            <atom:updated>2020-03-12T20:22:35.208Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MS60essrJJp7JDGOmsNaOQ.jpeg" /></figure><p>One year has passed since I have accepted to be CTO of <a href="https://www.frichti.co/">Frichti</a>, a fast growing French food-tech startup. I’d like now to share my experience about what I have — or should have — considered before accepting for the first time a CTO job offer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSxYH5klU-KYHXPTgh2yGw.jpeg" /></figure><p><em>Disclaimer: I’m here to share my experience in order to help others make the right choice. I’ll share the questions I believe you should ask if joining the kind of company Frichti is (300 employees. A tech team of 30 people. </em><a href="https://tech.eu/brief/frichti-raises-funds/"><em>€43 millions raised in </em></a><em>s</em><a href="https://www.investopedia.com/terms/s/seriesa.asp"><em>eries A</em></a><em>). The answers to these same question can be numerous. That’s why this post doesn’t intend to guide you through the possible answers: just through the possible questions.</em></p><p>So before we start off let’s get some context: just before being CTO, I worked at Frichti as a JavaScript full stack tech lead and as a Scrum master where I managed a squad of developers. During that time, I was directly managed by the previous CTO. In this post, I won’t explain how or why this opportunity was given to me. The reality is that I didn’t apply for the job; both the previous CTO and the current CEOs trust me to do the job. They asked me: “Do you want to be CTO at Frichti?”. So, before I could answer, I new I had to consider all factors before taking the leap. Below you will find, I believe, what you should ask:</p><h3>Understand the job</h3><p>In case the acronym “CTO” is not obvious, it means Chief Technical Officer. For the full definition, I let you refer to <a href="https://en.wikipedia.org/wiki/Chief_technology_officer">wikipedia</a>. The definition is clear to a wide audience but it is not accurate: the role has evolved over time. Besides, depending of the kind of business your company is doing, the size or age of the company, or the concepts the company puts behind the word “CTO”, different roles could be take on. CTO could mean for example: “Only Tech guy in the company”, “Master tech guy above all“, “Manager for all developers” or “VP engineering”...</p><p>In my case, I had already worked with several CTOs in my career and could recollect all the interactions I had with them. Sometimes, I had taken the CTO role temporarily: because he or she was either unavailable or overload. These small but rich experiences were a start understanding the job.</p><p>To get an overall idea, searching the various definitions may be your best option. … or it could get you more confused at the end. Especially when everyone wants to share their own different definitions. So for simplicity’s sake, I’ll share with you the two posts that truly helped me:</p><ul><li><a href="https://medium.com/engineering-leadership/defining-roles-cto-and-or-vp-engineering-f1c7563643a3">Defining roles: CTO and/or VP Engineering</a></li><li><a href="https://medium.com/@karllhughes/the-many-roles-of-a-startup-cto-8e10fb1c581b">The Many Roles of a Startup CTO</a></li></ul><p>Knowing that everyone has his or her own opinion about the job scope, there should be no surprise that companies follow the same rule. As a result, it is important to get details about the job definition from the company it-self.</p><h3>Understand the company</h3><p>The best way to understand what the job involves is to talk with the right people within the company:</p><h4>To the CEO, ask:</h4><blockquote>How the company business grows? What are the products?</blockquote><p>Make sure you understand how the business works and what products are developed and sold. As a CTO, you’ll probably have to share this knowledge with your future team to give meaning to their work.</p><blockquote>Why does the company need a (new) CTO?</blockquote><p>Very important to understand the mission and check if the required skills fit with yours.</p><blockquote>How would you defined a CTO ? How do you think the role will evolve over time?</blockquote><p>With these questions, you’ll see if the definition is crystal clear or needs to be defined. You can find out if the job often changes over time.</p><blockquote>What is the current company organisation and how does the tech team interact with others? Who does the CTO work with?</blockquote><p>Check if the tech team has a lot of dependencies with other company teams and/or if the tech team is the heart of the company.</p><blockquote>What are the greatest challenges the CTO will deal with?</blockquote><p>You’ll learn if the challenges are interesting. You need to know if you think you have the right skills and ambition to offer a solution.</p><blockquote>What is the current company culture? What is the company tech ambition?</blockquote><p>Check if you agree with the company culture. Check if the company culture includes tech considerations. If not, check if that’s a pain point for the company and/or the tech team. You’ll probably need to offer solutions on this topic.</p><h4>To the CTO, if existing, ask:</h4><blockquote>What are the stack and tools? What about the technical debt? Who’s working inside the current team and how do people organise their work? What is the coding philosophy?</blockquote><p>Yes, I know this is obvious… ;)</p><blockquote>How are the financial expenses handled ?</blockquote><p>Try to find out how the tech costs increase over time: tools, infra and human resources. The company scalability may depend on it. Check if there is a specific budget for tech formations, conferences or team building events. Find out how the global tech budget is calculated.</p><blockquote>What is the company’s tech culture and ambition?</blockquote><p>Check if there is a strong tech culture with dedicated ceremonies or specific considerations. Check if there are ongoing projects: tech talks, tech guilds, blog posts, offsite, etc.</p><blockquote>What are the past achievements?</blockquote><p>It is important to know what happened within the company. Ask yourself if you agree with past decisions. You’ll need to know what the company went through if you want to offer new relevant solutions. The CTO point of view may reflect the tech team philosophy: Does the past achievements concern technical improvements, new products and/or organisation changes ?</p><blockquote>What needs to be finished or done now and why?</blockquote><p>Current projects may last for several months or years. You’ll probably have to take the reins on current projects. Try to imagine yourself on those projects. Check if there are specific pain points on current projects: a lack of resources or time, hard deadlines or team dependency constraints.</p><blockquote>Any advice to succeed as a CTO?</blockquote><p>Always good to benefit from CTOs experiences! The CTO may have regrets about past strategies or certainties about past success and failure — make sure to take it all into account !</p><h4>Then meet people you’ll often work with</h4><p>For example: VP Engineering, Deputy CTO, Tech Leaders, engineers, Heads of, or C-levels. Try to ask them the CTO related questions. In any case, make sure you understand:</p><ul><li>how you could help them.</li><li>how they could help you.</li></ul><p>If after getting all the information you need from the company, there are some questions you still have, meet with people outside the company e.g. former employees, dedicated experts, coaches, the company Investors, etc.</p><h3>Understand yourself</h3><p>If like me, you have to consider being CTO for the first time, I imagine you’ll ask yourself a lot of questions. Let me resume here the questions I asked — or should have asked — before making a choice.</p><blockquote>Are your mentally strong enough to be responsible for success or failure?</blockquote><p>This question is very important because C-levels take responsibility for everything that happens within his or her team: good or bad. Depending of the kind of person you are; this can be a bit too much to handle. You have to be sure that you will stay focused and lead your team in the right direction no matter how you feel. But be careful: don’t ignore what is your gut feeling! Personal advice: Use your feelings as a jump to reach success.</p><blockquote>Are you ready to leave your current habits?</blockquote><p>Being a CTO is, I believe, very different from what I used to be as a small team tech leader. Especially, I am not anymore the one creating the detailed architecture or coding the final solutions. I traded that to be both the one helping people make right decisions and the one ensuring that the tech teams course of actions benefits the company’s ambition.</p><blockquote>What are you trying to accomplish?</blockquote><p><em>What is there to gain being a CTO? Your life will change and you have to know what for! Make sure your motivation is guided by specific personal goals. This way, you will not lose yourself in the process.</em></p><blockquote>Are your family and friends supporting and encouraging you in this adventure?</blockquote><p>Make sure to have some kind of agreement with those who count on you every day in your family: Being a CTO is a moral and time consuming job. Getting their support can make the difference. It did for me.</p><h4>Now, it is up to you, depending on your situation, your experience and your wishes, to decide if the answers you’ll get from the questions above make you CTO or not.</h4><p><em>I don’t claim to have listed here all the possible questions we can ask. Consider this post as a starter. Going deeper on this subject may require another kind of medium (no pun intended ;)). Any additional points of view or experience sharing are welcome in comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8936237ca70" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>