<?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 Ran Tavory on Medium]]></title>
        <description><![CDATA[Stories by Ran Tavory on Medium]]></description>
        <link>https://medium.com/@rantav?source=rss-586fab9c92fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cQDyv1mjjaRdFtEG3jiPrA.jpeg</url>
            <title>Stories by Ran Tavory on Medium</title>
            <link>https://medium.com/@rantav?source=rss-586fab9c92fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:58:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rantav/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[Reversim Summit 2021 Summary]]></title>
            <link>https://medium.com/@rantav/reversim-summit-2021-summary-1bbebc322208?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bbebc322208</guid>
            <category><![CDATA[rs21]]></category>
            <category><![CDATA[reversim-summit]]></category>
            <category><![CDATA[reversim]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Sun, 02 Jan 2022 09:38:39 GMT</pubDate>
            <atom:updated>2022-01-02T14:15:17.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q4uPXOKKkUqIttRXY5tZcA.jpeg" /><figcaption>Opening the keynote at RS21, Ori Lahav and Ran Tavory</figcaption></figure><p>After two and a half years, one covid-19 away (or not), we’ve finally met f2f for <a href="https://summit2021.reversim.com/">Reversim Summit 2021</a>!</p><p>This was a huge undertaking from the entire team. A lot of people that show up at the conference have no idea of how much effort is put into the production of such an event, content moderation, legal, facilities and so on. A single 5 minutes or 30 minutes session is sometimes months in the making. So I’d like to take this opportunity to make a huge shout out to the entire <a href="https://summit2021.reversim.com/page/1831342/about">team</a> involved in the conference, this is a true collaborative volunteered team effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-mxt_MjVOTRaU0scuvnmFA.jpeg" /><figcaption>RS21 team on stage</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H_VLUpOkKilOrndA8QsuBA.jpeg" /><figcaption>RS21 team on stage, not your usual exit photo ;-)</figcaption></figure><h3>Impact</h3><p>In my day to day work, leading the data science team at appsflyer, one of the things I care most about is maximizing impact. Likewise here, I enjoy the work on the conference, I benefit from networking, I think we make an important part of what is today’s software industry lifeblood. And as such I care about making an impact, as Steve Jobs put it, we’re here to <strong>make a dent in the universe</strong> (if <em>Shira Steinbuch</em> can quote Jobs, so can I)</p><p>Our dent in our universe:</p><ul><li>We are considered by many as the #1 software developer conference in Israel. 👏</li><li>About <strong>2000</strong> developers, data scientists, product managers, managers, platform engineers and more had visited us last Sunday-Monday for RS21</li><li>Our <a href="https://www.youtube.com/c/Reversim-summit/videos">YouTube</a> channel has <strong>250k</strong> views (videos from past conferences, still not including RS21)</li><li>Our <a href="https://www.facebook.com/groups/reversim/">Facebook group</a> has 2900 members, <a href="https://twitter.com/reversim">Twitter</a> has 1600 followers and our brand new Discord has 600 members, flaming with activity.</li></ul><p>Apart from these encouraging numbers I want to present a few anecdotal tweets and posts from the community, perhaps representative stories of the impact we make. These are just the tips of the iceberg in a long list of tweets, LinkedIn or Facebook posts</p><h3>Iftach Bar on Twitter: &quot;שמעתי כבר מאיזה 3 אנשים סיפורים על איך הפ יישמו לקחים מההרצאה שלי ברברסים. זו תחושה נפלאה לדעת שהצלחת להעביר את המסר, אבל תחושה שאין לתאר לדעת שהצלחת לעשות אימפקט. תודה ל #reversim על הבמה 🙏 / Twitter&quot;</h3><p>שמעתי כבר מאיזה 3 אנשים סיפורים על איך הפ יישמו לקחים מההרצאה שלי ברברסים. זו תחושה נפלאה לדעת שהצלחת להעביר את המסר, אבל תחושה שאין לתאר לדעת שהצלחת לעשות אימפקט. תודה ל #reversim על הבמה 🙏</p><h3>Yoav Rimon on Twitter: &quot;שרשור ויראלי וחשוב שעושה סדר בנוגע לכנס @reversim #רברסים - לקחים, תובנות ותחזית לעתיד:לפני 5.5 שנים הקמתי סטארטאפ. בערך חודש אח״כ השותף ה-CTO אמר לי ״שמע יש כנס מדהים - נראה לי שגם לך יהיה מעניין -בוא נלך״. סבבה אמרתי לו, וקנינו כרטיסים על חשבוננו כי עוד לא גייסנו כסף. / Twitter&quot;</h3><p>שרשור ויראלי וחשוב שעושה סדר בנוגע לכנס @reversim #רברסים - לקחים, תובנות ותחזית לעתיד:לפני 5.5 שנים הקמתי סטארטאפ. בערך חודש אח״כ השותף ה-CTO אמר לי ״שמע יש כנס מדהים - נראה לי שגם לך יהיה מעניין -בוא נלך״. סבבה אמרתי לו, וקנינו כרטיסים על חשבוננו כי עוד לא גייסנו כסף.</p><h3>Eden Shochat on Twitter: &quot;I was anxious and thrilled to do the keynote- last time I was at reversim was 2013, so many portfolio employees speaking &amp; in the crowd and most importantly, Ofek, my 14 y/o was my +1. https://t.co/IhbYGyuFRY / Twitter&quot;</h3><p>I was anxious and thrilled to do the keynote- last time I was at reversim was 2013, so many portfolio employees speaking &amp; in the crowd and most importantly, Ofek, my 14 y/o was my +1. https://t.co/IhbYGyuFRY</p><h3>LadyMey on Twitter: &quot;#ReversimI like going to tech conferences, but what I LOVE is attending a GOOD TECH CONFERENCE. Every conference has swag and food and people and tech talks so what makes the difference between a tech conference and a good tech conference? The speakers.(1/3) pic.twitter.com/gnqpoD1Qqj / Twitter&quot;</h3><p>ReversimI like going to tech conferences, but what I LOVE is attending a GOOD TECH CONFERENCE. Every conference has swag and food and people and tech talks so what makes the difference between a tech conference and a good tech conference? The speakers.(1/3) pic.twitter.com/gnqpoD1Qqj</p><h3>Erik Zaadi on Twitter: &quot;The amazing @barzik starting to crack up the crowd at @reversim #reversim #rs21 pic.twitter.com/sSnDAnJmoN / Twitter&quot;</h3><p>The amazing @barzik starting to crack up the crowd at @reversim #reversim #rs21 pic.twitter.com/sSnDAnJmoN</p><h3>Dan Shappir 💉💉💉 on Twitter: &quot;I attended a technical conference with my son for the first time 😀 @reversim conference. pic.twitter.com/8HkKCTHdww / Twitter&quot;</h3><p>I attended a technical conference with my son for the first time 😀 @reversim conference. pic.twitter.com/8HkKCTHdww</p><h3>Liad Yosef on Twitter: &quot;Great keynote by @eden with an inside look on what makes VCs tick. #reversim pic.twitter.com/1IMl8Nvhxg / Twitter&quot;</h3><p>Great keynote by @eden with an inside look on what makes VCs tick. #reversim pic.twitter.com/1IMl8Nvhxg</p><h3>Yaron Galai on Twitter: &quot;Huge hats off to @Outbrain co-founder @orilahav, and x-Outbrainer @rantav for founding what is now Israel&#39;s #1 tech conference #ReversimWith @GiliAlperovitch (also $OB) orchestrating - It&#39;s amazing to have so many of IL&#39;s best engineers come together to share and learn!#רברסים pic.twitter.com/Qoanx3DODL / Twitter&quot;</h3><p>Huge hats off to @Outbrain co-founder @orilahav, and x-Outbrainer @rantav for founding what is now Israel&#39;s #1 tech conference #ReversimWith @GiliAlperovitch (also $OB) orchestrating - It&#39;s amazing to have so many of IL&#39;s best engineers come together to share and learn!#רברסים pic.twitter.com/Qoanx3DODL</p><h3>Leah Vogel on Twitter: &quot;I have so much to process about my experience today at @reversim, but I can&#39;t go to sleep in good faith without thanking my moderators for the ignite sessions:@lidanh and @ShlomiNoach who were so supportive and professional and encouraging! Thank you both!🧡🙏🏻 pic.twitter.com/FVU0Qq3Wpm / Twitter&quot;</h3><p>I have so much to process about my experience today at @reversim, but I can&#39;t go to sleep in good faith without thanking my moderators for the ignite sessions:@lidanh and @ShlomiNoach who were so supportive and professional and encouraging! Thank you both!🧡🙏🏻 pic.twitter.com/FVU0Qq3Wpm</p><h3>Ariel Shaqed on Twitter: &quot;Enjoying #reversim and learning so much. Kudos to the organisers for creating a top-tier conference with amazing content in a COVID-19 safe environment.This is _Scale Up the Architecture - Divergence vs. Convergence_ from VIA&#39;s estimable Roni Cohen. pic.twitter.com/O40CzG4pnJ / Twitter&quot;</h3><p>Enjoying #reversim and learning so much. Kudos to the organisers for creating a top-tier conference with amazing content in a COVID-19 safe environment.This is _Scale Up the Architecture - Divergence vs. Convergence_ from VIA&#39;s estimable Roni Cohen. pic.twitter.com/O40CzG4pnJ</p><h3>Dotan Horovits on Twitter: &quot;Only at @reversim: the return of the singing couple with an on-stage original performance of a SW engineer&#39;s lullaby 🎶 Love the sleep.test.js 😆#rs21 #reversim pic.twitter.com/LI17FcH9Y5 / Twitter&quot;</h3><p>Only at @reversim: the return of the singing couple with an on-stage original performance of a SW engineer&#39;s lullaby 🎶 Love the sleep.test.js 😆#rs21 #reversim pic.twitter.com/LI17FcH9Y5</p><h3>asyaf on Twitter: &quot;A really moving talk by @barnashon. Made me realize that I can use all my complaints about the terrible vegan food at #reversim in order to make a change next year 😜 pic.twitter.com/rs2M6hArUs / Twitter&quot;</h3><p>A really moving talk by @barnashon. Made me realize that I can use all my complaints about the terrible vegan food at #reversim in order to make a change next year 😜 pic.twitter.com/rs2M6hArUs</p><ul><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6881503254795059200/">Mey Beisaron on LinkedIn: #Reversim2021 #Reversim #Reversim</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6881522843310403584?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A6881522843310403584%29">Rachel Wities on LinkedIn: #reversim #moderation #mentoring</a></li><li><a href="https://www.linkedin.com/feed/update/urn:li:activity:6881625517397684225?updateEntityUrn=urn%3Ali%3Afs_feedUpdate%3A%28V2%2Curn%3Ali%3Aactivity%3A6881625517397684225%29">Keren Kenzi on LinkedIn: #reversim #rs21 #reversimsummit | 12 comments</a></li></ul><h3>Audience</h3><p>A few interesting stats about our audience</p><ul><li>We invest a lot in diversifying our audiences, including women, Arab, Orthodox. We’ve seen about <strong>30% women</strong> attendance (up from 23% in 2019 and 19% in 2017) and about 25% women speakers.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PlpFHv2dTanLtigChDYag.png" /><figcaption>Audience gender split, about 30% women.</figcaption></figure><ul><li>We hosted guests from more than 340 difference companies. Although I don’t have the numbers at hand from previous years, this seems to be a significant increase. Here are the employers with the highest number of attendance.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fex_Be4kM0u970uxhTbxOA.png" /><figcaption>Top 20 companies represented at RS21</figcaption></figure><ul><li>Profession wise, about 50% are developers of different sorts and the rest are quite diverse</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D02hYMigghCdnfT97wOHBQ.png" /><figcaption>Top 20 professions at RS21</figcaption></figure><h3>Summary</h3><p>I hope you enjoyed this year’s conference, stay tuned for the videos at our <a href="https://www.youtube.com/c/Reversim-summit">YouTube channel</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RLt8iC5sRZai6FYm5NLPsQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bbebc322208" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RS19 Numbers and Stats]]></title>
            <link>https://medium.com/@rantav/rs19-numbers-and-stats-6969b173acb6?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/6969b173acb6</guid>
            <category><![CDATA[comics]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Wed, 10 Jul 2019 19:47:24 GMT</pubDate>
            <atom:updated>2019-07-10T19:47:24.551Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3FmMHhV5zMCT6wehRSJgw.png" /><figcaption>Reversim Summit 2019</figcaption></figure><p>We developers love numbers and stats. What’s a better way to summarize <a href="https://summit2019.reversim.com/">Reversim Summit 2019</a> than a heap of numbers</p><h3>Registration and Attendees</h3><p>How many guests did we have each day?</p><p>Day 1</p><ul><li>Registered: <strong>1393</strong></li><li>Show up: <strong>1280</strong></li><li>Percent no-show: <strong>8%</strong></li></ul><p>Day 2</p><ul><li>Registered: <strong>1532</strong></li><li>Show: <strong>1515</strong></li><li>Percent no-show: <strong>2%</strong></li></ul><p>Uniques guests across the two days:: <strong>2397</strong></p><p>Guests who showed up to both days: <strong>588</strong></p><p>Men registered: <strong>1840</strong></p><p>Women registered: <strong>544</strong></p><p>Women percent: <strong>22.82%</strong></p><p>How many remained on the waiting list and did not buy a ticket?</p><ul><li>Day 1: <strong>608</strong></li><li>Day 2: <strong>132</strong></li><li>Waiting list total: <strong>890</strong></li></ul><h3>Who were our guests?</h3><p>Top titles:</p><ul><li>Software Engineer: <strong>332</strong></li><li>Software Developer: <strong>225</strong></li><li>Developer: <strong>106</strong></li><li>CTO: <strong>59</strong></li><li>Backend Developer: <strong>35</strong></li><li>Senior Software Engineer: <strong>35</strong></li><li>Data Scientist: <strong>30</strong></li><li>…</li></ul><h3>Content</h3><ul><li>How many submissions: <strong>450</strong></li><li>How many accepted: <strong>70</strong></li><li>Accepted percentage: <strong>15%</strong></li><li>First time speakers at RS: <strong>57</strong></li><li>Percent of first time speakers at RS: <strong>73%</strong></li></ul><h3>Feedback</h3><ul><li>Feedbacks (how many filled the feedback form): <strong>833</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*drnZypXWgO32j1YT.png" /><figcaption>General feedback (for D1)</figcaption></figure><p>That’s all, it’s been hard work and fun, <a href="https://www.youtube.com/playlist?list=PLqXy0aX6TzQqzJWXJZOKxGuF4W8hJEa5s">the videos are here</a> and <a href="https://photos.google.com/share/AF1QipO5G3Uj4v52v1PL-IH9mpPxUnNI4URfFNeRWBk9lObfsDRKHDOEElJl_4hynDK8_g?key=NFdLc1JSNVEyZkZucThTQ0xRNkQxdU5EQUp6U193">photos are here</a>, see you next year.</p><p>Previous years stats:</p><p><a href="https://medium.com/@rantav/reversim-summit-2017-numbers-and-stats-51cd2a791857">https://medium.com/@rantav/reversim-summit-2017-numbers-and-stats-51cd2a791857</a></p><p><a href="https://medium.com/@rantav/reversim-summit-2016-by-the-numbers-32046c36c9e">https://medium.com/@rantav/reversim-summit-2016-by-the-numbers-32046c36c9e</a></p><p><a href="http://summit2014.reversim.com/infographics.html">http://summit2014.reversim.com/infographics.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6969b173acb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New session type at Reversim Summit: Postmortems]]></title>
            <link>https://medium.com/@rantav/new-session-type-at-reversim-summit-postmortems-d96555784f46?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d96555784f46</guid>
            <category><![CDATA[public-speaking]]></category>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[reversim]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Sun, 10 Feb 2019 07:36:25 GMT</pubDate>
            <atom:updated>2019-02-10T08:40:35.742Z</atom:updated>
            <content:encoded><![CDATA[<p>This year Reversim Summit introduces a new type of session: <em>Postmortems.</em></p><p>We think postmortems could be fascinating, inspiring and educational, therefore we want to encourage sharing your postmortem stories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PxdlZDlIkfKuzVCqAd6mg.png" /><figcaption>Revesim Summit 2019</figcaption></figure><h3>What are postmortems?</h3><p>Postmortem is the analysis of a failure, for example outage, data loss, security breach or other. Different companies use different names (“incident review”, “root cause analysis”, etc.) but most tech companies run them in a similar manner. The goal of the postmortem is not only to fix the current highlighted broken piece, but to also to generalize the learning for the benefit of other systems in the organization and fix many potential issues at the same time.</p><p>For example — was there a security breach? Ask yourself what was the process that led us to allowing this breach? And where else did we implement this process, there may exist other breaches as well. Was there a communication problem? An ambiguous playbook? Could we have identified the flaw beforehand?</p><p>One important aspect of good postmortems is blameless, e.g. we don’t care whose fault it is, and typically it’s really not one person’s fault, we care about the process, that made the fault possible and how to fix the process, not the person.</p><p>Our experience shows that it’s useful, fascinating, inspiring and educational to learn from each other’s postmortems (cross-companies) therefore we ask you to submit and come tell us about your glorious, infamous postmortems — what wend wrong and how did you fix it?</p><h3>Suggested structure:</h3><ul><li>What was the baseline? What’s the normal state/layout of your systems?</li><li>What happened?</li><li>How did it affect your systems?</li><li>How did you react?</li><li>How was the problem mitigated?</li><li>How did you analyze the incident?</li><li>What were your takeaways?</li><li>What was the followup process?</li></ul><h3>Example submission</h3><p><strong>Title:</strong></p><blockquote>A 30 hour intermittent service outage at Example.com</blockquote><p><strong>Abstract:</strong></p><blockquote>Last fall, Example.com suffered its most severe service outage, rendering some of its customers either completely unable to access their accounts, or incapable of processing transactions. We explain the cause of this outage and its side effects, such as a growing backlog which threatened to exceed our computing capacity. We discuss the different effects to customers based in the US vs. Europe and describe our efforts to restore the service without loss of data.</blockquote><blockquote>We will illustrate the incident mitigation timeline and the tools our teams found useful to collaborate across the globe.</blockquote><h3>Extra notes</h3><ul><li>As with blameless postmortems, we, too, are not interested in placing a blame on a company, a team or an individual. Please keep your presentation professional and educational.</li><li>By nature, postmortems expose company internals: technical, logistical, management, human communications. Please make sure your company agrees to this exposure.</li><li>We are only interested in stories where you had some role.</li><li>Postmortem session duration is 15 minutes.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d96555784f46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reversim Summit Moderation Process]]></title>
            <link>https://medium.com/@rantav/reversim-summit-moderation-process-8384b1c812e3?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8384b1c812e3</guid>
            <category><![CDATA[reversim]]></category>
            <category><![CDATA[public-speaking]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Wed, 06 Feb 2019 06:48:57 GMT</pubDate>
            <atom:updated>2019-02-06T07:16:44.127Z</atom:updated>
            <content:encoded><![CDATA[<h3>Or: How sessions are selected for the conference.</h3><p>In 2019 this is going to be the 7th Reversim Summit, the largest non-commercial developer conference in Israel, hosting 1500–2000 developers and software product professionals.</p><p>As the person heading the conference since its incarnation one of the questions I get repeatedly asked</p><blockquote><em>How are session selected to be presented at the conference?</em></blockquote><p>This question is many times asked out of curiosity, desire for self-improvement and sometimes with frustration by those not selected.</p><p>Let me try to answer as open and as wide as I can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8PxdlZDlIkfKuzVCqAd6mg.png" /></figure><h3>Background about the conference</h3><p>Reversim Summit is a<em> </em>yearly conference for the Israeli software developer community. The conference is organized by volunteering developers and is not for profit.</p><p>The number of participants consistently grows, and likewise the number of submissions. This is both flattering and challenging. We have a wonderful community here and this is yet one more proof of that.</p><p>This post is mostly about how we deal with the (admittedly good) challenge.</p><h3>First some numbers</h3><p>In recent years we see around <strong>400 submission</strong> (of various types), from which typically we can fit into our schedule around 50–60 sessions (of various types, including full, ignites etc).</p><p>Quick math: 400/50=8 so in high level only <strong>1 out of every 8 sessions gets selected</strong>. This is tough b/c we’re not talking about garbage submissions, the submissions are all very high quality (and closely monitored, in realtime).</p><h3>The history</h3><p>The conference stared in 2013 and had gained local popularity. Over time we developed and improved the moderation process. A previous (out of date) post about how moderation process was performed in 2016 can be found <a href="https://medium.com/@rantav/reversim-summit-2016-selection-process-cc599c6b3ac9">here</a>.</p><p>This year we host a team of 14 moderators from various backgrounds, including software developers of various expertise, ops, security engineers, and HR.</p><p>We make sure we have a good mixture of disciplines, genders, employers and experience.</p><h3>What type of content are we looking for?</h3><p>We are looking for inspirational content. We want you to walk out the session saying “wow, this really blew my mind, I didn’t know X can be done”, where X could be a technology, a challenge, a cultural approach, managerial approach or other. We focus on software developers and content that interests software developers and this content is at times highly technical, but sometimes highly cultural, managerial or other. We’re looking for a mixture of contents.</p><h3>How is the team assembled?</h3><p>When we start planning the conference we create the leading quarto which consists of the head of the conference (myself in that case), head of content (Shlomi Noach this year as well as previous year), head of operations (Gilli from outbrain) and head of website (Neta this year).</p><p>From there we recruit the team of 12–14 moderators. We accept volunteers from the community, we set expectations (making sure they can commit to this non-trivial effort) and if we’re lucky enough to not have scare everyone off then we filter out based on experience in mentoring and public speaking, professional background, and make sure we have a good mixture of veteran and new moderators on board (40–60% veterans).</p><h3>What is the technique/process behind the scenes?</h3><p>While we do not expose the data e.g. how many votes each session received or how close did a runner up come, we are in fact completely open and transparent with regards to the process itself.</p><p><strong>Submission</strong></p><p>Submission is open to anyone. We allow up to three submissions per person and we allow submitting in couples.</p><p>We sometimes approach certain persona asking them to submit, not before making it clear that soliciting submissions does not imply acceptance (and as reality shows it really does not).</p><p>We may sometime encourage certain speakers who we think might have an interesting story to tell or certain under-represented population which we think did not send enough submissions, but as noted before, this is where it stops, e.g. we ask them to submit but clarify that there’s no guarantee for acceptance whatsoever. We’ve done that enough times to know that it works.</p><p><strong>Public votes</strong></p><p>When submission ends we open up all submissions for votes.</p><p>The purpose of the public voting is for us to get a feel of what’s interesting to the community and not less important for allowing the community to take part in the process of making and have them involved in the content early on. The conference is all about the content and getting the community involved in the content early on is a true gain.</p><p>There are a few important things to keep in mind WRT votes:</p><ul><li>Votes are confidential. We do not expose the results</li><li>Votes are used by us to measure interest</li><li>We realize there are many biases in the votes and we try to take them into consideration. To name a few: speakers from large companies often get more votes just b/c employees voted for them. Clickbait headers are good indicators of copywriter talent but not necessarily of good content.</li><li>Beyond the known biases, we also have our own agenda of content and so for example even if the five most voted sessions are about GraphQL, that doesn’t mean we want to present five different sessions about GraphQL. It is of course likely that at least one will.</li></ul><p><strong>Coupling up to review teams</strong></p><p>When submission ends we couple up moderators to form moderation teams. We try to couple veteran with newer moderators when possible but this of course also depends on expertise.</p><p><strong>Initial filter phase</strong></p><p>Each couple typically gets about 50 sessions for review. They then read the abstracts, look into the speaker’s previous speaking experience (we look for both experienced and non-experienced speakers), in some cases reach out to the submitters for clarification and eventually come up with a list of 12–14 sessions that that passed that initial filter.</p><p>Each moderator team surfaces three session of interest to the greater moderation crew. For example, they’d discuss their deliberation in choosing between two sessions of similar content, or whether a specific session might not be able to deliver its objectives, etc. We are able to provide guidance to each other and agree on a common baseline.</p><p><strong>Cross-team review and internal voting</strong></p><p>Next the rest of the team reviews: first look into those that got disqualified to see whether some got overlooked and second on those that did pass the first phase in order to say what they think is more fitting</p><p><strong>Internal voting</strong></p><p>We then run an internal vote on all the screened sessions.</p><p><strong>Last filter phase</strong></p><p>Eventually each session owner (couple) looks at the feedback and the votes from the rest of the team and comes up with the short list of accepted sessions. In most cases it’s about 5–8 sessions per track.</p><p>Head of content reviews to see there’s no conflicts between the different teams/tracks (same speaker? Repeating content?)</p><p>From that we build our schedule.</p><h3>Guiding principals and rules of thumbs</h3><p>We developed a few guiding principles or in some cases rules of thumbs that we share with all moderators.</p><ul><li>No sponsored content. This is very different from many other similar conferences. We do not accept sponsored content. It sometimes comes as a surprise to new sponsors, but this is something we absolutely insist on.</li><li>Public votes are useful for measuring interest, but they also suffer from a few biases. We listed some above.</li><li>No nepotism. A few examples:</li><li>If a moderator happens to get assigned a session submitted by friend, family, or co-worker, then this session gets reassigned to the partnering moderator in the same track.</li><li>We don’t allow submissions by moderators. (we did in the past, but not in recent three years)</li><li>No submissions accepted after the deadline. We want to be fair to all submitters.</li><li>In case of last moment cancellation, we only choose replacement sessions from the existing pool of submissions.</li><li>Co-review. Just like code review, for each and every decision there would be at least one more person reviewing. For all selected sessions three would be more than two reviewers.</li><li>Speaker only once. We allow a speaker to speak only once in the conference. Or at least we prefer so (this is a rule of thumb). In the past we allowed more than once but we learnt our lesson.</li><li>Employer once per track. For any specific track we do not allow two or more speakers from the same employer.</li><li>We look for:</li><li>Innovative<strong> — </strong>A complete new take on a known problem, something that screams out-of-the-box</li><li>Promote new speakers — Our agenda is to promote new and inexperienced speakers</li><li>Mind Blowing<strong> — </strong>A sufficiently complex and interesting subject that when described verbally provides an added value</li><li>Inspiring — Something different we haven’t seen before. A do-good project, or something that stands out as remarkable</li><li>In-depth personal experience<strong> — </strong>An item that the speaker had deep dived into for practical use, and not for the sake of the session, and can provide meaningful inputs</li><li>We don’t look for:</li><li>Intro to X — If a Google search will provide more results than you have time to read, it’s not interesting</li><li>Sufficiently battled subject — “Why Should I TDD” kind of sessions</li><li>Purely Academic</li><li>Way Too Broad — example: “Comparison of JVM based Languages”</li><li>We try to balance between content we think will appeal to a greater audience, and content that will only appeal to a niche group (e.g. in-depth technical discussion on a specific topic).</li></ul><p>Written by Shlomi Noach, head of content and myself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8384b1c812e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reversim Summit 2017: Numbers and Stats]]></title>
            <link>https://medium.com/@rantav/reversim-summit-2017-numbers-and-stats-51cd2a791857?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/51cd2a791857</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[reversim]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Fri, 10 Nov 2017 12:13:18 GMT</pubDate>
            <atom:updated>2017-11-10T18:41:17.550Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://summit.reversim.com/">Reversim Summit</a> is a community driven, not for profit, yearly conference for software developers, product managers and everyone else in the software creation sphere in Israel. It is reputed with its original high quality local content.</p><p>2017 is the fifth year that this conference is taking place; First was <a href="http://summit2013.reversim.com/">2013</a>, then <a href="http://summit2014.reversim.com/">2014</a>, <a href="http://summit2015.reversim.com/">2015</a>, <a href="http://summit2016.reversim.com/">2016</a> and now <a href="https://summit2017.reversim.com/">2017</a>.</p><p>Reversim Summit originates from the popular software development podcast <a href="http://www.reversim.com/">Reversim</a> created by <a href="https://twitter.com/orilahav">Ori Lahav</a> and <a href="https://twitter.com/rantav">myself</a>.</p><p>This year the conference took place at The College of Management in Rishon Le-Zion, Israel October 15th, 16th 2017.</p><p>We wanted to share a few numbers and stats for the benefit of the community.</p><h3>People</h3><ul><li>Attendance Day 1: <strong>825</strong> purchased, <strong>665</strong> registered at desk (<strong>81%)</strong></li><li>Attendance Day 2: <strong>800</strong> tickets, <strong>485</strong> registered at desk (<strong>61%)</strong></li><li>Total attendance: <strong>1047</strong> tickets, <strong>932</strong> registered at desk <strong>89%</strong></li><li><strong>19%</strong> women</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vuw5h2P0Y8JYRdRDUbdBHQ.png" /><figcaption>Women at the conference (and Knesset)</figcaption></figure><ul><li><strong>2</strong> babies &lt; 3 months</li><li><strong>2</strong> children ≥ 3 months and &lt; 10 years</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vks4VlfR4cRv2QW2hDmdrw.png" /><figcaption>T-shirt size distribution (Men/Women)</figcaption></figure><h3>Feedback</h3><ul><li>Day 1: <strong>247</strong> feedbacks</li><li>Day 2: <strong>170</strong> feedbacks</li><li>Total: <strong>417</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lCRCpFNWmQcu2bg83WYCtQ.png" /><figcaption>Overall Satisfaction</figcaption></figure><h3>Content</h3><ul><li>Submissions: <strong>339</strong></li><li>Accepted: <strong>56 </strong>(14 ignites, 10 open source, 32 full)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfyFW-w5zV1AaRBBFg1Fsw.png" /><figcaption>Content types</figcaption></figure><ul><li>Women speakers — <strong>18%</strong> (11 out of 61 total speakers)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fh7f1ldbxycf3MvBkEpWGw.png" /><figcaption>Attendees interests in topics</figcaption></figure><h3>Money</h3><ul><li>Sponsors: <strong>19</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhGFunOl2abVie8oGo6low.png" /><figcaption>Number of sponsors year over year</figcaption></figure><ul><li>Total raised: <strong>285k</strong> ILS</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Bo3emE0urOgwe1BXHDQlg.png" /><figcaption>What car can you buy for 285k ILS?</figcaption></figure><ul><li>Tickets admissions donated to The Public Knowledge Workshop: <strong>69k</strong> ILS</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bx91hCIPdXosTj-jQ80BXg.png" /><figcaption>Money donated to The Public Knowledge Workshop</figcaption></figure><ul><li>Food costs: <strong>130k</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mPwPUQ4VEYS9pFQOBDbg9A.png" /></figure><ul><li>Shirt costs: <strong>35k </strong>ILS</li></ul><h3>Misc</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nkc_uxmSXSqSP_6LTreHdg.png" /><figcaption>Distance to the nearest train station year over year</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLQQDXJ6dhzrraMFHBI2AA.png" /><figcaption>Commit history to <a href="https://github.com/rantav/reversim-summit-2017">https://github.com/rantav/reversim-summit-2017</a></figcaption></figure><h4>Thanks</h4><p>Thanks <a href="http://www.nirkatz.com/">Nir Katz</a> for helping (aka doing most of the work) on this blog post. Nir is a long time software developer and excellent writer, you should follow him on his blog <a href="http://www.nirkatz.com/">http://www.nirkatz.com</a></p><p>A similar post with stats from 2016 can be found <a href="https://medium.com/@rantav/reversim-summit-2016-by-the-numbers-32046c36c9e">here</a> and an infographic from 2014 is found <a href="http://summit2014.reversim.com/infographics.html">here</a></p><h4>Keep in touch</h4><p>FB: <a href="https://www.facebook.com/groups/806177629478248/">https://www.facebook.com/groups/806177629478248/</a></p><p>TW: <a href="https://twitter.com/reversim">https://twitter.com/reversim</a></p><p>Email: <a href="https://groups.google.com/forum/#!forum/reversim-summit">https://groups.google.com/forum/#!forum/reversim-summit</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51cd2a791857" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reversim Summit 2016 by the Numbers]]></title>
            <link>https://medium.com/@rantav/reversim-summit-2016-by-the-numbers-32046c36c9e?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/32046c36c9e</guid>
            <category><![CDATA[israel]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[reversim]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Wed, 05 Oct 2016 19:19:41 GMT</pubDate>
            <atom:updated>2016-10-05T19:19:41.375Z</atom:updated>
            <content:encoded><![CDATA[<p>Reversim Summit is a community driven, not for profit yearly conference for software developers in Israel. It is reputed with its original high quality local content.</p><p>2016 is the fourth year that this conference takes place; First was <a href="http://summit2013.reversim.com/">2013</a>, then <a href="http://summit2014.reversim.com/">2014</a>, <a href="http://summit2015.reversim.com/">2015</a> and this year’s event: <a href="http://summit2016.reversim.com/">2016</a>.</p><p>Reversim Summit originates from the popular software developer podcast <a href="http://www.reversim.com/">Reversim</a> created by <a href="https://twitter.com/orilahav">Ori Lahav</a> and <a href="https://twitter.com/rantav">myself</a>.</p><p>Reversim Summit 2016 took place at the Weizman institute of technology in Rehovot, Israel on Sept 19, 20 2016. Following are some interesting numbers and stats.</p><h3>The People</h3><ul><li>Team members (organizers, moderators, admin): <strong>18</strong></li><li>Session submitters during the Call for Papers: <strong>213</strong></li><li>Accepted speakers: <strong>53</strong></li><li>Attendees total unique (from both days): <strong>925</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBgJnkl2HLtL_gO7tLE7zw.jpeg" /><figcaption>Day 1 attendees: <strong>548</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NFle-aAi1WQ-TozHB6fHVQ.jpeg" /><figcaption>Day 2 attendees: <strong>412</strong></figcaption></figure><ul><li>No-show rate (avg both days): <strong>23.5%</strong> (in 2015: 29.5% and in 2014: 30%)</li><li>No-show rate Day 1: <strong>17%</strong> (In 2015: 29% and in 2014: 20%)</li><li>No-show rate Day 2: <strong>30%</strong> (in 2015: 30% and in 2014: 40%)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_1T5UJpMOFCwGAuwoGRZtQ.png" /><figcaption>Most common first names: <strong>10 Amit, 10 Daniel, 10 Eyal, 15 Alon, 15 Nir</strong></figcaption></figure><ul><li>Number of team members newborns during preparations: <strong>2 </strong>👶</li><li>Distribution of registered email domains (top 5): <strong>12 hotmail.com, 12 kenshoo.com, 33 outbrain.com, 58 wix.com, 401 gmail.com</strong></li></ul><h3>Content</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1JK-t7kPEbdiQ1SnPpk7A.png" /><figcaption>Content — accepted v/s submitted</figcaption></figure><ul><li>Number of total submitted sessions: <strong>295</strong></li><li>Submitted full feature sessions: <strong>207</strong></li><li>Submitted ignites: <strong>51</strong></li><li>Submitted Open Source in Israel: <strong>25</strong></li><li>Total accepted sessions: <strong>54</strong></li><li>Accepted full feature sessions: <strong>34</strong></li><li>Accepted ignites: <strong>12</strong></li><li>Accepted Open Source: <strong>8</strong></li><li>Number of original songs authored: <strong>1</strong></li><li>Number of original poems: <strong>2</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KUD8lFQ257omWAOeb3NkFQ.png" /><figcaption>Schedule breakdown</figcaption></figure><h3>Social</h3><ul><li>Number of <a href="https://twitter.com/search?q=reversim">tweets: <strong>102</strong></a> (in 2015: 120)</li><li><a href="https://www.facebook.com/groups/806177629478248/">Facebook group</a> members: <strong>905</strong></li></ul><h3>Money</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UYu2l2ZpCqrwnVXsDs8dRA.png" /><figcaption>Budget total cash: <strong>210k ₪</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqVInuONcuQTMQv7n6zLJA.png" /><figcaption>Number of sponsors. In 2016: <strong>14</strong></figcaption></figure><h3>Misc</h3><ul><li>Number of Volvo L needs repairing: <strong>1</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rpl0IC24qz9c6knkrucJtA.png" /><figcaption>Number of seats in each venue: <strong>610 Wix auditorium, 60 3D theatre, 240 Ebner</strong></figcaption></figure><h3>Nostalgia</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ekjwrq8sJ32QGD5CmB_lcw.png" /><figcaption>Preparation timeline</figcaption></figure><ul><li>Initial team assembly: <strong>Feb 16</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWhON5ocAy9qN3u1P3ssuQ.png" /></figure><ul><li>First meeting of core team: <strong>Early March 16</strong></li><li>Final closing on the venue: <strong>Early May 16</strong></li><li>Moderation team assembly: <strong>May 16</strong></li><li>Call for papers: <strong>June 16 — July 16</strong></li><li>Registration opens: <strong>Late Aug 16</strong></li><li>Event: <strong>19–20 Sept 16</strong></li></ul><p>Thanks <a href="https://nirkatz.com/">Nir Katz</a> for creating the graphics embedded in this post. Nir is a talented writer, previously speaker at reversim summit 2015 and authored a <a href="https://nirkatz.com/2016/09/25/%D7%9B%D7%A0%D7%A1-%D7%9B%D7%A0%D7%A1-%D7%AA%D7%A8%D7%93%D7%95%D7%A3/">recent humorist blog post</a> about his experience at Reversim Summit 2016 (Hebrew)</p><p>Lastly, here’s previous infographic from 2014 in case you’re feeling nostalgic: <a href="http://summit2014.reversim.com/infographics.html">http://summit2014.reversim.com/infographics.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32046c36c9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reversim Summit 2016 Selection Process]]></title>
            <link>https://medium.com/@rantav/reversim-summit-2016-selection-process-cc599c6b3ac9?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc599c6b3ac9</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[public-speaking]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Tue, 16 Aug 2016 12:49:38 GMT</pubDate>
            <atom:updated>2016-08-16T12:50:30.525Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the fourth year <a href="http://summit2016.reversim.com/">Reversim Summit</a> is taking place and this time it’s bigger than ever!</p><p>In this post we describe how sessions are selected to be presented at the conference.</p><h3>Background</h3><p>Reversim Summit is a <em>free </em>yearly conference for the Israeli software developer community. The conference is organized by developers and is non profit.</p><p>2016 is the fourth year that this conference is taking place and over the years it has gotten quite big and popular. This popularity is exhibited by the impressive number (297<strong>!</strong>)<strong> </strong>of proposals submitted during the Call For Papers. Of these, just about 30 full sessions, 12 ignites and 8 open source sessions were selected.</p><p>The selection ratio is somewhere between one out of ten to one out of three, depending on the topic and the session type.</p><h3>The Team</h3><p>The moderation team is comprised of community volunteers who replied to the call for moderators made a few months ago by myself. Led by Adam, Victor and Lidan, the entire team and their bios may be viewed<a href="http://summit2016.reversim.com/"> here</a>.</p><p>Everyone on the team comes from a technical background, with many years of experience, working in tiny startups and full size enterprises. Working with diverse technologies spanning from C++ to all the way to iOS, Python and Ruby, web development, ops, management and more. A team of highly talented developers bringing to table both knowledge and experience in addition to passion for what we all do.</p><h3>Selection Process</h3><p>Following is a description of the selection process.</p><h4>Track Categorizations and initial selection phase</h4><p>Once the CFP was over, team members reviewed all sessions, tagged and classified them into tracks in order to divide the work. We intentionally attempted to do so after the submission phase, so that the submissions themselves will create the tracks instead of the other way around.</p><p>Once classification was complete, moderators matched themselves to head each of the tracks with the task of diving into further details for each of the sessions, and selecting 2–5 of the best as potential candidates for acceptance (full tracks) or 8–12 (OSS and ignites).</p><p>This was by far the hardest part of the process as <strong>there were very few, if any, bad submissions</strong>. A moderator of a full-length track had to choose 1 session for every ~8 she had to reject.</p><p>The tracks and moderators are:</p><ul><li>Frontend — Adir</li><li>Culture — Karen</li><li>Big Data — Shlomi</li><li>Architecture — Yoav</li><li>Devops — Nati</li><li>Product — Tal</li><li>Programming — Dina</li><li>Testing — Gil</li><li>Other — Lital</li><li>OSSIL — Eran</li><li>Ignite — Avner and Shay</li></ul><h4>Session Selection</h4><p>A moderator assigned to a track is an experienced developer and his personal taste is an important factor. However, as a team, we came up with detailed guidelines to help in this selection phase. The following are soft rules, but act as a good starting point.</p><p><strong>Pros:</strong></p><ul><li><strong>Innovative — </strong>A complete new take on a known problem, something that screams out-of-the-box</li><li><strong>Promote new speakers</strong> — Our agenda is to promote new and inexperienced speakers</li><li><strong>Mind Blowing — </strong>A sufficiently complex and interesting subject that when described verbally provides an added value</li><li><strong>Inspiring — </strong>Something different we haven’t seen before. A do-good project, or something that stands out as remarkable</li><li><strong>In-depth personal experience — </strong>An item that the speaker had deep dived into for practical use, and not for the sake of the session, and can provide meaningful inputs</li></ul><p><strong>Cons:</strong></p><ul><li><strong>Intro to X — </strong>If a Google search will provide more results than you have time to read, it’s not interesting</li><li><strong>Sufficiently battled subject</strong> — “Why Should I TDD” kind of sessions</li><li><strong>Extremely esoteric (or unrelated to our main agenda)</strong></li><li><strong>Purely Academic — </strong>We should promote practicality</li><li><strong>Way Too Broad — </strong>“Comparison of JVM based Languages”</li><li>Try not to have too <strong>many sessions from the same speaker. </strong>Preferably, just one session from each speaker</li></ul><h4>Asking for more info from speakers</h4><p>In many cases (but not all) we asked submitters to provide additional details for their sessions. Examples include:</p><ul><li>A bulleted list of topics</li><li>A draft or a skeleton of the slides.</li><li>Previous speaking experience (track record)</li><li>A five minute video</li></ul><p>The purpose of this was to better understand the topic and/or the level of experience of the speaker and how well he/she is versed in the topic. It was up to the moderator to decide what information was needed to get a better picture, not all speakers were asked for all of the items above.</p><h4>Selection Factors</h4><p>Each track’s moderator has the superpower of selecting the sessions on her track. With that, a few other inputs were considered:</p><ul><li>Public (anonymous) votes on the website</li><li>Internal team votes</li><li>All input from the speaker as mentioned above</li><li>Cross-validation and second opinion from other moderators where required (e.g. I’m moderating my co-worker, I need a second opinion)</li><li>Internal team debates about specific speakers and and sessions.</li></ul><h4>Finalizing Selection</h4><p>Finally, as a team, we reviewed all selected sessions and created the agenda.</p><p>Acceptance emails were sent to accepted speakers and rejection emails were sent to those who were not accepted. In many cases a session was rejected not because it was lacking, but simply because there were too many proposals to choose from and we wanted to make sure the content is versatile.</p><h4>Thank you all submitters</h4><p>I want to take this opportunity to thank everyone who submitted a session, to those who will be speaking this year and those who’ll be speaking next year ;)</p><p>We realize it takes a lot of effort and we hope you are happy with the selected content. We hope to see you at the event.</p><h4>We want to hear from you!</h4><p>We are working hard on making the conference better year over year by learning from our mistakes and getting feedback from the community. Getting your feedback will help us improve the process even further.</p><p>We are very much open to any feedback, please let us know what we can do better next year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc599c6b3ac9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Large scale matrix multiplication with pyspark (or — how to match two large datasets of company…]]></title>
            <link>https://medium.com/@rantav/large-scale-matrix-multiplication-with-pyspark-or-how-to-match-two-large-datasets-of-company-1be4b1b2871e?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1be4b1b2871e</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Tue, 02 Aug 2016 18:42:34 GMT</pubDate>
            <atom:updated>2016-08-29T20:18:33.379Z</atom:updated>
            <content:encoded><![CDATA[<h3>Large scale matrix multiplication with pyspark (or — how to match two large datasets of company names)</h3><p>Spark and pyspark have wonderful support for reliable distribution and parallelization of programs as well as support for many basic algebraic operations and machine learning algorithms.</p><p>In this post we describe the motivation and means of performing name-by-name matching of two large datasets of company names using Spark.</p><h3>Motivation first</h3><p>Our goal is to match two large sets of company names. We’re looking at two long lists of company names, list A and list B and we aim to match companies from A to companies from B.</p><p>Typically we would have something like this:</p><pre>List A       | List B<br>---------------------<br>GOOGLE INC.  | Google<br>MEDIUM.COM   | Medium Inc<br>Amazon labs  | Amazon<br>Google, inc  |<br>Yahoo        |<br>             | Microsoft</pre><p>In this example our goal is to match both GOOGLE INC. and Google, inc (from list A) to Google (from list B); and to match MEDIUM.COM to Medium Inc; and Amazon labs to Amazon, etc…</p><p>Looking at this simple example, a few things stand out:</p><ul><li>It’s possible for more than one company from A to match a single company from B; it’s a many-to-one relationship.</li><li>Company names are in most cases easy for humans to match (e.g. Amazon labs to Amazon) but are not as easy for computers to match (how does the computer know that “labs” in this case is insignificant and that “Amazon” is just a short for “Amazon labs”?)</li><li>Not all companies from A have matches in B, and not all companies from B are matched from A. In our example Yahoo from list A is not matched to any other company on B and Microsoft from B is not matched to any company on A either.</li><li>Any element from list A should have at most one match from the B. The opposite isn’t true as noted, many companies from A could be matched into a single company on B.</li></ul><h3>First attempt — trivial match</h3><p>OK, At first we thought we’d try the most simple and trivial solution, to see how well it works, if not for anything else, at the very least in order to establish a baseline for future attempts. The most simple thing to do is just case-insensitive string equation test. Simply match the strings from A to the strings from B.</p><h4>Precision and Recall</h4><p>There are two relevant measures to look at: <em>Precision</em> and <em>Recall</em>. Precision is “how many mistakes did we (not) make”, or in other words — given all matches, how many of them were indeed correct matches — <em>Precise</em> matches. So precision is about <strong>false positives</strong>.</p><p><em>Recall</em> on the other hand is “how many matches should have been found, but were missed”. So recall is about the <strong>false negatives</strong>.</p><p>The first trivial attempt was, as expected, high on precision but low on recall. If we look at out short list of example companies it would match <strong>zero</strong> elements from A to B. That’s very poor recall, but 100% precision ;-). Of course in real-world scenario it would match a bit more than zero but it’s easy to see that due to many small possible variations in company names recall would remain low.</p><p>A simple improvement to that would be the <em>removal of stop-words</em>.</p><h4>Stop Words</h4><p>What are <em>stop-words</em>? <a href="https://en.wikipedia.org/wiki/Stop_words">Stop-words</a> are words that get removed before processions various NLP algorithms because they don’t add information, usually they just add noise. In plain english stop-words are usually the “of”, “for” “if” etc of the language, these are very common words that get used a lot, but for many NLP and IR algorithms then don’t add information. They make for correct syntactical sentences and in many cases they affect the semantics, however at the level of many NLP processors, which don’t look at actual syntax, they are meaningless.</p><p>In our case the stop-words are not the “if”, “of” or “for” which are typical in English, but they are the “inc” and “llc” from the company extension. So our simple improvement is to just remove all these company extensions and try the simple string equation once again.</p><p>This indeed helped and as you can see in our example, this helped match “Google inc.” to “Google” and with simple punctuation removal and correct tokenization, we also match “Google<strong>,</strong> inc” to “Google”. But that still doesn’t match “Amazon labs” to “Amazon” b/c “labs” is not a stop-word in the sense that it isn’t not a <a href="http://www.corporateinformation.com/Company-Extensions-Security-Identifiers.aspx">common company extension</a>. As it turns out, “Amazon labs” isn’t just a random example, many company names have these variations in their names that are manifested in one dataset but are not manifested in other datasets. Conclusion: we have to find a way to “look beyond that”, ignore the “labs” in “Amazon labs”.</p><p>Let us meet science.</p><h3>The Science</h3><p>What we’re looking at here is the problem of matching N documents from list A to M documents in list B, in many-to-one relationship. But our matching algorithm needs to be “smart”, in the sense that it needs to be able to distinguish between “important words” and “non important words”. We need to find a way to tell the computer that “labs” in “amazon labs” is insignificant but “amazon” is indeed significant. We would also trivially tokenize the names into smaller tokens by splitting by spaces, punctuation etc, so that “medium.com” would get broken up into “medium” and “com”.</p><p>Science to the rescue!</p><h4>TF-IDF</h4><p>To that end we use a common scheme in information retrieval theory called <a href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">TF-IDF</a>. TF-IDF stands for Term Frequency — Inverted Document Frequency. Term Frequency simply means “how many times this word appears in this document” (our documents are just company names, so they are very short “documents”). So in the case of “amazon labs” we have only two words in the document “amazon” and “labs” and their frequency is simply 1 and 1. (If by the way the name of the company just happened to be “amazon labs amazon” then the count would have been 2 for “amazon” and 1 for “labs”.) That’s what TF is all about, quite simple: Count the frequency of terms in the document.</p><p><em>Inverted Document Frequency</em> is the real deal. The inverted document frequency looks at all “documents” (aka <em>corpus</em>, all the company names) and tests how often the word “labs” appears in all of them. If the word “amazon” only appears in a single document, that means that “amazon” is a significant word, but if the word “labs” appears in many other documents (e.g. many companies use the word “labs” as part of their name) then that means that the word “labs” is insignificant. IDF is just that — how many documents does the word appear in.</p><p>TF-IDF is TF of the term, divided by the term’s IDF. It provides a good measurement of how important or how significant words are in the context of specific documents.</p><p>It’s easy to compute the TF-IDF matrix for a set of documents. There are ready-made libraries that do that, and we used <a href="http://scikit-learn.org/stable/modules/feature_extraction.html#tfidf-term-weighting">scikit-learn’s implementation</a> for that.</p><p>The TF-IDF matrix is a two dimensional matrix in which the rows represent documents (in our case — company names) and the columns represent unique tokens (or words). If we wanted to build the TF-IDF matrix of our little corpus from list A it’d look something like this (after the removal of stop-words, punctuation and lowercasing everything):</p><pre>           | google | medium | com | yahoo | amazon | labs <br>-----------------------------------------------------------<br>GOOGLE INC.|   1         0      0      0        0      0<br>MEDIUM.COM |   0        .77    .63     0        0      0<br>Amazon labs|   0         0      0      0        .7     .7<br>Google, inc|   1         0      0      0        0      0<br>Yahoo      |   0         0      0      1        0      0<br>com        |   0         0      1      0        0      0</pre><p>Here’s the code:</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer</pre><pre>matrix = vectorizer.fit_transform([&#39;GOOGLE&#39;,&#39;MEDIUM.COM&#39;, &#39;Amazon labs&#39;, &#39;Google&#39;, &#39;Yahoo&#39;, &#39;com&#39;])</pre><p>The matrix that was created is NxM where N = number of companies and M = number of unique tokens.</p><p>You’d notice that we added another (made up) company named “com”. We did that in order to demonstrate an important property of TF-IDF. We use TF-IDF in order to distinguish between significant and insignificant tokens in the documents. A significant token in a document is a token that not only appears in the document often, but that is also relatively rare in the entire corpus. If a term appears many times in the corpus then it becomes less significant for this specific document. We added the made up company “com” so that ”Medium” within “Medium.com” becomes more significant. (You’d notice that “Medium” weight is .77 while “com” weight is .63, and that’s due to the appearance of “com” in another document hence it’s IDF is lower).</p><p>Of course in real world situation you’d have dozens or hundreds of company names with the token “com” or “labs” so you’d see a substantial difference between “Medium” and “com” within the name Medium.com.</p><h4>Cosine Similarity</h4><p>The next step after calculating the TF-IDF matrix for both sides (both lists A and B of companies) is to <strong>multiply the matrices</strong>.</p><p>Multiplying matrices provides an interesting measure called the <a href="https://en.wikipedia.org/wiki/Cosine_similarity"><em>Cosine Similarity</em></a>. The cosine similarity is a simple similarity measurement that ranges between 0 and 1. A value of 1 indicates identical elements and a velue of 0 indicates completely different elements (just like the cosine trig function does). Multiplying the matrices provides the cosine similarity between every element in list A to every element in list B. As a matter of fact, we multiply A by B.T (B.transpose) so that the dimensions fit. The interesting thing about cosine similarity between TF-IDF matrices is that the result is a matrix of similarities between every element in A to every element in B, while taking into account the significance of tokens in the names. Usually a result of &gt; .8 means a valid match.</p><p>Luckily the python package <em>sklearn</em> provides a simple <em>cosine_similarity</em> function that accepts two matrices and results in the cosine similarity of these two. Here’s some demo code:</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer<br>from sklearn.metrics.pairwise import cosine_similarity</pre><pre>a = vectorizer.fit_transform([&#39;aa&#39;,&#39;bb&#39;, &#39;aa bb&#39;, &#39;aa aa bb&#39;])<br>b = vectorizer.fit_transform([&#39;aa&#39;, &#39;bb&#39;])<br>cosimilarities = cosine_similarity(a, b)</pre><p>The result is a matrix of similarities between every element in A to every element in b.</p><pre>           aa   |  bb<br>----------------------<br>aa       | 1    |  0 <br>bb       | 0    |  1<br>aa bb    | .7   |  .7<br>aa aa bb | .89  |  .44</pre><p>As expected, the word “aa” from a is very similar to the word “aa” from b (note the 1). You can also see that “aa bb” is equally similar to both “aa” and “bb” and that also makes sense. And finally you’d notice that “aa aa bb” bares higher similarity to “aa” than it does to “bb”. This all makes sense.</p><p>Let us sum up the science here. First we take two lists of documents and for each set we compute it’s TF-IDF matrix*. Then we multiply the two matrices to come up with their cosine similarity, which is a matrix that describes the similarity between every document in A to every document in B.</p><h3>Second Attempt — numpy matrix multiplication</h3><p>After having seen the science, we want to try this in practice. The next attempt is to load all real companies from list A and load all real companies from list B and multiply the heck out of them using the function <em>cosine_similatiry</em>.</p><p>Easier said than done.</p><p>In small scale this simply works and it works very nicely. For example with a few thousand companies on each side that would work. However with our dataset, in which we have a couple of hundred of thousands names in each list, up to a few millions, this becomes challenging.</p><p>Simply calculating the TF-IDF is feasible, even with such large datasets, on a single host (my laptop runs that easily, in a few seconds). However, multiplying the matrices is where the real challenge is.</p><h4>Local multiplication doesn’t scale</h4><p>Let’s assume we have 1M (10⁶) names in each list. Each matrix then would be about the order of 10⁶ x 10⁶ (since the number of unique tokens is similar in order to the number of companies due to uniqueness of names). Creating a 10⁶ x 10⁶ matrix in memory means 10¹² floats. A python float takes 16 bytes so we end up with 16*10¹² bytes, which translates to ~4PT (four petabytes) of RAM. Can we keep a 4PT matrix in memory? Well, of course not, at least not on my shabby laptop. But — there’s a trick. <em>We don’t have to keep it all in memory</em>. Keep in mind that although the matrix is 1M on 1M, in practice it is <strong>mostly filled with Zeros</strong>. So, why should we bother maintaining all these zeros in memory? We can instead use a <em>sparse</em> representation of the matrix, in which instead of keeping the two dimensional matrix in memory using arrays of arrays, we can instead only keep track of the coordinates of the non-zero elements and assume that all the rest are just zeros. That’s great for preserving low memory footprint as well as executing fast matrix multiplication operations. And as a matter of fact, this is exactly what sklearn already does. Keeping the matrices as Sparse Matrices means that we only have to allocate around 1M floats (values), plus 2M integers (indices of non-zero elements), but all in all it’s about 24Mbytes, which is quite easy.</p><p>But — multiplying the two matrices, even that they are sparse, would mean at the very least 10¹² operations (if we’re smart with the zeros). Now that is a bit harder. And although numpy (which lies underneath sklearn) is very good at such fast math, this thing is a bit challenging even for numpy.</p><p>We tried that — simply multiplying these two matrices. It works well for small enough matrix size, but at some numbers (which are much smaller than what we want) it started to fail and run out of memory. Now, we could’ve worked this out by splitting one of the matrices to smaller chunks and running a number or multiplications one after the other and then summing all things up. But, this kind of reminded us that we already know that kind of system that does that, it’s called Spark.</p><h3>Third Attempt — Spark matrix multiplication</h3><p><a href="https://spark.apache.org/">Spark</a> is great for highly parallelized memory intensive computations and lo and behold, it has a <a href="https://spark.apache.org/docs/1.6.2/api/python/pyspark.mllib.html#pyspark.mllib.linalg.distributed.BlockMatrix">BlockMatrix</a> data type which implements a <a href="https://spark.apache.org/docs/1.6.2/api/python/pyspark.mllib.html#pyspark.mllib.linalg.distributed.BlockMatrix.multiply">multiply</a> operation. Looks like exactly what we were looking for! OK, so we create the TF-IDF matrices and convert them to Spark’s BlockMatrix and run <em>a.multiply(b.transpose())</em> which is more or less what cosine_similatiry does.</p><pre># Pseudocode...</pre><pre>a_mat = tfidf_vect.fit_transform([..., ..., ...])<br>b_mat = tfidf_vect.fit_transform([..., ..., ...])</pre><pre>a_block_mat = create_block_matrix(a)<br>b_block_mat_tr = create_block_matrix(b.transpose())</pre><pre>cosimilarities = a_block_mat.multiply(b_block_mat_tr)</pre><p>This seems easy enough, and it really is. But there’s a “but” of course… this thing, although simple and works correctly from the math point of view — well, it doesn’t scale… We’re able to multiply large matrices, but not as large as we would like to. We tried playing with the block sizes etc alas, for large enough inputs it fails with either out-of-memory errors or just long runs that never end (hours and hours).</p><p>What’s the problem? Can’t Spark scale?</p><p>Of course spark can scale. But you have to use it wisely, stupid... The problem with BlockMatrix is that in order to implement the multiply operation Spark converts the sparse blocks of the matrix into <em>dense</em> (sub)matrices. And although most of our matrix is zeros, spark would still convert all these zeros into dense representation, which would either consume too much memory, or if we keep the size of the blocks small, would result in too many operations, repartitions etc and run forever.</p><p>Spark does support sparse matrices, but these matrices do not implement the <em>multiply</em> (aka <em>dot</em>) operation, and the only distributed matrix that does implement the multiply operation as of the time of writing is the BlockMatrix, which as noted, converts the sparse representation into dense representation before multiplying them. We should note that there had been discussions in the spark community about ways to implement distributed sparse matrix multiplication, however as noted — at the time of this writing, this was not implemented yet.</p><p><em>BlockMatrix.multiply()</em> failed. What’s next?</p><h3>Fourth Attempt — and the winner is…</h3><p>Our fourth and last attempt was successful. The idea is to mix and match Spark with numpy. Our tests show that numpy is able to multiply a smaller matrix with a larger matrix, so if we take just a small chunk of matrix A and multiply that by matrix B, that would work and numpy would not explode. And if you recall your algebra lessons, multiplying matrices can be done vector-by-vector so algebraic-wise that would still be correct. The idea is to <em>split just one of the matrices</em> into smaller pieces, and then have each Spark worker run the multiply on its chunk, and then return just the conclusion, e.g. the conclusion might be that the name at A[13] matches the name at B[21] etc.</p><h4>Broadcast and Parallelize to the rescue</h4><p>Spark has two useful capabilities: <em>broadcast</em> and <em>parallelize</em>. <strong>Broadcast</strong> simply broadcasts the exact same data to all the workers. We use broadcast to send matrix B to all workers so that all workers have the complete B matrix. <strong>Parallelize</strong> chunks the data into partitions and sends each partition to a different worker. We use parallelize to send <em>chunks of A</em> to the workers so that each worker has all of B but just a small chunk of A.</p><p>Here’s the general outline:</p><ol><li>Calculate TF-IDF matrices on the driver.</li><li>Parallelize matrix A; Broadcast matrix B</li><li>Each worker now f<em>latMap</em>s its chunk of work by multiplying its chunk of matrix A with the entire matrix B. So if a worker operates on A[0:99] then it would multiply these hundred rows and return the result of, say A[13] matches a name found in B[21]. Multiplication is done using numpy.</li><li>The driver would collect back all the results from the different workers and match the indices (A[13] and B[21]) to the actual names in the original dataset — and we’re done!</li></ol><p>This method works very well and as a matter of fact when it ran for the first time it was such a nice surprise that we thought it just didn’t work (but it did…). Compared to the previous methods, which either ran for hours (and didn’t finish) or ran out or memory, this method was able to complete its computation in order of just a few minutes. Of course it depends on the size of the data and the size of Spark’s cluster, but all in all it performed really well.</p><p>Right now the only bottleneck is the driver calculating TF-IDF matrices and on that front we still have tons of elbow space because this calculation is still quite easy for sklearn. (side-note: Spark also implements distributed TF-IDF calculation but we didn’t have to use it).</p><p>Here’s pseudocode to illustrate our solution:</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer<br>from sklearn.feature_extraction.text import CountVectorizer<br>from sklearn.metrics.pairwise import cosine_similarity</pre><pre># these would realistically get read from files or dataframes. <br>a = [&#39;google inc&#39;, &#39;medium.com&#39;, ...] <br>b = [&#39;google&#39;, &#39;microsoft&#39;, ...]<br>stopwords = [&#39;ltd&#39;, ...]<br>vect = CountVectorizer(stop_words=stopwords)<br># this can be done with less memory overhead by using a generator<br>vocabulary =  vect.fit(a + b).vocabulary_<br>tfidf_vect = TfidfVectorizer(stop_words=stopwords,<br>                             vocabulary=vocabulary)<br>a_mat = tfidf_vect.fit_transform(a)<br>b_mat = tfidf_vect.fit_transform(b)</pre><pre>a_mat_para = parallelize_matrix(a_mat, rows_per_chunk=100)<br>b_mat_dist = broadcast_matrix(a_mat)<br>a_mat_para.flatMap(<br>        lambda submatrix:<br>        find_matches_in_submatrix(csr_matrix(submatrix[1],<br>                                             shape=submatrix[2]),<br>                                   b_mat_dist,<br>                                   submatrix[0]))</pre><pre>def find_matches_in_submatrix(sources, targets, inputs_start_index,<br>                              threshold=.8):<br>    cosimilarities = cosine_similarity(sources, targets)<br>    for i, cosimilarity in enumerate(cosimilarities):<br>        cosimilarity = cosimilarity.flatten()<br>        # Find the best match by using argsort()[-1]<br>        target_index = cosimilarity.argsort()[-1]<br>        source_index = inputs_start_index + i<br>        similarity = cosimilarity[target_index]<br>        if cosimilarity[target_index] &gt;= threshold:<br>            yield (source_index, target_index, similarity)</pre><pre>def broadcast_matrix(mat):<br>    bcast = sc.<strong>broadcast</strong>((mat.data, mat.indices, mat.indptr))<br>    (data, indices, indptr) = bcast.value<br>    bcast_mat = csr_matrix((data, indices, indptr), shape=mat.shape)<br>    return bcast_mat</pre><pre>def parallelize_matrix(scipy_mat, rows_per_chunk=100):<br>    [rows, cols] = scipy_mat.shape<br>    i = 0<br>    submatrices = []<br>    while i &lt; rows:<br>        current_chunk_size = min(rows_per_chunk, rows - i)<br>        submat = scipy_mat[i:i + current_chunk_size]<br>        submatrices.append((i, (submat.data, submat.indices, <br>                                submat.indptr),<br>                            (current_chunk_size, cols)))<br>        i += current_chunk_size<br>    return sc.<strong>parallelize</strong>(submatrices)</pre><p>You’d notice that after the broadcast and parallelize, we re-assemble the matrix into scipy <em>csr_matrix</em>, which is what it originated from. So what we basically do is — we serialize the matrices over the wire and then reassemble them on the other side, on the workers. The serialization is efficient since we only need to send the non-zero elements of the sparse matrix. So for a matrix of 1M elements we only send about 1M floats, along with 2M ints, which is definitely in the comfort zone of Spark.</p><h3>Conclusion</h3><p>We describe a method for finding similarity between two lists of strings A and B which describe company names. We used TF-IDF and cosine-similarity as a similarity factor.</p><p>Next we show various attempts for scalable implementation of matrix multiplication using spark, and the winning method which combines numpy matrix multiplication along with spark’s broadcast and parallelize capabilities.</p><p>* One fine point to mention: the vocabulary of both matrices must be the same. In other words the number of rows in both matrices must be equal and they must have exactly the same order e.g. each row represents a term and the order of the rows must be exactly the same between matrix A and matrix B. This is easily done by first calculating the vocabulary and only then calculating the TF-IDF as in the following example:</p><pre>from sklearn.feature_extraction.text import TfidfVectorizer<br>from sklearn.feature_extraction.text import CountVectorizer<br>from sklearn.metrics.pairwise import cosine_similarity</pre><pre>a = [&#39;google inc&#39;, &#39;medium.com&#39;]<br>b = [&#39;google&#39;, &#39;microsoft&#39;]<br>company_name_stopwords = frozenset([&#39;ltd&#39;, &#39;llc&#39;, &#39;inc&#39;])<br>vect = CountVectorizer(stop_words=company_name_stopwords)<br><strong>vocabulary =  vect.fit(a + b).vocabulary_<br></strong>tfidf_vect = TfidfVectorizer(stop_words=company_name_stopwords,<br>                             <strong>vocabulary=vocabulary</strong>)<br>a_mat = tfidf_vect.fit_transform(a)<br>b_mat = tfidf_vect.fit_transform(b)<br>cosimilarities = cosine_similarity(a_mat, b_mat)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1be4b1b2871e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Deployable Code (part three)]]></title>
            <link>https://medium.com/@rantav/writing-deployable-code-part-three-3af907568990?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3af907568990</guid>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Mon, 04 May 2015 19:53:10 GMT</pubDate>
            <atom:updated>2015-05-04T19:53:10.709Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the third and last part of my “ Writing Deployable Code” series. In <a href="https://medium.com/@rantav/writing-deployable-code-part-one-13ec6dc90adb">part one</a> I described the motivation for writing deployable code and in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part two</a> some of the more basic steps to take for making your code deployment friendly. In this section I will continue with the description of some more advanced (but very often still necessary) techniques.</p><p>As a reminder, let me shortly list the topics mentioned previously and then I will elaborate about the new topics.</p><ol><li>Self-test (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li>Immutable Services (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li>Monitoring (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li>Logging (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li>Crash Only (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li>Zero touch deployment (mentioned in <a href="https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917">part 2</a>)</li><li><strong>Service discovery</strong>. Service discovery affects the deployment itself as well as the entire service lifetime — post-deployment. When a service is deployed it needs to announce its ready state in order to start accepting traffic, right after it’s self-tests passes (usually through a service discovery registry such as Consul, Zookeeper etc). And if the service uses other backend services it needs to discover them — also through the service discovery mechanism. The reason I bother to mention this here is that if, in the past, service discovery was more or less static, it was sometimes embedded in static configuration files or in DNS, then today service discovery needs to be much more flex and robust to the level that if a service backend changes all it’s users need to know about this change in sub-second latency. There are a few ways to go about it, I mentioned before <a href="https://www.consul.io/">Consul</a> and similar services that may help (<a href="https://github.com/coreos/etcd">etcd</a>, <a href="https://zookeeper.apache.org/">zookeeper</a> to name a few more), but it’s also possible to implement service discovery by means of a load balancer such that the upstream services need only talk to the load balancers and the downstream services announce their availability to the load balancers (HAProxy is a good LB for this purpose). There are other interesting methods such as the <a href="http://nerds.airbnb.com/smartstack-service-discovery-cloud/">SmartStack</a> from Airbnb, which embeds an HAProxy in each node and all hosts’s traffic is routed through this local HAProxy (on each node separately). In short, when topology changes so often — as is the case with frequent deployments, service discovery is a crucial part of the deployment toolchain.</li><li><strong>Unified deployment interface</strong>. The deployed artifact needs to implement an interface. This interface likely supports methods such as <em>Start</em>, <em>Stop</em>, <em>Test</em>, <em>Configure</em>, <em>Unconfigure</em>, <em>Announce</em> etc, depending on your needs. Some operations might be void in some cases but the important part is that all services need to implement the same API such that it’s easy to write a unified deployment script (or use a deployment tool) that would be able to deploy your frontend servers as well as API servers, data processors etc in a unified way. One possible way to achieve a unified deployment interface is to adhere to an already established standard, for example encapsulate all artifacts inside a docker container or RPM for Redhat-like systems or deb packages etc. What you need to keep in mind is that — just like that your service have an API — and just like your classes that have an API — so does deployments need to have an API, that’s the key for every automation and needless to say, good automation is required for deployments.</li><li><strong>Deployment events</strong>. This is a somewhat related to the deployment API mentioned before. If you’ve developed or used a UI component before, you’d know that most components have an API, e.g commands you send to this component, such as Paint or Dispose, but here are also <em>events</em>, which are callbacks that the component notifies you of, such as onClick, onKeyup etc. So <em>API is inbound</em> and <em>events are outbound</em>. Deployments are no different, as mentioned before, a deployable artifacts needs to have an API, which is a way to send incoming commands such as <em>Start</em>, <em>Stop</em> etc. But this artifact also needs a way to notify that it is ready to serve or that it has a fault and it needs to stop serving. Of course — by virtue or load balancers or other error detection mechanisms it is also possible to detect these changes externally, even if the service does not bother exposing them — but do note that only “catastrophe” events are easily noticed by external entities, not the fine-grained ones such as CPU level, queue length etc, plus, it is much harder to debug a system by collecting signals from all around — much easier if the same process that experiences these events would notify you of them. You’re probably already doing it, at leas to some extent — it is called Monitoring and you’re damn right that you should keep doing it. However, what I’m referring to as deployment events is just a more semantic level that aggregates the different signals and noises and reports a more coherent and semantic state change such as <em>Ready</em>, <em>SteppingDown</em>, <em>OverCapacity</em> etc. So in a sense “events” are similar to monitoring events, only that they are more semantic and more actionable. The name and the meaning of the events are in some cases specific to the service, but just like an API — the more you standardize them, the easier it is to automate the service at deployment and post-deployment. How do you report these events and who should subscribe to them? We already mentioned monitoring as being some sort of “events”, however, monitoring can be noisy what what you want is clear and actionable events. Therefore a very basic and simple method to implement outbound events is to utilize a message queue/topic to report them such that all interested parties subscribe to these and get notified. Note that there’s a latency issue with queues so when you need realtime handling, such in the case of service Up an Down events, a service registry tool with sub-second notifications is also in place (plus the service registry is useful in order to provide the full <em>current state</em>, which message queues aren’t good at, and it is also able to notice “dead nodes” that just stopped reporting and can’t even send events). These events are useful for other services and the deployment tool itself to be able to implement robust automation. Eeven if not used for automation, at the very least should be logged and presented on the deployment tool’s interface for visibility.</li><li><strong>Immutable servers</strong>. The concept of <a href="http://martinfowler.com/bliki/ImmutableServer.html">immutable servers</a> means that once you deploy a new version of your service — you do it on clean servers, you do not “reuse” old servers. This can be achieved in several ways — one is that each time you deploy a new version of the service you do it by bootstrapping a new virtual host/instance on hosting services such as AWS, either using a stock image and then running some configuration tool (e.g. chef/puppet/ansible) or use a pre-baked image that already contains your artifacts (<a href="http://techblog.netflix.com/2013/03/ami-creation-with-aminator.html">as Netflix does</a>). Another way would be to use a container such as docker which would encapsulate at least some of the aspects that may change during a host lifetime and bring you pretty close to immutable server. The motivation for using immutable servers (not to mistake with immutable <em>services</em>) is that during the lifetime of a service it may change its environment, e.g. write to disk, change permissions etc and deploying a new version is one great way to “start fresh” and make sure you did not count on (or fail due to) any rubbish previously present on the server. This makes for a clean and robust deployment process such that if you need to add 50 more servers at peak time you’d be able to happily do so without concern of “what happens on the new servers” — b/c always all servers are new, by definition.</li><li><strong>Cattle, not pets</strong>. The previous topic brings me to the statement previously made by others that <a href="https://blog.engineyard.com/2014/pets-vs-cattle">you should treat your servers as cattle, not pets</a>. If you remember your servers IP or names, if someone in the office is worried b/c server X (one specific <em>server</em> X, not <em>service</em> X) is having trouble — then you’re treating your servers as pets, you care too much about specific servers. You shouldn’t. The reality is that servers come and go, what you should be worried about is <em>Services</em>, not Servers. Each service typically runs on multiple servers and if one of the servers happens to crash then another server is (or preferably should be) automatically bootstrapped to take its place. This is implemented well in systems such as hadoop and map-reduce which assume failure and automatically restart jobs on other instances when that happens and there’s no reason why it should not happen with online services. So in short — your servers are cattle, you only care about their headcount, not about one specific instance, you do not know them by name and you shouldn’t care if one particular server dies — there should be an automated replacement for it.</li></ol><p>To sum things up — I’ve listed some guidelines that could help make your services more easily deployed. By following at least some of the provided practices you’d be able to achieve higher level of automation and robust deployment (and post-deployment); sleep better at night; live longer; prosper.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3af907568990" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing Deployable Code (part two)]]></title>
            <link>https://medium.com/@rantav/writing-deployable-code-part-two-217bc884c917?source=rss-586fab9c92fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/217bc884c917</guid>
            <dc:creator><![CDATA[Ran Tavory]]></dc:creator>
            <pubDate>Sun, 03 May 2015 21:44:36 GMT</pubDate>
            <atom:updated>2015-05-04T19:54:05.395Z</atom:updated>
            <content:encoded><![CDATA[<p>Writing Deployable Code (part two)</p><p>This is the second section of the series about writing deployable code. In <a href="https://medium.com/@rantav/writing-deployable-code-part-one-13ec6dc90adb">part one</a> I described just a little bit of the motivation for writing deployable code or deployment-friendly code. In this section of this three-part series I will list the basic properties and methods that a deployment friendly code should support. In the <a href="https://medium.com/@rantav/writing-deployable-code-part-three-3af907568990">third</a> and last part I will list some of the more advanced topics for how to make your code deployable.</p><p>What does writing deployable code mean? Put it another way — what does one (developer) have to do to make its code deployment-friendly? Here’s what I’d learned, happy to learn more.</p><ol><li>Self test. Self-test is the concept of a service that runs a few simple tests upon startup and reports it’s ready state. When a self-test passes it means that the service is ready to take action. For example, if a service needs to use the file system in order to operate or access a message queue the self-test would include a simple access to the file system to make sure it has the correct permissions or enough disk space in order to operate or access the message queue to make sure it’s up and that we have the correct ACL etc. The usual drill is to run a series of self-tests when a backend process is started, as part of the deployment script and if any of these tests fail, the deployment is considered bad and needs to be rolled back. Usually there’s a reserved URL for that same purpose, for example /self-test (sometimes referred to as health-test). In the past I’d written my own framework for self-tests but nowdays there’s abundant so I’d recommend simply using one of the existing libraries if you can find one that fits your stack. For example in Java we have metrics-lib (<a href="https://github.com/dropwizard/metrics">https://github.com/dropwizard/metrics</a>) which includes, among other things, healthchecks.</li><li>Immutable services and application-tests. Similar to self-tests are application-tests. Application level tests (sometime referred to as “testing in production”) are application logic tests which are run on actual production servers. These can be viewed as extension to self-tests in the sense that — if self-tests run a series of a few sanity tests (such as — can I access the file system? can I access the message queue?), then application-tests run more complex tests and as a matter of fact, actually run API calls, real API calls to determine if their results are correct. Another way to look at them is “end-to-end tests”, but instead of running them in a dedicated staging environment they run on actual production servers. There are a few things to consider when writing/running application tests in production. One — how do you determine that they were actually successful? I mean, if they run on real, unsynthesized data, how will you be able to tell if the result is correct? This usually depends on your own logic but many times the result is indeed expected (for example a login API should allow login), and in cases where it isn’t a simple predefined response, the least you could do is run some fuzzy checks, for example that the structure of the response is as expected or at the very least check that the response code is 200 etc. The second concern is “What if by running the tests I change the state on the server and therefore damage producton?”. The answer to this is either you make your services immutable (more about immutable services <a href="http://www.reddit.com/comments/1goq6s">here</a>), which isn’t so-to-say simple, but is a good practice regardless of application-tests, or that you’re being careful not to run state changing API calls, or at least change the state in a way that would not be reflected on users. Lastly, one needs to make sure that by running a series of application-tests you do not accidentally melt your own servers yourself. You need to make sure you leave enough air for the servers the breath.</li><li>Monitoring. Ops surely know what monitoring is. Developers usually also do. The challange is connecting them both. There are a few topics to discuss while discussing monitoring best-practices, I will not cover this entire topic here, but I will try to at least provide the deployment-related angle. The main purpose of monitoring is to indicate whether the service is operating correctly. There are many layers to monitoring — the server level (e.g. disk space, CPU, networking etc), the application level, which is where we concentrate here, and then there’s analytics (e.g. google analytics and such) and user monitoring (mixpanel, intercom etc) and a few more. The title of the post reads Writing Deployable Code, but one needs to keep in mind that by Deployable Code we do not only mean that the application *starts* and *operates* correctly a minute or two afterwards, but that it also runs as expected for the long-haul, 1 hour later, 1 week later, 1 year etc. This concept is sometimes referred to as “post-deployment”; post-deployment events are for example high load which should trigger adding more capacity, service crash which should trigger service replacement etc. All these cannot be achieved without proper monitoring. Many of the containers provide some basic level of monitoring (containers — e.g. linux itself or AWS or other cloud services which provide CPU monitoring, traffic monitoring error rates etc), but to really understand what’s going on in your service, as a developer you have the power to whiten the black-box for ops. You do that by providing descriptive and accurate application level monitoring. As Allspaw once said, “If it moves graph it, if it matters alert it”. Monitoring and alerting need to be part of the usual flow for developers, just like unit tests are (or — hopefully they are). Just like testable code — which makes better code — <em>monitorable code</em> also makes better code. When you start thinking about what are the number you need to keep an eye on, it also makes you think about modularity and you design better systems (otherwise it’s be difficult to extract those numbers). For example if you have an internal in-memory queue, you need to keep an eye on the size of this queue and perhaps also on the incoming/outgoing rate. If you do, you may learn about memory consumption in this queue, about bottlenecks and perhaps eventually decide whether a queue is the correct way to handle the load or not. Speculating about performance is very hard; measuring performance is much easier and many times could lead to surprising results. Hence the process of monitoring your code and even setting up thresholds and alerts needs to be part of the usual dev drill. For example, a fellow developer once told me his team used to annotate each of it’s database access methods with @ExpectedLatency. For example, @ExpectedLatency(ms=50). So if this method runs for more than 50ms, an alert goes off. This is very effective in making developers think about database performance as well as — of course monitoring it. A popular monitoring library for Java is codahale’s metricslib (already mentioned here), which lets devs add application-level monitoring, expose them through an HTTP interface as well as send them to pupolar monitoring services such as Graphite, Ganglia and more. <a href="https://github.com/dropwizard/metrics">https://github.com/dropwizard/metrics</a></li><li>Logs. This is rather trivial, every developer understands the importance and utility of logging so I’m going to keep this short. The only real advice I got from an old programming guru is this: Logs are supposed to tell a story; they tell the story of your software. When you read the logs it’s as if the program is telling you its story, you shouldn’t need to read code to understand what’s going on, just read the logs and the logs will tell you what’s happening.</li><li>Crash only. <a href="http://en.wikipedia.org/wiki/Crash-only_software">Crash only software</a> is one that expects failure and embraces it. Instead of trying to neatly cleanup when the service is stopped (e.g. listening to SIGTERM and handling it) — simply let the program die, but then, when the service is restarted — deal with this possible past failure. So for example a typical database writes an operation log and when recovering (e.g. at startup) it runs all the operations in the log that were not yet marked as run. Online services may adapt similar approach (but there’s a caveat, read on!). The line of thought is that — you’re going to crash anyway, I mean sure, if you run an expected maintnance (restart or deployment) then you can control the process and send a SIGTERM before nuking the service, but you’re not always that fortunate and more often than not — you’d have to deal with crash scenarios. So, since you already have to deal with crash scenarios — why not regard all scenarios as crash scenarios and rather than investing your time in graceful shutdown (which as mentioned you’re not always as lucky), invest your time in smart recovery.<br>To be precise — crash only software refers to something more extreme than this, it refers to systems (such as with Erlang) which instead of dealing with errors simply crash and restart by themselves. That’s also nice, but not my point.<br>Another point worth mentioning, is that in “cloud scenario” many times if a service crashes the new version of the service will not be started on the same physical or virtual host, many times it will be started on a different host. Therefore maintaining local state (as does a typical database) is of little utility and one needs to use external checkpointing utility to maintain state b/w crashes. Such typical checkpoint utility might be just a database, but usually a very simple one (dynamodb for example).</li><li>Zero touch deployment. If you have a wiki page for “how to deploy” — game over. Nuff said.</li></ol><p>That’s it for now. In this section I listed some of the basic measures that help making your code deployable. In the next section I’ll continue with a description of some more advanced techniques. Stay tuned…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=217bc884c917" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>