<?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 Jeffrey Wang on Medium]]></title>
        <description><![CDATA[Stories by Jeffrey Wang on Medium]]></description>
        <link>https://medium.com/@paladin8?source=rss-290c87fed837------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AYVGKYQf2H_BF_l-JxXxag.jpeg</url>
            <title>Stories by Jeffrey Wang on Medium</title>
            <link>https://medium.com/@paladin8?source=rss-290c87fed837------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:50:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paladin8/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[How to engineer culture]]></title>
            <link>https://medium.com/amplitude-engineering/how-to-engineer-culture-61648b506305?source=rss-290c87fed837------2</link>
            <guid isPermaLink="false">https://medium.com/p/61648b506305</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Jeffrey Wang]]></dc:creator>
            <pubDate>Mon, 07 Oct 2019 17:13:26 GMT</pubDate>
            <atom:updated>2019-10-07T17:21:22.626Z</atom:updated>
            <content:encoded><![CDATA[<p>Company culture is incredibly hard, yet also incredibly important. In the <a href="https://medium.com/@bchesky/dont-fuck-up-the-culture-597cde9ee9d4">words of Airbnb CEO Brian Chesky</a>, “[all other problems] will come and go. But culture is forever.”</p><p>At Amplitude, we spend a lot of time thinking about culture. We live and die by our cultural values (humility, ownership, and growth mindset) and invest in people over everything else. How do we keep our culture and values top of mind as we’re rapidly growing? One thing we’ve found valuable is scaling culture through engineering projects, and I’m going to share two examples.</p><h3>Creating cross-team empathy</h3><p>A key part of our culture is building and maintaining strong relationships between different organizations in the company. When <a href="https://artplusmarketing.com/the-3-reasons-why-engineers-should-learn-how-to-sell-c159f5ce4336">engineers have empathy for salespeople</a>, amazing things happen. As with most companies, this was easy in the early days (&lt; 50 people), but we noticed these relationships breaking down as we grew.</p><p>So we created a Friday “cross-team lunch” where members of different teams would be grouped together and go out for lunch. To solve this problem without operational overhead, we built a slackbot to coordinate the effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3vbUzyR_wpBVPXdg" /></figure><p>On Thursday, the bot asks you whether you’re available for cross-team lunch the next day. If you respond positively, you’ll get a message the next day with your group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qGQugGqBLeqVBgjv" /><figcaption>It even suggests a few restaurants for the indecisive :)</figcaption></figure><p>As an example, this is a lunch group I was in with people from engineering, customer success, sales, recruiting, marketing, and professional services. Not bad! This is incredibly popular with folks at Amplitude — it’s been going strong for three years now. And it has done wonders for strengthening the bonds between teams as well as onboarding new hires.</p><h3>Knowing the people around you</h3><p>The next threshold we came up against was <a href="https://en.wikipedia.org/wiki/Dunbar%27s_number">Dunbar’s number</a>, at which point people started not knowing each other’s names. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5332051/">Knowing someone’s name builds trust and empathy</a>, which are foundational to working together well. It’s much easier to negatively comment that “an engineer broke the system” rather than “Jeffrey broke the system.”</p><p>At our last <a href="https://amplitude.engineering/hackathons-at-amplitude-41c96bd95a54">hackathon</a>, <a href="https://www.linkedin.com/in/zmiranda/">Zach</a>, one of our newer engineers, built a game called “Namenomnom” to help people learn each other’s names at the company. It automatically pulls profiles from Slack to test whether you can match names to faces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*AH9V8jd8aVreagfg" /></figure><p>The beauty of Namenomnom is again in its scalability. Because Zach took an engineering mindset to building culture, he was able to help us remember each other’s names without any operational overhead. And he made it super fun!</p><h3>Culture is everything</h3><p>At the end of the day, Amplitude is made up of its people. And culture is what makes that group of people work effectively toward a common goal, so it quite literally is everything. We’re fortunate to have found ways to scale that through engineering, but there’s always more work to be done. After all, culture isn’t something you can automate; you have to continue to invest in it. If you know of effective ways to scale culture, we’d love to hear about them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61648b506305" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amplitude-engineering/how-to-engineer-culture-61648b506305">How to engineer culture</a> was originally published in <a href="https://medium.com/amplitude-engineering">Amplitude Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analytics that doesn’t compromise on data integrity]]></title>
            <link>https://medium.com/amplitude-engineering/analytics-that-doesnt-compromise-on-data-integrity-c1c4339acea?source=rss-290c87fed837------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1c4339acea</guid>
            <category><![CDATA[cassandra]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Jeffrey Wang]]></dc:creator>
            <pubDate>Tue, 01 Aug 2017 00:33:32 GMT</pubDate>
            <atom:updated>2017-08-01T00:33:32.990Z</atom:updated>
            <content:encoded><![CDATA[<p>At Amplitude, we believe first and foremost in providing the best product analytics. We find the right solution for our users and then figure out how to make it happen on the engineering side. This is in contrast to other analytics services or in-house analytics teams that make compromises on data integrity because it’s easier from a technical perspective. But one of the top reasons that people don’t use analytics to make decisions is that <a href="https://www.fastcompany.com/3065294/why-executives-dont-trust-their-own-data-and-analytics-insights">they don’t trust the data</a>. And for good reason — those of us building analytics have historically chosen to sacrifice accuracy when it makes systems easier to build. However, we believe that the role of analytics is changing, and that analytics can and needs to be better than that. Here are four of the hard technical problems that Amplitude has solved to ensure the integrity of your data.</p><h3>#1 Deduplication</h3><p>With mobile becoming a larger share of product usage every year, especially in less-developed countries, user connectivity is a serious concern that apps need to address. The same is true for analytics: poor connectivity can lead to lost or corrupt data, resulting in bad analysis. In order to address this reliability issue, our SDKs have the following three mechanisms built in.</p><ol><li>Buffering data locally: our SDKs accumulate data over a short timeframe (e.g. 30 seconds) before uploading it to reduce network bandwidth. In the case that the device does not have network connectivity yet, the data will be saved on the device until a connection to our servers is established.</li><li>Checksums: because of the wide range of device performance and connectivity, it’s possible for data to become corrupt at any stage during the collection process. We compute checksums to guarantee that it has not been corrupted in transition.</li><li>Robust retry logic: at any point in time, uploading events to Amplitude servers can fail for any number of different reasons. The SDK will retry on failures until it has received a successful response that confirms the data has been collected.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/0*hpjs1h2XKzId7HkQ." /><figcaption>Our data collection system: the SDK deals with an unreliable network and the backend performs deduplication.</figcaption></figure><p>One consequence of the above mechanisms is that the SDK may send duplicate data to the Amplitude servers. While this is usually accepted as a necessary evil of reliable (“at least once”) data collection, we believe that it further damages your ability to trust the data. To prevent duplicate data from polluting metrics, Amplitude implements a 7-day cache of events built on top of <a href="http://cassandra.apache.org/">Apache Cassandra</a>. We track the last week of data in a distributed set so that we can do a lookup on every event we receive. Any event that we’ve already seen according to our cache is ignored, resulting in significantly fewer duplicates.</p><p>In practice, retrying on network errors causes 5–10% of events to be sent more than once, which can have a serious impact on your numbers, especially when analyzing small segments of the population. With our mechanism, the duplicate rate falls well below 1% and can be safely ignored. Without deduplication, you’re forced to choose between losing a percentage of your data or dealing with duplicates that corrupt your analysis.</p><h3>#2 Cross-Platform Users</h3><p>Tracking users across multiple platforms is a key part of understanding how your users interact with your product. Once again, the growth of mobile has turned this into a key aspect of product management and offering the best comprehensive product experience. It turns out to be subtly difficult to properly identify users across different platforms for the purposes of analytics tracking, and most services choose to ignore the problem.</p><p>Imagine a user who visits your website for the first time and then subsequently downloads your app. In both cases, they haven’t created an account or logged in yet, which means it’s impossible to determine that they are the same user. They’ll likely be recorded (inaccurately) as two separate users in your analytics system, and that’s just an inevitability. Later on, however, that user might create an account and login on both the website and mobile app.</p><p>At this point, analytics services will typically recognize the logged-in events as belonging to the same user, but the historical events performed anonymously will not be merged. This is a huge drawback because it makes it impossible to analyze cross-platform acquisition funnels and get a full understanding of the pre-signup experience. Moreover, user counts will be inflated since one user can be counted multiple times depending on how many devices they performed anonymous events on. We saw this problem cause our customers to lose trust in their data early on in Amplitude’s history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*CkRsdK4Tia5o9cPR." /><figcaption>Two anonymous streams of events from a phone and a laptop get merged once the user logs in.</figcaption></figure><p>The key insight for handling cross-platform anonymous tracking is that you should not try to rewrite history. The system can only assume, at the time, that the activity on the website and the mobile app belong to two different users. But if we later receive information indicating that the user is the same (i.e. via logging in), we can incorporate that information when querying the data. That’s exactly what Amplitude does: our query system joins together knowledge of “merged users” with the raw event data to produce the most accurate results. To do this efficiently in a distributed setting, we colocate the event data and the merge user mappings for the same users, one example of how Amplitude has been designed from the ground up for user behavior analysis.</p><p>We’ve spent a lot of time ensuring that <a href="https://amplitude.zendesk.com/hc/en-us/articles/115003135607#merged-users">user histories are automatically and transparently merged</a>. That means you never need to worry about inflated metrics or broken funnels in a cross-platform world!</p><h3>#3 Microscope</h3><p>When people are presented with an unexpected graph, the first question they ask is “who are those users?” It’s incredibly valuable to be able to see the exact users that comprise a data point and why they were counted. We don’t expect our customers to take metrics at face value — they should question and dig into everything in order to draw the most accurate conclusion. That’s where Microscope comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pw3DkyfBND43tVkE." /><figcaption>A common Microscope use case: viewing users who dropped off in a funnel to see what they did instead.</figcaption></figure><p>The functionality provided by Microscope is unique among analytics services because it requires a fundamentally different infrastructure. Our query system was built with Microscope in mind — every query run, from segmentation to funnels to retention, understands the concept of exposing the specific users that led to that result. And then allows that same list of users to be fed back into the system as a cohort that you can further analyze. The core unit of analytics is not the metric, but rather the user and how their behavior influences the reports you’re looking at. That’s why we <a href="https://amplitude.com/blog/2016/05/25/nova-architecture-understanding-user-behavior/">designed our architecture around being able to view and manipulate groups of users as easily as possible</a>.</p><p>Transparency is one of the key principles behind good analytics. Nobody should trust a black box for something as important as making product decisions, and Amplitude is designed so that you can verify for yourself that the metrics make sense for your analysis.</p><h3>#4 Time Zones</h3><p>Companies are global: they have offices and users in every part of the world. Naturally, you should be able analyze the data according to the part of the world you or your users are in. Amplitude’s goal is to enable anyone, no matter how technical, to be able to learn and make decisions from data. Being forced to analyze data in a time zone you aren’t used to is a huge cognitive burden that discourages people from asking the questions they want to ask. We encountered this with all of our customers as well as our own data (we’re in San Francisco).</p><p>So we decided to solve this problem once and for all. One common approach is to manipulate the data as it comes in and artificially shift it to the time zone of your choice. That breaks down because you or someone else you work with invariably will want to look at the data in a different time zone, invalidating all previously collected data that has been shifted. Instead, we take an approach similar to how we handle cross-platform users; keep the raw data as is (immutability is king in distributed systems), but apply time zone information at query time. We built time zone support into the core of our query engine, allowing us to efficiently run queries with arbitrary time zone configurations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/0*myD0wTSqKPa1hCxK." /><figcaption>Time zones are incredibly confusing, and an end user of analytics shouldn’t have to think about them.</figcaption></figure><p>Being able to instantly and retroactively change the time zone of analysis empowers all of our customers to interpret their metrics in a sensible manner. You shouldn’t need to remember that your time zone is offset by 8 hours from UTC (and 7 during daylight savings!), and having to do so gets in the way of getting the real value out of your data.</p><h3>The future of data integrity</h3><p>You may not have thought a lot about data integrity yet, but what we’ve found at Amplitude is that it is the number one concern as soon as an analytics solution is implemented. And the reason is that people have become accustomed to dealing with dirty, corrupt, or otherwise inaccurate data that they cannot fully trust. That’s the sad reality of analytics today, whether you’re building an in-house solution or using a third-party service, but we believe that these problems can be solved with better-engineered products and an extreme dedication to building trust with the end user. Before you decide on your analytics stack, take some time to think about data integrity!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1c4339acea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/amplitude-engineering/analytics-that-doesnt-compromise-on-data-integrity-c1c4339acea">Analytics that doesn’t compromise on data integrity</a> was originally published in <a href="https://medium.com/amplitude-engineering">Amplitude Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>