<?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 Sander Nagtegaal on Medium]]></title>
        <description><![CDATA[Stories by Sander Nagtegaal on Medium]]></description>
        <link>https://medium.com/@centrical?source=rss-24eda0b52d8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vJG_gt2bsN3SXZfp.jpg</url>
            <title>Stories by Sander Nagtegaal on Medium</title>
            <link>https://medium.com/@centrical?source=rss-24eda0b52d8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 08:59:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@centrical/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[Like water]]></title>
            <link>https://medium.com/@centrical/like-water-ad1ddfabb5f?source=rss-24eda0b52d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad1ddfabb5f</guid>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[mma]]></category>
            <category><![CDATA[traumatic-brain-injury]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Sander Nagtegaal]]></dc:creator>
            <pubDate>Wed, 02 Jan 2019 13:12:15 GMT</pubDate>
            <atom:updated>2019-01-05T14:09:05.351Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8RgBqDFHslrLBDpwfOdVXg.jpeg" /><figcaption>MMA is not entirely without risk.</figcaption></figure><p>Compared to the <a href="https://centrical.com/posts/stroke-by-sports.html">arguably spectacular accident</a> that happened to me almost seven years ago, most of its daily consequences are hard to spot for outsiders. However, brain injury changes everything. Read on for a blow by blow account full of invisible flaws, love and even a secret super power.</p><h3>Knockout</h3><p>Apart from my passion for startups and technology, I am obsessed with sports. For example, last year, I competed again in both the European and World Championships of OCR — that’s short for <em>Obstacle Course Racing</em>. Maybe, famous races like <a href="https://www.spartan.com/">Spartan Race</a> or <a href="https://strongviking.com/">Strong Viking</a> ring a bell. My dedication to martial arts predates this hobby by decades, though.</p><p>Kung fu, kickboxing, Savate, Brazilian Jiu Jitsu, boxing — it’s all wonderful. Combine them and you will get <a href="https://en.wikipedia.org/wiki/Mixed_martial_arts">Mixed Martial Arts</a>. MMA is a no holds barred style of fighting, currently promoted by organizations like <a href="https://ufc.com/">UFC</a> and <a href="http://www.bellator.com/">Bellator</a>. After years of training at a famous gym in Amsterdam, I found out the hard way that the sport is not entirely without risk.</p><p>During a sparring session, <a href="https://centrical.com/posts/stroke-by-sports.html">a chokehold gone awry</a> damaged an artery in my neck. It led to a <a href="http://en.wikipedia.org/wiki/Carotid_artery_dissection#Traumatic">carotid dissection stroke</a> that permanently destroyed almost a third of my brain — including some really useful sections that were meant to manage language and several other critical features. Two years of recovery ensued, while juggling to keep my first startup <a href="https://peecho.com/">Peecho</a> up and running.</p><p>On the rebound, I wrote a <a href="https://centrical.com/posts/stroke-by-sports.html">ridiculously popular blog post</a> that describes the whole ordeal. It’s basically my survivor story. Besides appealing to my friends and the occasional disaster tourist, it resonated quite well with people suffering from similar conditions. They often request a follow-up. Well, here we go.</p><h3>Back on my feet</h3><p>In 2015, I left <a href="https://peecho.com/">Peecho</a> in the capable hands of <a href="https://www.linkedin.com/in/mgroot/">my co-founder</a>, and started working for digital health startup <a href="https://mytomorrows.com/">MyTomorrows</a> as their CTO. For patients with unmet medical needs, the company tries to facilitate access to medication that is still in development. While trying to help others is awesome, the pharma world is <em>not</em> where I belong. So, I moved on after two years.</p><p>By that time, a side project catapulted out of hand. It resulted in the start of yet another company, called <a href="https://unless.com/">Unless</a>. Built together with long-term friend <a href="https://www.linkedin.com/in/marcelpanse/">Marcel Panse</a>, our startup aims to improve the attention span of people on the internet. It’s a magical technology fest with a small, but awesome team of super heroes.</p><p>And how is my brain holding up? There are a few obvious glitches. For example, I hardly feel anything on the right side of my body. You could put a needle in my neck and I wouldn’t even feel it. My face is continuously tingling, my lip is numb, and vision on my right side is limited. When I get tired, speaking becomes a bit difficult.</p><p>To be honest, these are all just minor inconveniences to me. But I have a confession to make.</p><h3>I forgot who you are</h3><p>If we recently met, I will not remember you next time we meet. Even after we met a few times, I will still not know your name. Also, I will probably forget all further arrangements, unless you remind me in due time.</p><p>Because of several clever tactics, you may not even notice.</p><ul><li>If you seem to recognize me, I will assume that I know you and I will act accordingly. That’s why <em>sales people</em> are so confusing — they always pretend to know me.</li><li>In the <a href="https://centrical.com/posts/kung-fu-amsterdam.html">weekly Kung Fu class that I teach</a>, my regular students will discretely remind me of your name and capabilities, when you show up for the second week in a row.</li><li>At work, my calendar is public, so my teammates can warn me before I forget to show up at important meetings. Also, they will prompt me at the daily stand-up about what I did yesterday.</li></ul><p>So, please don’t feel offended if I don’t seem to recognize you. I apologize — it’s not you, it’s <em>me</em>.</p><h3>I forgot who I am, too</h3><p>According to science, people normally make decisions by comparing a new situation to some reference pattern they recognise from before. With many of my memories gone, there are not that many patterns to choose from. I improvise a lot as a result. Sadly, it also introduces other problems.</p><p>For example, it’s particularly painful that I hardly remember any of the holidays I spent with my girlfriend. Both unfortunate and unnerving, this lack of “autobiographical memory” affects how I see myself. As a human, you need personal history to maintain a mental representation of yourself — of who you are — in the present and across time. In short, my frayed memory made me partly forget who I am.</p><p>To others, this impaired sense of self shows when I appear to be a bit distant. If anybody asks me how I feel, I simply don’t know the answer. A smile is rare, and I <em>never</em> laugh out loud when I am by myself (although inexplicable exceptions occur, like when I watched the video of <a href="https://www.youtube.com/watch?v=qswZGM38zxQ">The Legend of Fedor’s Glorious Sweater of Absolute Victory</a> a few years ago and rolled off of the couch, all alone).</p><p>But… The big anomaly seems to be <em>love</em>. I am very capable of feeling strong affection, whether it is for my girlfriend, my friends, my team or my fabulously slow pet snail. Apparently, the capacity for experiencing love occupies a well-guarded area in someone’s brain. For that, I am super grateful. Besides not dying, this is probably the best thing that could happen to anyone when having a stroke.</p><h3>Rolling with the punches</h3><p>In general, I find comfort in consistency — like a rigid training schedule (with an honorable mention for “Monday Date Night”, when my girlfriend and I work out together at <a href="https://crossfitvastberaden.com/">our Crossfit gym</a>), recurring jokes, or the shared language between people who are very close. On top of that, certain life hacks help me cope even better.</p><ul><li>My week is meticulously planned, leaving strategic gaps in my calendar that I use to recover — by myself, so there is no social interaction required.</li><li>Since a few years, I have been living on an old ship. In the city center of Amsterdam, this is probably the closest you can get to solitude.</li><li>All my clothes match. I wear the same kind of black trousers every day and I stick to one brand of shirts, in different colors. This means I can get dressed without wasting any energy.</li></ul><p>To try to recover lost memories, I introduced an additional training regimen. The idea is simply to re-enter historical data over and over again.</p><ul><li>My girlfriend and I often look at old photo books together, and talk about our past adventures.</li><li>Statistically, I am probably my own biggest fan — I tend to rewatch my own Youtube and Linkedin videos a lot, especially older ones.</li><li>I absorb my own Facebook timeline at least once a month, as far back as possible.</li></ul><p>You will understand why Snapchat or Instagram stories are of no value to me. Automatically disappearing posts cannot be used as memory anchors. I don’t regret this — if anything, this saves me some time. And then there are other perks, too.</p><h3>Like water</h3><p>Without the past to worry about, it’s much easier to “live in the moment”. Combined with my inability to connect with my emotions quickly, I turned into some sort of a <em>Zen monk</em> — unfazed and adaptive, no matter what. This secret super power is very useful to stay cool under normally stressful circumstances, although I have to be careful not to overdo it.</p><p>Detachment can be dangerous, you know. As part of standard stroke recovery procedures, I was once advised a Mindfulness course. They teach you how to focus on the present moment, without emotional judgement. While practicing, I observed an <em>incoming tram</em> without emotion. It missed me by an inch or two. I decided to ditch Mindfulness and stick to safer tactics instead.</p><p>Now, I am keeping it simple. My new year’s resolution for 2019 is to start documenting my daily life in a diary, so I will have something to hold on to. Also, I will leverage my Zen monk’s brain to make <a href="https://unless.com/">Unless</a> a huge success, continue teaching my Kung Fu class and ground fight sessions, and see if I can qualify for some championships once again.</p><p>Above all, there is going to be <em>love</em>. Lots of it.</p><p><em>Originally published at </em><a href="https://centrical.com/posts/like-water-six-years-with-brain-damage.html"><em>centrical.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad1ddfabb5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stroke by sports — or how a freak MMA accident can change your life]]></title>
            <link>https://medium.com/@centrical/stroke-by-sports-or-how-a-freak-mma-accident-can-change-your-life-f7062c4b0439?source=rss-24eda0b52d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7062c4b0439</guid>
            <category><![CDATA[stroke]]></category>
            <category><![CDATA[martial-arts]]></category>
            <category><![CDATA[mma]]></category>
            <dc:creator><![CDATA[Sander Nagtegaal]]></dc:creator>
            <pubDate>Mon, 16 May 2016 15:58:10 GMT</pubDate>
            <atom:updated>2016-05-16T15:58:55.480Z</atom:updated>
            <content:encoded><![CDATA[<p>Freak accidents happen all the time. Like most people, I just never thought they would happen to me. Yet, in the summer of 2012, I survived a <em>big stroke</em> due to a sports incident. It turned my life upside down. Let me tell you what happened.</p><h3>About me</h3><p>For those of you who don’t know me: my name is <a href="http://www.centrical.com/">Sander</a>, I am 40 years old and I live in Amsterdam. I love innovative things, start-ups and technology. Building exciting stuff with a dedicated team is just wonderful. That’s why I was previously involved in the rise of companies like <a href="http://www.albumprinter.com/">Albumprinter</a> and why I started <a href="http://www.peecho.com/">Peecho</a>.</p><p>Also, for those who <em>do</em> know me, it is quite obvious that sports have always been really important to me. I am an enthusiastic martial artist. The last decade or so, I have been teaching a weekly class of <a href="http://www.kungfu.nl/">Iranian Kung Fu</a> (yeah, I know — it’s a long story). To learn from others as much as possible, I also enjoyed many lessons in traditional boxing, Thai boxing, Savate, Arnis, Tae Kwan Do and more.</p><h3>Everybody needs a hobby</h3><p>This story starts in 2007, when I <em>thought</em> I was expanding my horizons training in <a href="http://en.wikipedia.org/wiki/Brazilian_jiu-jitsu">Brazilian Jiu Jitsu</a> at a well-known gym in Amsterdam. Probably because talking is hard when you wear a mouthguard, it took me an entire month to discover that I was actually participating in a <a href="http://en.wikipedia.org/wiki/Mixed_martial_arts">Mixed Martial Arts</a> group. Formerly known as <em>cage fighting</em>, the sports offers brutal workouts, highly sophisticated techniques and merciless sparring. Of course, I loved it.</p><p>My cage companions found me a strange little guy at first. I kept getting beat up, so they jokingly nicknamed me “the iceman” — not after the famous champion <a href="http://en.wikipedia.org/wiki/Chuck_Liddell">Chuck Liddell</a>, but because I <em>literally</em> needed ice almost every other session. Luckily, if you start off as the worst ground fighter in the gym, the only way is up. My skills improved and my teammates stopped eyeballing me.</p><p>Let’s just skip the montage here and fast-forward to about four years later. Around 2012, MMA had gained more popularity as a television sport. So, the class began to attract more and more first-timers. That’s scarier than you might think. Beginners are the most dangerous people to train with, because sometimes they can be really <em>clumsy</em> — which I would find out soon.</p><p>During a drill with a particularly big newbie, I did not <a href="http://en.wikipedia.org/wiki/Submission_(combat_sports)">tap out</a> soon enough. In a frustrated attempt to correct his failing <a href="http://en.wikipedia.org/wiki/Rear_naked_choke">rear naked choke</a>, he pulled my neck just a little bit too hard for practice. It hurt, but incidents happen. I thought nothing of it.</p><h3>Bad luck</h3><p>About a week later, I stepped out of bed in the morning with a splitting headache and immediately fell flat on my face. The right half of my body just didn’t respond at all. Using one arm only, I pulled myself back into the bed and woke up my girlfriend. I wanted to explain the situation, but I could only utter weird noises. I couldn’t speak anymore.</p><p>What happened? Technically, it went down like this: when my sparring partner tried to rip off my head, one of the arteries in my neck got damaged. For days, the resulting swelling partially blocked the blood flow to my brain — causing major headaches. In the meantime, a blood clot formed under the blockage. On that sunny Sunday morning, the swelling reduced, the blood started flowing again and the clot propelled into my brain. Boom, <a href="http://en.wikipedia.org/wiki/Carotid_artery_dissection#Traumatic">stroke by sports</a>.</p><p>Still half asleep, my girlfriend kept her cool and called in the cavalry. The ambulance arrived in about ten minutes. The paramedics wasted no time either, hurled me in the back of the van and sped off. I only remember thinking that those sirens were <em>awesome</em>.</p><h3>The hospital</h3><p>In the hospital, things got even worse. While a neurologist was performing some tests, a second stroke occurred. As a result, I didn’t understand <em>anything</em> anymore. It was like everybody suddenly started speaking Chinese. I didn’t even understand the most basic body language. In an instant, the world had become totally incomprehensible. I have never felt so alone.</p><p>Although it was still unclear whether my situation was caused by blood clots or a brain hemorrhage, the doctors then decided to inject a huge dose of blood thinners — betting on the first scenario. It was double or nothing, but there was nothing left to lose. Luckily, it was the right decision. I came to my senses quickly, but I was still pretty much paralyzed and could only speak with a limited vocabulary. Some damage was already done.</p><p>Blood thinners are <em>fun</em>, though. The next day, I insisted on having a shower all by myself. With half of your body paralyzed, that’s ill advised. Everything went well until I accidentally pulled the needle with syringe out of my arm. At the beat of my heart, the blood rushed out all over the glass shower cabin — quite like <a href="http://en.wikipedia.org/wiki/Dexter_%28TV_series%29">Dexter’s blood spatter lab</a>. Ouch.</p><p>After about a week I was sent home, only to return the next day as a <em>patient showcase</em> at a national gathering of neurologists. They loved the rare opportunity to see what happens to a well-trained specimen when you hit it with a few <a href="http://en.wikipedia.org/wiki/Carotid_artery_dissection#Traumatic">carotid dissection strokes</a>. I will never forget the sight of a hall full of doctors reading the <a href="http://en.wikipedia.org/wiki/Mixed_martial_arts">MMA Wikipedia entry</a> on their iPads, while I limped awkwardly in front of them.</p><h3>Love</h3><p>As a Dutch stroke survivor, you can count on an impressive amount of institutions to help you. My rehabilitation started with bi-weekly sessions with therapists, a psychologist, a neurologist and even a foundation helping to cope with the social impact of brain damage. If you add the truly wonderful staff in the hospital to the equation as well, I would <em>almost</em> recommend it.</p><p>It gets even better. My — totally fantastic — girlfriend took a break from work. She didn’t leave me out of her sight and arranged for a plethora of babysitters when she had to be out of the house for even just a minute. So, I had friends over to watch over me, or limp with me to the park, or just to keep me company — including a <em>four-year-old</em> that I had been babysitting before who could now return the favor.</p><p>It was a humbling experience and I am really grateful for all the help.</p><h3>Rehabilitation</h3><p>In the weeks after, I had my first encounters with some of the limitations I would have to deal with. For example, the skin of the right side of my body was still completely numb. This made things like drinking hot tea quite hazardous. Holding a cup, I wouldn’t notice the temperature rise until the bones of my fingers started to hurt like hell.</p><p>Also, my coordination was pretty bad. To start fixing these motoric problems with exercise, I tried going to the gym. In my first attempt to use a cross-trainer, I passed out and woke up on the floor between the equipment with a big bruise on my head. Taking it slow would prove to be a better approach.</p><p>Slow is not my style, unfortunately — so I resumed work at <a href="http://www.peecho.com/">Peecho</a> within a month. Speaking was still problematic, so I spent most of my time programming and I avoided human contact as much as I could. Meanwhile, my <a href="http://www.peecho.com/en/press/founders">co-founder Martijn</a> worked overtime. I am so sorry, man.</p><p>Two months later, I was invited by <a href="https://gigaom.com/">GigaOm</a> to get on stage at their <a href="http://new.livestream.com/gigaom/structureeuroday1/videos/4910298">Structure Europe event</a> — facing over a thousand people in the audience, and join the speaker’s dinner afterwards. Both scared the hell out of me. In hindsight, I am not sure if my performance made sense at all, but just being there was a personal triumph — <em>totally</em> worth the week of recovery I needed afterwards.</p><h3>Happily imperfect</h3><p>Fast-forward again to today. It took almost two years full of ups and downs to finally get dismissed from therapy. Tips and tricks from the medical staff, hard work in the gym and the continuous support from my girlfriend and many friends allow me to get close to what I previously perceived as normal. Of course, I think about what happened almost every day.</p><p>The largest challenge has been to battle the fatigue that comes with brain damage. My energy levels need constant management. By tediously planning my life and inserting recovery time where I can, I avoid long-term exhaustion. I failed often, but practice makes perfect. On the brighter side, the more permanent effects are a lot easier to deal with.</p><ul><li>The feeling in the right side of my body has mostly returned, but it is still a distorted area. I now prefer to be touched on the left side instead.</li><li>My right eye can see up to an angle of 45 degrees away from the nose, where 95 degrees is normal.</li><li>My speech has fully returned, but I now have to actually think <em>before</em> I speak up — many people will see that as an improvement, though.</li></ul><p>Frustration about these things used to depress me, but not so much anymore. I find it easier to forgive myself for my lasting imperfections every day. As a result, I have turned in a <em>nicer</em>, more forgiving person to others as well — or so I hope. All in all, I consider myself very lucky: I didn’t die, my analytical skills have not been affected, I am not paralyzed anymore… and most of you think that I still talk too much.</p><p>It gets even better. My energy is increasing by the day. So, I happily teach Kung Fu every week, grapple occasionally and you may call me a recreational kickboxer. However, I did promise my loved ones to trade in MMA for yet another obscure abbreviation: OCR. That stands for <a href="http://en.wikipedia.org/wiki/Obstacle_racing">Obstacle Course Racing</a>. Every month or so, you can find me crawling in mud and climbing walls somewhere.</p><p>On top of that, 2015 has been a very good year so far. Last month, my start-up <a href="http://www.peecho.com/">Peecho</a> closed another <a href="http://startupjuncture.com/2015/03/27/distributed-printing-platform-peecho-raises-e700k/">funding round</a> and I began a new adventure as CTO at <a href="http://www.mytomorrows.com/">myTomorrows</a>, a really disruptive start-up in the digital health space. As an unexpected bonus, I managed to qualify for the <a href="http://ocrworldchampionships.com/">OCR World Championships 2015</a> in Ohio, which might even soothe my midlife crisis for a while.</p><p>Everybody needs a hobby, right?</p><p><em>Originally published at </em><a href="http://www.centrical.com/posts/stroke-by-sports.html"><em>www.centrical.com</em></a><em>, April 4th, 2015</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7062c4b0439" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Cadet Episode 7: Serverless Architecture in action with Sander Nagtegaal Co-Founder of…]]></title>
            <link>https://medium.com/teletext-io-blog/cloud-cadet-episode-7-serverless-architecture-in-action-with-sander-nagtegaal-co-founder-of-97decc90e796?source=rss-24eda0b52d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/97decc90e796</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sander Nagtegaal]]></dc:creator>
            <pubDate>Fri, 15 Apr 2016 21:21:55 GMT</pubDate>
            <atom:updated>2017-09-06T14:38:06.489Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud Cadet Episode 7: Serverless Architecture in action with Sander Nagtegaal Co-Founder of INSTANT</h3><p><em>Note: INSTANT.cm has rebranded as </em><a href="http://unless.com/"><em>Unless.com</em></a><em>, new and improved!</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FozgTm4yf-P0%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DozgTm4yf-P0%26feature%3Dyoutu.be&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FozgTm4yf-P0%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6854eb0bc3c41bc53e7e10db5d00d25b/href">https://medium.com/media/6854eb0bc3c41bc53e7e10db5d00d25b/href</a></iframe><blockquote>“We learned from experience that one of the most important things if you launch a product that you’re still testing and not making money with, is for it to be cheap. If it’s cheap, you have a much longer runway and you can keep up with the competition much longer. <strong>The quickest way to let your startup fail is to spend too much money, too soon.</strong>” — <em>Sander Nagtegaal, co-founder of instant.cm and Peecho</em></blockquote><p>Welcome to episode seven of Cloud Cadet! Hosted by Anthony James, founder of Linux Academy, and Linux Academy instructor Christophe Limpalair, this episode features an interview with guest, Sander Nagtegaal.</p><p>The topic of the episode is serverless architectures. Christophe, our instructor, teaches serverless concepts on Linux Academy, including a course of AWS Lambda.</p><p>Sander is the co-founder and builder of several startups, including instant.cm (formerly known as <a href="https://teletext.io/">teletext.io</a>), which is described in detail on the podcast. He explains it as being a content management service based on Javascript, that is entirely serverless.</p><p><strong><em>Today’s topics included:</em></strong></p><ul><li>Linux Academy’s definition of a serverless architecture</li><li>The best parts about Lambda, including it’s “on-demand” feature</li><li>Why it’s important to have a cheap product</li><li>Understanding the API gateway</li><li>The Lambda development process and how Sander was involved</li><li>Where to draw the line between using Lambda full time and as a supplement to EC2</li><li>The truth about the cloud concept and its relationship to Lambda</li><li>Why you need to stay on your toes when you’re working with AWS</li></ul><p><em>Originally published at </em><a href="https://linuxacademy.com/blog/uncategorized/cloud-cadet-episode-7-serverless-architecture-in-action-with-sander-nagtegaal-co-founder-of-teletext-io/"><em>linuxacademy.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97decc90e796" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teletext-io-blog/cloud-cadet-episode-7-serverless-architecture-in-action-with-sander-nagtegaal-co-founder-of-97decc90e796">Cloud Cadet Episode 7: Serverless Architecture in action with Sander Nagtegaal Co-Founder of…</a> was originally published in <a href="https://medium.com/teletext-io-blog">Unless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Serverless Start-up]]></title>
            <link>https://medium.com/teletext-io-blog/the-serverless-start-up-228370932cb8?source=rss-24eda0b52d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/228370932cb8</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-api-gateway]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Sander Nagtegaal]]></dc:creator>
            <pubDate>Sun, 10 Apr 2016 15:35:07 GMT</pubDate>
            <atom:updated>2017-09-06T14:38:24.755Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Note: INSTANT.cm has rebranded as </em><a href="http://unless.com/"><em>Unless.com</em></a><em>, new and improved!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*0Te2t6_K7xEuEAbk.png" /></figure><p>In our early <a href="http://www.peecho.com/">Peecho days</a>, we <a href="http://highscalability.com/blog/2011/8/1/peecho-architecture-scalability-on-a-shoestring.html">wrote an article</a> explaining how to build a really scalable architecture for next to nothing, using <a href="http://aws.amazon.com/">Amazon Web Services</a>. Auto-scaling, merciless decoupling and even automated bidding on unused server capacity were the tricks we used back then to operate on a shoestring. Now, it is time to take it one step further.</p><p>We would like to introduce <a href="https://teletext.io/">Teletext.io</a>, also known as <em>the serverless start-up</em> — again, entirely built around AWS, but leveraging only the <a href="https://aws.amazon.com/api-gateway/">Amazon API Gateway</a>, <a href="https://aws.amazon.com/lambda/">Lambda</a> functions, <a href="https://aws.amazon.com/dynamodb/">DynamoDb</a>, <a href="https://aws.amazon.com/s3/">S3</a> and <a href="https://aws.amazon.com/cloudfront/">Cloudfront</a>.</p><h3>The Virtues Of Constraint</h3><p>We like rules. At our previous start-up <a href="http://www.peecho.com/">Peecho</a>, product owners had to do <em>fifty push-ups</em> as payment for each user story that they wanted to add to an ongoing sprint. Now, at our current company <a href="https://mytomorrows.com/">myTomorrows</a>, our <em>developer dance-offs</em> are legendary: during the daily stand-ups, you are only allowed to speak <em>while dancing</em> — leading to the most efficient meetings ever.</p><p>This way of thinking goes all the way into our product development. It may seem counter-intuitive at first, but constraints fuel creativity. For example, all our logo design is done with technical diagramming tool <a href="https://www.omnigroup.com/omnigraffle">Omnigraffle</a>, so there is no way we could use hideous <em>lens flares</em> and such. Anyway — recently, we launched yet another initiative called <a href="https://teletext.io/">Teletext.io</a>. So, we needed a new restriction.</p><p><em>At Teletext.io, we are not allowed to use servers. Not even one.</em></p><p>It was a good choice. We will explain why.</p><h3>Why Servers Are Bad</h3><p>In the past years, the Amazon cloud already made us very happy with the ability to use auto-scaled clustering of EC2 server instances with a load balancer on top. This means that if one of your servers goes down, a new one can be initiated automatically. The same happens when unexpectedly high peaks of traffic occur. Extra servers will then be initiated.</p><p>Although this is pretty cool, there are disadvantages.</p><ul><li>First of all, you <strong>need to keep a minimum number of server instances alive</strong> to be able to serve any visitor, even if you don’t have any traffic — or revenue. This costs money.</li><li>Secondly, because cloud instances run installed software on top of operating systems, you need not only maintain your own code, but also <strong>make sure the server software stays up to date</strong> and operational.</li><li>Third, you <strong>can’t scale up or down in a granular way</strong>, but only one whole server at a time.</li></ul><p>In an architecture based on an API with micro-services, this means a lot of overhead for small tasks. Luckily, there are now options to solve this. Let’s first take a look at the problem at hand.</p><h3>Scratch Your Own Itch</h3><p>Our brand new solution was born out of personal frustration about <em>content management </em>within custom software. In most start-ups, HTML texts inside buttons, dashboards, help sections or even entire web pages have to be managed and deployed by <em>programmers </em>instead of the writers of the texts. This is really annoying for both developers and editors.</p><p>For years, we tried to find a distributed content management service that would solve this issue properly. We failed. So, a couple of months ago, we were fed up and decided that we would just have to build something ourselves.</p><h3>The Plan</h3><p>We planned to create a really simple, Javascript-based service that could inject centrally hosted content, using the common data attributes of HTML for labeling of elements. It should be able to handle localization and dynamic insertion of data. Most importantly, it should give content writers a way to just change texts whenever they want, using an inline WYSIWYG editor in their own app.</p><p>Apart from some UX caveats, there are three technical challenges here.</p><ol><li>Because live websites rely on it for content, this new commodity service should <em>never </em>go down. Ever.</li><li>It should be really, really fast, so your visitors don’t even notice the content is loading.</li><li>The content should be indexed by Google.</li></ol><p>The third issue is not related to architecture per se. The trusty search engine moves in mysterious ways, so all we could do was to <a href="http://www.centrical.com/test/google-json-ld-and-javascript-crawling-and-indexing-test.html">test the assumption</a>. Spoiler: yes, it works. The solution to the first two problems is in your own hands, though. These can be solved at low cost — with a clever architecture.</p><h3>Building Blocks</h3><p>Let’s dive into the building blocks of our system, which are based on several of the latest features of Amazon Web Services.</p><h3>Amazon API Gateway</h3><p><a href="https://aws.amazon.com/api-gateway/">Amazon API Gateway</a> is a managed AWS service that allows developers to create APIs at any scale, with just a few clicks in the AWS Management Console. The service can trigger other AWS services, including Lambda functions.</p><h3>AWS Lambda</h3><p>Instead of running cloud instances, we use <a href="https://aws.amazon.com/lambda/">AWS Lambda</a>. The name derives from the Greek letter lambda (λ) used to denote binding a variable in a function. AWS Lambda lets you run code without maintaining any server instances. You may think of an atomic, stateless function with a single task, that may run for a limited amount of time (one minute, currently). The functions can be written in Javascript (Node.js), Python or Java.</p><p>If you upload your Lambda code, Amazon will take care of everything required to run and scale your code with high availability. Lambda executes in parallel. So, if a million requests are made, a million Lambda functions will execute without loss of speed or capacity. According to Amazon, “there are no fundamental limits to scaling a function”.</p><p>The best thing is, that from a developer’s perspective, Lambda functions are not even there when they don’t get executed. They only appear when needed. And what isn’t up, can’t come down.</p><h3>DynamoDB</h3><p>The Lambda functions put their data in a data store. Because our rule says that we are not allowed to use any servers, we can’t use the Relational Database Service (RDS). Instead, we use DynamoDB, Amazon’s giant managed data store.</p><p><a href="https://aws.amazon.com/dynamodb/">Amazon DynamoDB</a> is a NoSQL database service for all applications at any scale. It is fully managed and supports both document and key-value store models. Scalability of the service has been proven with other users like Netflix, AirBnB and IMDb.</p><h3>Architecture</h3><p>Our system is decoupled into three parts:</p><ol><li>Content management</li><li>Content delivery</li><li>Our website</li></ol><p>This separation of concerns is by design. A problem in either the content management API or our own website should never lead to an outage of the customer’s websites. Therefore, the delivery of content should be entirely autonomous.</p><h3>Content Management</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*9FokF_4fqv55bdYM.png" /></figure><p>The content management part is what editors use to edit HTML and texts. Editors can log in using their Google account, via an <a href="https://aws.amazon.com/cognito/">AWS Cognito identity pool</a> connected to<a href="https://aws.amazon.com/documentation/iam/">AWS IAM</a> using Javascript only. For loading draft content, storing edits and publishing the result, the Amazon API Gateway gets called, triggering Lambda functions. The Lambda functions all relate to a single API call and store their data in DynamoDb.</p><p>As you can see, there are no servers that could crash or get stuck.</p><h3>Content Delivery</h3><p>As mentioned, we decided to decouple the delivery of content entirely from the editing features, so your app will work even if disaster strikes. When an editor decides to publish new content to the live version of his app, another Lambda immediately copies the draft content as flat JSON files to <a href="https://aws.amazon.com/s3/">S3</a>, Amazon’s data store for files. The JSON file contains meta data and i18n localized HTML strings that describe the content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*-OESNXTReu6AXg36.png" /></figure><p>From there, the Teletext.io script in your app can access these files through the <a href="https://aws.amazon.com/cloudfront/">Cloudfront</a> CDN, ensuring high availability and performance. We added a clever prefetching algorithm to ensure the most popular files get retrieved and cached in your browser before you need them, so the next clicks are provisioned without actual load of content.</p><p>Since there is no server-side logic involved in the delivery of published content, it is really fast and practically bullet proof.</p><h3>Our Website</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*NApHkmtHUpKDxMkb.png" /></figure><p>What about <a href="https://teletext.io/">our website</a>, though? We chose a simple, but effective concept — again, without servers. The website was built using the <a href="https://facebook.github.io/react/">React framework</a> as a single-page app and <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">deployed to S3 as a single, static file</a>. Then, Cloudfront was configured as the content delivery mechanism on top, ensuring super-fast content delivery from many endpoints around the world.</p><p>Again, this approach is based on flat file delivery and therefore very robust.</p><p>The static app uses HTML5 pushState and React Router for URL handling. Usually, there is one problem with that. If you access a specific URL other than the root, a web server must dynamically render the same routes that the front end is rendering dynamically. This is currently impossible in S3. We found a trick, though, that we would like to share here.</p><ol><li>Configure the app as <a href="http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html">a static website in S3</a>, with the root pointing to the main file.</li><li>Do not add any S3 redirect rules. Don’t even add the custom error page.</li><li>Create a Cloudfront distribution pointing to the S3 bucket.</li><li>Create a custom error response in Cloudfront, that points to the main file as well. Make sure to enforce a fixed 200 response.</li></ol><p>The result is that all URL paths (except for the root) lead to a <em>404</em> response in S3, which then triggers the cached custom error response of Cloudfront. This final response is just your single-page app again. Now, in the browser, you can handle all routing based on the current path.</p><p>There is only one disadvantage. You can’t return an actual 404 HTTP response code in any case. However, in return, you will get an ultra-cheap, ultra-scalable single-page app.</p><h3>Practical Perks</h3><p>Working with Lambda has impact on your development process. Support is improving, though. For example, previously, Lambda functions couldn’t be versioned. This had the effect that testing and deploying was very risky. However, Amazon recently <a href="http://docs.aws.amazon.com/lambda/latest/dg/versioning-aliases.html">rolled out their versioning system</a> and now we can use <em>mutable aliasing</em>. This means that it is now possible to have different versions of the same function that can be updated independently, similar to a test environment versus a production environment.</p><h3>The Result</h3><p>Our freemium service is now <a href="https://teletext.io/">open for customers</a>. We eat our own dog food, so we use it, too. However, the truly scalable nature of the system shows in our monthly AWS bill.</p><h3>Cost</h3><p>The cost is entirely defined by actual usage. For simplicity’s sake, we will ignore temporary free tiers, as well as the slew of smaller services that we use.</p><ul><li>With <strong>Lambda</strong>, you <strong>pay only for the compute time you consume</strong> — there is no charge when your code is not running. There is a perpetual free tier, too.</li><li><strong>Amazon API Gateway</strong> has <strong>no minimum fees or startup costs</strong>. You pay only for the API calls you receive and the amount of data transferred out.</li><li><strong>DynamoDb</strong> costs are based on <strong>pay-for-what-you-use</strong> as well, although the pricing is a bit more complicated. To put it simply, it’s based on storage, reads and writes.</li><li>Then, there are S3 and Cloudfront. Basically, you pay for storage and bandwidth out.</li></ul><p>We just started — so to calculate the costs, we made some assumptions. Let’s consider a fairly big website to be our average customer. We guess that such a client uses 1000 API calls per month (that’s editing only), requires therefore 1GB of data in, and needs about 10 GB of traffic-related data out. Persistent storage we estimate to be 500MB. We don’t expect the Lambda execution time to get over 2 seconds.</p><p>For several different numbers of this type of customer, our monthly cost would look like this (rounded, in American dollars).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R_mu-KtboWS9RacfYsVpJQ.png" /><figcaption>Cost structure for really big customers</figcaption></figure><p>As you can see, the <strong>cost is largely determined by the CDN</strong>, which is becoming cheaper at larger traffic numbers. The API and associated Lambdas attribute for a much smaller portion. So, if you would build a service that is less dependent on Cloudfront, you can do much better.</p><h3>Down With Servers</h3><p>Using our love for creative constraint, we managed to launch a start-up without servers, auto-scaling, load balancers and operating systems to maintain. This is not only a really scalable solution with an almost infinite peak capacity, but also a very cheap solution — especially in the early days before traction hits.</p><p>So… Down with servers!</p><p><a href="https://news.ycombinator.com/item?id=10690842">On HackerNews</a> / <a href="https://www.reddit.com/r/programming/comments/3vwrf4/on_high_scalability_building_a_company_using_only/">On Reddit</a></p><p><em>Originally published at </em><a href="http://highscalability.com/blog/2015/12/7/the-serverless-start-up-down-with-servers.html"><em>highscalability.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=228370932cb8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teletext-io-blog/the-serverless-start-up-228370932cb8">The Serverless Start-up</a> was originally published in <a href="https://medium.com/teletext-io-blog">Unless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>