<?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[Apteligent - Medium]]></title>
        <description><![CDATA[Apteligent helps Fortune 500 companies optimize user experience by identifying performance issues such as slow app load times, crashes, and network failures that impact retention, engagement, and user behavior. - Medium]]></description>
        <link>https://medium.com/apteligent?source=rss----e14d820e678a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Apteligent - Medium</title>
            <link>https://medium.com/apteligent?source=rss----e14d820e678a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:05:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/apteligent" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[2017 Mobile Predictions]]></title>
            <link>https://medium.com/apteligent/2017-mobile-predictions-7cb69cdc6a2c?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/7cb69cdc6a2c</guid>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[snapchat]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Andrew Levy]]></dc:creator>
            <pubDate>Tue, 20 Dec 2016 19:35:46 GMT</pubDate>
            <atom:updated>2016-12-20T19:34:48.314Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*AYAE4MHmC0KEU27WgHtNjw.png" /></figure><p>As 2017 approaches, the major players in the space seem to be competing around a few common themes: artificial intelligence, augmented reality, and a focus on bringing high-end hardware in-house to showcase platform capabilities (the exception here is Apple, which has controlled its entire hardware line from the beginning).</p><p>I dive into predictions for platform owners Apple, Google, and Microsoft. In a new addition this year, I added Snap, Inc., which has proven to have larger ambitions beyond ephemeral image sharing.</p><p><strong>Apple</strong></p><p>Next year is the 10th anniversary of the iPhone and I suspect Apple has big things in store. Rumors are already swirling on feature and function but it’s likely we’ll see an OLED display. This will improve battery life since they don’t require a backlight, as well as allow for greater contrast. In addition they will most likely change the naming scheme to celebrate the anniversary of the iPhone, perhaps calling it the iPhone 10. Finally, Apple may decide to make its iPhone and iPad displays “edge-to-edge” where the glass takes up the majority of the front of the device.</p><p>I cannot resist my temptation to bring up Apple’s lack of investments thus far in VR. Based on Time Cook’s public comments, it seems that Apple is more focused on Augmented Reality, or AR. Perhaps 2017 will bring announcements in that area. The W1 chip in the new AirPods is an impressive piece of tech, and could pave the way for future Apple IoT devices. Another obvious move for Apple in the IoT space is to release a smart home speaker competitor to the Google Home and Amazon Echo. The speaker would leverage Siri for voice commands and HomeKit to interact with other devices.</p><p><strong>Google</strong></p><p>I believe we are seeing a two-pronged approach from Google: invest and leverage their leading AI capabilities on the software side and move hardware in-house to streamline the experience. Recently Google has ramped up its hardware efforts with Google Home, Daydream View VR, Pixel Phones, Google WiFi, and new versions of Chromecast. A great example of this dual approach is the Google Assistant, an upgrade from Google Now capable of two-way conversations. The Assistant was included in the Google Home and Pixel devices. In 2017, expect to see the Google Assistant pushed out to a broader set of Android devices and new integrations into third-party services. We should also see updated versions of these new hardware devices.</p><p>Will there be a brand new type of hardware device announced? It’s doubtful given the new full lineup just announced this past October, but a prime contender would be Nest. They released an outdoor camera this past summer but have yet to expand beyond their Thermostat, Smoke Detector, and Camera offerings.</p><p>Finally one last rumor worth mentioning is Andromeda. This is the rumored code-name for a new OS from Google that combines Android and Chrome OS (or rather, it brings Chrome OS features into Android). This would serve to replace Chrome OS. The idea would be to have a unified platform, similar to Microsoft’s efforts with Windows 10. The cloud-centric features of Chrome OS are interesting and could mean Google is looking to make it easier to carry your digital identity across a plethora of devices. Rumors incorrectly suggested an Andromeda announcement during Google’s October event so perhaps we’ll see an announcement in 2017.</p><p><strong>Microsoft</strong></p><p>2017 is a critical year for Microsoft. They have failed in the phone market with &lt;1 percent market share, took a $7.6 billion writedown on their Nokia acquisition, and laid off thousands of employees. It also looks like they will discontinue the Lumia brand. On the flipside, they have found success with their Surface brand, especially the Surface Pro. Most expect Microsoft to introduce a Surface Phone in 2017. Microsoft’s Continuum product makes this especially interesting since your phone becomes your mobile desktop capable of connecting to a larger monitor and input devices like a mouse and keyboard. It’s not clear where Microsoft goes in the smartphone market from here if the Surface Phone fails. They will of course continue to develop apps and services that work on iOS and Android. However, the lack of a smartphone footprint pigeonholes them in the productivity and business side of the market — lucrative, yes, but something that leaves them vulnerable to a competitor with mass hardware/software adoption on the consumer side.</p><p>Although Microsoft has yet to see adoption in the smartphone market, they are also trying to leapfrog it entirely with their investments in the Hololens. If this type of wearable is the future of computing (and telecommunications), then they will be well positioned for the future.</p><p><strong>Snap</strong></p><p>We’re seeing initial hype and traction from Snap, Inc and their Spectacles product. 2017 should bring wider distribution of the video recording sunglasses. The product is currently not integrating into Snapchat’s other augmented reality features (“lenses” for faces and “world lenses”) but expect this to change. It’s unlikely that 2017 will bring a version of Spectacles that overlays these in real-time on the glasses themselves (à la Magic Leap). I think what’s important is that Snap is starting with a simple use case and training consumers to use connected tech wearables. This change in consumer behavior and simple use case is what really hurt the rollout of Google Glass, which never made it beyond the very early adopter stage for consumers. This should benefit the broader industry as wearable computing moves mainstream.</p><p><strong>Conclusion</strong></p><p>As artificial intelligence platforms open up and investments continue in wearable computing, we’re just scratching the surface of these brand new technologies. 2017 should be an exciting year!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cb69cdc6a2c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/2017-mobile-predictions-7cb69cdc6a2c">2017 Mobile Predictions</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The High Costs of Free SDKs]]></title>
            <link>https://medium.com/apteligent/the-high-costs-of-free-sdks-1f5800d26?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1f5800d26</guid>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[privacy]]></category>
            <dc:creator><![CDATA[Andrew Levy]]></dc:creator>
            <pubDate>Thu, 08 Dec 2016 21:57:21 GMT</pubDate>
            <atom:updated>2016-12-08T21:55:25.193Z</atom:updated>
            <content:encoded><![CDATA[<p>In this day and age of massive data collection, data security and privacy are top of mind for many enterprises and consumers. The concern centers around the collection and use of <a href="https://en.wikipedia.org/wiki/Personally_identifiable_information">Personally Identifiable Information</a>(PII).</p><p>Enterprises that ship mobile apps need to be careful which third-party libraries and SDKs are included during the development stage. The issue is that many tools are available for free, but end up harvesting user data in order to monetize it through targeted advertising. The vast majority of the time this is against the legal policy of the enterprise, as well as the end user license agreement (EULA) between the company’s software and its end users.</p><p>Developers often have no idea this is happening behind the scenes for two reasons: (1) SDKs are black boxes, so the harvesting of the data is hidden from the developer; and, (2) to download the SDK, the developer signs up and agrees unknowingly to terms and conditions (click-through agreements) permitting the practice.</p><p>For example, here is a typical excerpt:</p><blockquote>“Developer hereby grants _______ a nonexclusive, license­-fee free and royalty-free right and license to access, copy, distribute, process and use all information, data and other content provided by Developer…”</blockquote><p>After reading that, you’re probably worried for good reason. If you read through to the end of the statement, you might find that this data can be used “… for any other business purpose.”</p><p>Many companies we hear from are justifiably worried that the “other business purpose” equates to data harvesting — building user profiles to further enhance a dataset then sold for targeted advertisers, even to competitors.</p><p>The realization that developer freeware is exposing your customer data causes alarm. To prevent this from happening, digital leads should audit which service providers are in use, especially those that do not require payment or a subscription fee. Any third-party code or SDKs that did not receive signoff from legal should be removed immediately. Your legal professionals should review/redline the terms and conditions.</p><p><strong>EU &amp; COPPA</strong></p><p>This practice is even more problematic for global enterprises, as well as enterprises that may have end users under the age of 13.</p><p>The <a href="https://en.wikipedia.org/wiki/Data_Protection_Directive">Data Protection Directive</a> outlines movement of personal data within the European Union. The replacement for Safe Harbor, <a href="https://en.wikipedia.org/wiki/EU-US_Privacy_Shield">EU-US Privacy Shield</a>, still under legal scrutiny, outlines the transfer of that data to the US. Free tools will often try to get around the EU restrictions by requiring the developer to prompt the end-user for permission to release their personal information. In practice, this almost never happens for the reasons mentioned before: developers do not read the terms and product managers aren’t aware of the requirement. This puts enterprises out of compliance with data privacy laws in the EU.</p><p>Finally, companies that collect data from minors must comply with the Children’s Online Privacy Protection Rule (COPPA). Companies that harvest user information behind the scenes are not COPPA compliant. Parental consent must be given, along with <a href="https://www.ftc.gov/tips-advice/business-center/guidance/complying-coppa-frequently-asked-questions#General%20Questions">many other requirements</a>, in order to collect PII from minors.</p><p><strong>Summary</strong></p><p>While it can seem daunting to keep up with the latest regulations regarding data security and privacy, enterprises can deploy a proper vetting process to get ahead of any issues with their apps. We recommend you review the third-party tools embedded in yours apps, make sure your team is educated on the legal requirements, and ensure you’re in compliance with local regulations.</p><p>***<br><em>Disclaimer: this article is meant to represent by-proxy opinions held by our enterprise Fortune 500 customers. It is in no way meant to convey legal advice. Consult your user privacy counsel to assess the risk to your app.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f5800d26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/the-high-costs-of-free-sdks-1f5800d26">The High Costs of Free SDKs</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Abstraction layers and schemas and state management, oh my.]]></title>
            <link>https://medium.com/apteligent/abstraction-layers-and-schemas-and-state-management-oh-my-8c2140aa532d?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/8c2140aa532d</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[relay]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[redux]]></category>
            <dc:creator><![CDATA[Richa Avasthi]]></dc:creator>
            <pubDate>Mon, 14 Nov 2016 17:04:52 GMT</pubDate>
            <atom:updated>2017-02-05T18:39:50.166Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong><em>Re-architecting Apteligent’s web application, part 3</em></strong></h4><p>Last time I discussed our choice of <a href="https://facebook.github.io/flux/">Flux</a> as the front-end architecture in Apteligent’s new web application. Today, I’ll explain the Flux-implementing technologies we’ve chosen to use.</p><h3>The gimme</h3><p>Once again, here’s the diagram of data flow in Flux:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*krEm7DoWs2a1AH0lglqrsw@2x.png" /></figure><p>The best part of making architectural decisions is when some of them are made for you. Pretty much everyone who’s using the Flux architecture uses a single framework to build the views: <a href="https://facebook.github.io/react/">React</a>. React’s simple API, high performance, and component-based structure make it a pleasure to work with.</p><p>That’s one down. Now we need to find a framework or frameworks to handle the rest of Flux: the actions, the dispatcher, and the store.</p><h3>In the beginning, there was a choice.</h3><p>Over the past few years, various Flux frameworks have been released; but by the time we got to the scene, one had risen to the top of the heap: <a href="http://redux.js.org/">Redux</a>. It came highly recommended by the creator of Flux herself, and was the framework officially recommended by Facebook for application state management.</p><p>However, a new contender had emerged, released by Facebook as the framework they use in production. It was called <a href="https://facebook.github.io/relay/">Relay</a>, and it worked hand-in-hand with <a href="http://graphql.org/">GraphQL</a>, “a data query language and runtime.” Relay, though very young — it was only open-sourced in late 2015 — excelled at making data-fetching simple and declarative through the power of GraphQL.</p><p>So that was our task: to decide between Redux and Relay for our Flux framework. Let’s talk about each in a bit more detail.</p><h3>The elegance of Redux</h3><p>Redux is an astonishingly minimal, elegant, and powerful framework. It reduces the pain of having to pass props and actions down and up giant component hierarchies in complex applications and makes it easy to manage the internal state of your application.</p><p>Contrary to other Flux frameworks that maintain multiple stores, Redux has a singleton store that manages one hierarchical state tree. This adds a bit of programmatic complexity during setup, but is easier to understand and maintain.</p><p>In fact, you’d be shocked by how little code you have to write to get a lot done. And of course, Redux binds nicely to React component props such that changes in state trigger component re-renders. Gone are the days of manual bindings to event beacons.</p><h3>So what’s GraphQL, anyway?</h3><p>To be able to evaluate Relay, we needed to learn about GraphQL. Becoming familiar with the particulars of GraphQL is left as an exercise to the reader, but for our purposes you can think of it this way:</p><ul><li>It’s a query language that works with a schema you write to represent the data your front-end needs to present to the user.</li><li>It acts as an abstraction layer between the way you store data on the back-end and the way you want to present them on the front-end. GraphQL enables you to write your schema such that the data you need to present are grouped together exactly as you need, regardless of how or where they’re stored.</li><li>In order to use it, both your client and server need to speak GraphQL.</li></ul><h3>Where Relay fits in</h3><p>Relay is the client side of that equation. It is a Flux framework that has a dispatcher and stores like Redux, but abstracts away the internals from the developer in a way that Redux doesn’t. Its responsibilities are twofold:</p><ul><li>Communicating with the GraphQL server to fetch and mutate data.</li><li>Binding GraphQL queries to React component props. That’s an innocuous way of saying something powerful: Relay allows you to declaratively specify a component’s data needs, and it will take care of talking to the GraphQL server to fetch the data a component needs to render itself. This means your front-end developers don’t have to worry about the mechanics of talking to a server to fetch data, at all. That’s <strong>huge</strong>.</li></ul><h3>Relay vs Redux: final round. Fight!</h3><p>Both frameworks have some compelling features, as well as drawbacks. Let’s make a list:</p><h4>Relay: pro</h4><ul><li>Specify data needs declaratively</li><li>Mechanics of data fetching taken care of by framework</li><li>GraphQL lets you create data structures depending on presentational needs, thereby simplifying the front-end logic</li></ul><h4>Relay: con</h4><ul><li>Very young, and its documentation is pretty bare-bones. Most examples available online are trivial. In short, the learning curve is steep.</li><li>While it works very well to fetch and mutate data stored remotely, there is no built-in provision for managing non-persistent state.</li></ul><h4>Redux: pro</h4><ul><li>Very simple and elegant. Get a lot of benefit for a little code.</li><li>Easy to learn and get going with. Good documentation and online resources.</li><li>Managing shared application state is a breeze. Components listen to a part of the store seamlessly and predictably update based on changes to the state.</li></ul><h4>Redux: con</h4><ul><li>No built-in provision for data fetching. That is left entirely up to the developer.</li></ul><p>Though it took us a little while to come to this conclusion — we had originally decided on Relay alone — it became clear that Relay and Redux have complementary strengths, and instead of an either/or choice, it became both/and.</p><p>Today, we use Relay to take care of server communication and data fetching, and Redux to manage shared, non-persistent application state.</p><p>Next time: server-side frameworks.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c2140aa532d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/abstraction-layers-and-schemas-and-state-management-oh-my-8c2140aa532d">Abstraction layers and schemas and state management, oh my.</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Life on the bleeding edge: front-end architecture]]></title>
            <link>https://medium.com/apteligent/life-on-the-bleeding-edge-front-end-architecture-41ede9e5e183?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/41ede9e5e183</guid>
            <category><![CDATA[flux]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Richa Avasthi]]></dc:creator>
            <pubDate>Mon, 14 Nov 2016 17:04:29 GMT</pubDate>
            <atom:updated>2016-11-12T15:35:56.646Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Re-architecting Apteligent’s web application, part 2</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*l1sRilpyVPVHX8WHYX4Ruw@2x.png" /></figure><p><a href="https://medium.com/@ravasthi/re-architecting-apteligents-web-application-54e98e23b3da#.5m1wbxqb7">Last week</a> I talked about the difficulties we’ve been experiencing that led us to re-architect our web application. In the rest of this series, I’ll discuss the technology choices we made in doing that re-architecture.</p><p>So let’s get down to brass tacks. A new web application will need a server side and a client side, each of which requires making a slew of technology decisions.</p><p>In the case of the front-end, it had become clear that we needed to reset our thinking about how we built the UI. Axing Backbone in favor of another framework that did more or less the same thing wasn’t going to cut it, because we’d end up facing the same problems with hard-to-understand data flow and over-fetching.</p><p>Enter <a href="https://facebook.github.io/flux/">Flux</a>, Facebook’s new front-end application architecture. You should really watch the video to understand Flux and its inception, but in a nutshell here’s how it works:</p><p>User interactions with the <em>view</em> affect the system through <em>actions</em> that are sent to a central <em>dispatcher. </em>The dispatcher in turn triggers the likewise central <em>store</em> — in charge of maintaining the application state — to update itself through, for example, server interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*krEm7DoWs2a1AH0lglqrsw@2x.png" /><figcaption>Flux’s beautiful simplicity</figcaption></figure><p>Views subscribe to the store to get updates on the information they care about. And when the store updates itself, it notifies subscribers of changes, which triggers them to re-render.</p><p>Pretty simple, right? Let me highlight a few aspects of the Flux architecture that are of particular import:</p><ul><li>Data flow is uni-directional.</li><li>The central dispatcher and store are clearinghouses for events and shared information, respectively.</li><li>Views re-render on every change to the parts of the store they care about, by default rather than by configuration.</li></ul><p>And here’s <em>why</em> they’re important:</p><ul><li>Uni-directional data flow makes understanding — and predicting — the behavior of the application easier.</li><li>Centralizing the event handling regulates the data flow and, again, makes the system more orderly and predictable.</li><li>Centralizing the shared information and updates to views based on changes in that information — once more, with feeling — adds orderliness and predictability to the system.</li><li>The fact that views always re-render optimizes for the most common case in your development, but you’re given the flexibility to limit those re-renders based on circumstances.</li><li>Perhaps most importantly, the framework you choose takes care of most of the boilerplate associated with actions and view re-renders. In one fell swoop, that reduces errors <em>and</em> the amount code you have to write. There are many frameworks out there; our choice is the subject of a future post.</li></ul><p>By choosing Flux, we’ve set ourselves up to write less boilerplate, understand data flow better, and spend our efforts on the parts of our applications that matter. In other words, to develop new features <em>faster</em>, with <em>less code</em> and <em>higher quality</em>. BOOM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41ede9e5e183" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/life-on-the-bleeding-edge-front-end-architecture-41ede9e5e183">Life on the bleeding edge: front-end architecture</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Re-architecting Apteligent’s web application]]></title>
            <link>https://medium.com/apteligent/re-architecting-apteligents-web-application-54e98e23b3da?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/54e98e23b3da</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Richa Avasthi]]></dc:creator>
            <pubDate>Mon, 14 Nov 2016 17:03:52 GMT</pubDate>
            <atom:updated>2016-07-15T18:36:24.583Z</atom:updated>
            <content:encoded><![CDATA[<p>or <em>What we’re doing and why we’re doing it</em></p><p>These are exciting times to be a front-end engineer at <a href="https://www.apteligent.com/">Apteligent</a>. We’ve recently embarked on a ground-up re-architecture of our web application, which started with an evaluation of the technologies we’d use on the new system. This is our first article in a series describing the technologies we chose and why we feel they are right for us.</p><p>First, let me give you a little context:</p><h4>Pain points</h4><p>Like most web applications of a certain age, ours started as a monolith that we had slowly been carving micro services out of, to the point where the last remnants of the monolith lay in the web application.</p><p>And though we had mostly migrated to a JavaScript (Backbone.js) front-end, we were running into a number of problems that we felt necessitated a fresh start:</p><ol><li>Backbone is a light-weight and flexible framework. But flexibility comes at the cost of having to write a lot of boilerplate. And that makes your code less DRY, easier to screw up, hard to keep consistent, and hard to maintain.</li><li>A collection of modules that know as little as possible about each other (the best practice in most object-oriented architectures) but have overlapping information needs (common when the modules are parts of the same web page) results in over-fetching of data, accompanied by unnecessary network traffic and back-end system load.</li><li>The nature of large-scale applications — of necessity built piecemeal — is that it’s hard to reason about the flow of information and events through the application, even with familiarity. Event bindings are distributed across modules and result in poorly-understood, often unpredictable downstream effects of user interaction. We find ourselves fixing different aspects of the same bugs over and over again, each fix uncovering or creating more edge cases. Over time, success in building new features becomes reliant on a combination of institutional knowledge, reverse-engineering, and luck.</li></ol><h4>Goals</h4><p>The pain points above make it hard to <em>maintain quality</em>, <em>build new features quickly</em>, and, perhaps most importantly, hard to <em>onboard new engineers.</em> These both justify and act as goals for a new application architecture, and in order to achieve these goals, we need to:</p><ol><li><strong>Simplify the architecture.</strong> When you’re building something new, you need to be confident that you’re not breaking something else. That means minimizing and clarifying interdependencies, reducing error-prone boilerplate, making sure complexities are well-documented and, as much as possible, letting common tasks be handled by the framework(s) you’ve chosen.</li><li><strong>Avoid customizations.</strong> The code must be simple enough to be reason-able; it should be relatively straightforward for someone to understand what happens by reading the source. Ideally someone who has only read the official documentation for the framework/library can be assured of success when developing a new feature. That means there are no or very few customizations on top of the vanilla framework. If those customizations exist, they need to be very well documented. The fewer customizations exist, the easier it will be for someone new to the code base to build something without heavy mentoring from someone more familiar with it.</li><li><strong>Prioritize popularity and good documentation.</strong> Reference material on the technologies chosen should be plentiful. Strong official documentation, a sizable community, and a plethora of blog posts/stackoverflow questions should be available to serve as guidance to your team. The obvious caveat here is that the pace of innovation in the JavaScript community is so high that the flavor of the month rarely has adequate documentation. More on this in a later post.</li></ol><p>Sharp-eyed readers will have spotted that a certain client-side architecture that’s <em>so hot right now</em> seems tailor-made to address our pain points and goals — and they’d be right. Tune in next week for more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e98e23b3da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/re-architecting-apteligents-web-application-54e98e23b3da">Re-architecting Apteligent’s web application</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Li-ion Batteries in the Hot Seat (A Primer on the Science of Exploding Smartphones)!]]></title>
            <link>https://medium.com/apteligent/li-ion-batteries-in-the-hot-seat-a-primer-on-the-science-of-exploding-smartphones-28ac0e2f6a95?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/28ac0e2f6a95</guid>
            <category><![CDATA[lithium-battery]]></category>
            <category><![CDATA[energy]]></category>
            <category><![CDATA[battery]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-development]]></category>
            <dc:creator><![CDATA[David Sing]]></dc:creator>
            <pubDate>Mon, 31 Oct 2016 18:35:44 GMT</pubDate>
            <atom:updated>2016-10-31T18:35:44.178Z</atom:updated>
            <content:encoded><![CDATA[<p>Once again exploding batteries are in the news, and once again, Lithium ion (Li-ion) batteries are in the hot seat (puns intended!). First it was Boeing 787 batteries, then hoverboards, and now it’s the Samsung Galaxy Note 7 smartphone. So why are Li-ion batteries continually finding themselves in hot water (my last bad pun, I promise)?</p><p>First, a bit of chemistry 101 as background. All chemical reactions involve the transfer of electrons as chemical bonds are formed. In the formation of a bond, one atom donates an electron to another atom, and that combination is at a lower energy state than the individual pieces. For example, if two hydrogen atoms (which have one electron each) donate those electrons to an oxygen atom, a water molecule is formed, and the excess energy will be released as heat (the most famous example of which is illustrated below in Figure 1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/0*5kfCWc2V-dhH9ATk.jpg" /><figcaption><strong>Figure 1. The Hindenburg bursting into flames at the mooring mast at Lakehurst, N.J.: Everett Collection</strong></figcaption></figure><p>The bit of magic that batteries perform is that the donation and acceptance of electrons occur in locations physically separated from each other, and the electrons are forced to take a very long pathway (involving an external circuit) to go from the donating atom to the accepting atom. Figure 2 shows a diagram of a Li-ion battery during discharging and charging. In a charged Li-ion battery, the Li atoms are initially located in the ‘anode’, which in its simplest form is graphite (i.e., the same material that makes up pencil leads). During the discharge process shown in Figure 2 (a), the Li atoms inside the graphite anode release electrons, which are collected by the external circuit, and after passing through an electrical load (whether a motor or the circuitry of a cell phone), the liberated electrons end up at the opposite side of the battery (the ‘cathode’). Meanwhile, the resulting Li-ions drive off in search of the lost electrons. The only pathway the Li-ions can take is through the liquid electrolyte, which provides a conductive path for Li-ions (but not electrons) to cross from the anode to the cathode of the battery (along the way passing through a separator film that keeps the anode and cathode from touching). In the cathode, the Li-ions find spaces to park within the structure of the cathode material. The other atoms that comprise the structure of the cathode (in the original Li-ion battery the cobalt atoms present in the form of cobalt oxide) have accepted the electrons arriving from the anode, maintaining electrical charge balance (for every Li-ion arriving through the electrolyte, an electron arrives from the external circuit).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dwFC6u82z6uJ9bvw.jpg" /><figcaption><strong>Figure 2. Li-Ion Battery (a) discharging and (b) charging. Source: greencarcongress.com</strong></figcaption></figure><p>There are only a limited number of places where the Li-ions can fit within the cathode, and once all the parking places are full, the battery must be re-charged. During the re-charging process, shown in Figure 2 (b), an external power supply pulls electrons from the cathode and pushes them into the anode. The Li-ions within the cathode again migrate in search of electrons, and those electrons are obtained in the anode. However, it is during charging that most of the problems occur with Li-ion batteries. During normal charging, the Li-ions migrate to the graphite anode and refill the spaces available between the sheets of carbon atoms that make up graphite. However, if the charging process is too rapid, Li-ions will pick up the available electrons on the outside of the anode, effectively forming a metallic Li deposit. Once a metallic Li deposit forms outside of the anode, it becomes a preferential location for other Li-ions to deposit, and eventually a dendrite of metallic Li will form, as shown in Figure 3. If this dendrite continues to grow, it can eventually punch through the battery separator and cause a short circuit within the cell between the anode and cathode, and with it the potential to cause overheating and in some cases combustion of the battery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*WY1gcaKTd_nnjtjU.jpg" /><figcaption><strong>Figure 3. Dendrite formation in a Li-ion cell leading to a short circuit. Source: SLAC National Accelerator Laboratory, Stanford University.</strong></figcaption></figure><p>A short circuit is bad for any battery, but other features about Li-ion batteries contribute to make matters worse. Lithium, as the most reactive of the alkali metals, will combust spontaneously if it comes in contact with water, so the electrolyte that fills the battery must be made of a non-aqueous organic liquid which is also highly flammable. If a Li-ion battery ruptures due to overheating, then the exposed electrolyte can also catch fire, and the highly reactive Lithium will contribute to the severity of the fire.</p><p>Li-ion batteries have an inherent danger due to their use of highly reactive Lithium and combustible organic electrolytes. However, with proper design (involving battery management circuitry to limit charge and discharge rates), Li-ion batteries can be safely incorporated into electronic devices.</p><p>So what got the Galaxy Note 7 into hot water? This matter has been the topic of serious speculation, but unless we were privy to the details of the proprietary battery technology that the Note 7 uses, we can only speculate. Failure mode discussion has centered around battery manufacturing defects and overly aggressive battery charging rates, which is consistent with the idea that dendrite formation could be a contributing factor to the issue. One observation that might be useful for all users of Li-ion batteries is that dendrite formation is inherently a process associated with the charging process, so if at all possible do not leave your devices attached to a charger any longer than necessary. So, sleep tight (with your cell phone disconnected from that charger next to your bed!).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28ac0e2f6a95" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/li-ion-batteries-in-the-hot-seat-a-primer-on-the-science-of-exploding-smartphones-28ac0e2f6a95">Li-ion Batteries in the Hot Seat (A Primer on the Science of Exploding Smartphones)!</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Dark Matter Physics to Gain Mobile Intelligence]]></title>
            <link>https://medium.com/apteligent/using-dark-matter-physics-to-gain-mobile-intelligence-1fc87ad211a7?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1fc87ad211a7</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Alejandro Lopez]]></dc:creator>
            <pubDate>Wed, 19 Oct 2016 20:04:00 GMT</pubDate>
            <atom:updated>2016-10-19T20:04:00.258Z</atom:updated>
            <content:encoded><![CDATA[<p>Before joining the data science team at Apteligent, I was a PhD physics student working towards searching and understanding dark matter. Dark matter is a fundamental new particle whose existence has been inferred by the physics community solely on its gravitational effects since the 1930s*. Unfortunately, any other information other than its probable existence (that’s right, we are not even sure if the particle actually exists) has been hard to tease out. We don’t even know its mass!!</p><p>Currently there are numerous experiments aiming to find dark matter. Due to the breathtaking sensitivity of the experiments and the numerous different dark matter models that need to be tested, scientists use advanced statistical techniques and machine learning to mine the vast amounts of data these experiments produce.</p><p><strong>Note:</strong> <em>Did you know that the world wide web was invented by a scientist, </em><a href="https://en.wikipedia.org/wiki/Tim_Berners-Lee"><em>Tim Berners-Lee</em></a><em>, while working on particle physics at CERN in Switzerland as a solution to sharing a lot of data quickly to his collaborators? Tim Berners-Lee made his invention open source so that we could all enjoy the wonders of the internet.</em></p><p>Apteligent retains its position as the leader in mobile app intelligence by utilizing many of the same big data analytic techniques that top international physics collaborations currently use in the search for dark matter.</p><p>At Apteligent, the data science team has built numerous predictive models using machine learning to give insight and intelligence to our mobile customers. As an example, we recently built a <a href="https://www.apteligent.com/2016/09/ios-10-adoption-predictions-stability/">model</a> that predicted the adoption of iOS 10 based on historical data. The plot below shows the forecast of iOS 10 adoption rate. Note that the iOS 10 adoption prediction resembles more the iOS 9 adoption after its release; as compared to iOS 8. This model accurately predicted that the iOS 10 adoption would cross the 50% threshold approximately 20 days from launch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/0*TlSX3YlA9X4yZpZO.png" /></figure><p>The particular parameters that comprise the model were found by Maximum Likelihood Estimation (MLE). MLE works by finding the specific parameters of the model with the largest probability to be ‘correct’ given the data. Usually an algorithm like gradient ascent is used to maximize the Likelihood function, and find the ‘global’ maximum which pertains to the best predictive model. MLE is a key concept in statistics and machine learning; it is widely used in multiple fields of research and investigation. In particular, it is also used by physicists to find the best dark matter model to explain the data; or conversely, to rule out the model completely**. The beauty of MLE is its flexibility to tackle many different problems.</p><p>Building predictive models with machine learning on big data is one of the biggest challenges of our generation, which pertains to many fields. Machine learning is currently used from creating the recommended movie list on your Netflix account and building autonomous cars, to <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4348437/">researching cancer</a> and <a href="http://sustain.stanford.edu/predicting-poverty/">predicting poverty</a> in developing countries. The data science team at Apteligent harnesses the power of machine learning to mine approximately 100TB of data every month in search for new signals and indicators that help predict and give insight into mobile apps’ user-centric performance.</p><p>* <a href="https://en.wikipedia.org/wiki/Fritz_Zwicky">Fritz Zwicky</a> was the first astronomer to propose the idea of <em>dunkle Materie</em> ‘dark matter’ in 1933.</p><p>** A good book, written by my advisor, titled <a href="http://press.princeton.edu/titles/10196.html">The Cosmic Cocktail: Three Parts Dark Matter</a> neatly summarizes the journey the physics community has undertaken in its search for dark matter and its current challenges.</p><p><em>Originally published at </em><a href="https://www.apteligent.com/2016/10/using-dark-matter-physics-gain-mobile-intelligence/"><em>www.apteligent.com</em></a><em> on October 19, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1fc87ad211a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/using-dark-matter-physics-to-gain-mobile-intelligence-1fc87ad211a7">Using Dark Matter Physics to Gain Mobile Intelligence</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Word About Highly Available Spark + Cassandra]]></title>
            <link>https://medium.com/apteligent/a-word-about-highly-available-spark-cassandra-bc4a30498d7c?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/bc4a30498d7c</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[cassandra]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[crash]]></category>
            <dc:creator><![CDATA[Jeremiah Edwards]]></dc:creator>
            <pubDate>Mon, 10 Oct 2016 17:55:39 GMT</pubDate>
            <atom:updated>2016-10-10T17:55:39.228Z</atom:updated>
            <content:encoded><![CDATA[<h3>Or why you couldn’t see your crash data for a while…</h3><p>Yesterday our Platform and Operations teams learned a few valuable lessons about running highly available distributed systems (<a href="https://en.wikipedia.org/wiki/CAP_theorem">no simple thing</a>). Unfortunately, we learned these things the hard way, and data was <a href="http://status.apteligent.com/incidents/n786h1blxbw6">unavailable in our web portal</a> for several hours until we got things working again. Like with all major incidents, we’ll be doing a full <a href="https://en.wikipedia.org/wiki/5_Whys">Post Mortem</a> in the coming days in order to find out exactly how we can prevent this type of delay from happening in the future. Right now, though, I’d like to tell you about how we <a href="https://www.youtube.com/watch?v=eFTLKWw542g">put out the fire</a>.</p><h3>What happened?</h3><p>The root cause of our service outage was the loss of one of the nodes in our Cassandra ring. Cassandra is a core part of the Serving Layer in our <a href="https://www.apteligent.com/2016/08/introducing-lumos-apteligents-platform-catch-em/">lambda architecture</a>, and is essential for displaying aggregate performance metrics.</p><p>All of our servers run in the AWS cloud. A consequence of having such flexible infrastructure is the fact that servers can and do just go away. After all…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*ALm5TeKLD8hEdrEm." /></figure><p>When the Cassandra host became unavailable, our Spark Streaming jobs stopped being able to write real-time data to the cluster. Every time a microbatch completed, we just saw this:</p><pre>6/10/06 09:44:27 WARN TaskSetManager: Lost task 24.0 in stage 3.0 (TID 829, &lt;IP ADDRESS&gt;): java.io.IOException: Failed to write statements to crash_stream2.details_pt1m.</pre><pre>at com.datastax.spark.connector.writer.TableWriter$$anonfun$write$1.apply(TableWriter.scala:164)</pre><pre>at com.datastax.spark.connector.writer.TableWriter$$anonfun$write$1.apply(TableWriter.scala:139)</pre><pre>at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withSessionDo$1.apply(CassandraConnector.scala:110)</pre><pre>at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$withSessionDo$1.apply(CassandraConnector.scala:109)</pre><pre>at com.datastax.spark.connector.cql.CassandraConnector.closeResourceAfterUse(CassandraConnector.scala:139)</pre><pre>at com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:109)</pre><pre>at com.datastax.spark.connector.writer.TableWriter.write(TableWriter.scala:139)</pre><pre>at com.datastax.spark.connector.streaming.DStreamFunctions$$anonfun$saveToCassandra$1$$anonfun$apply$1.apply(DStreamFunctions.scala:54)</pre><pre>at com.datastax.spark.connector.streaming.DStreamFunctions$$anonfun$saveToCassandra$1$$anonfun$apply$1.apply(DStreamFunctions.scala:54)</pre><pre>at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)</pre><pre>at org.apache.spark.scheduler.Task.run(Task.scala:89)</pre><pre>at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)</pre><pre>at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)</pre><pre>at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)</pre><pre>at java.lang.Thread.run(Thread.java:745)</pre><h3>Why did it happen?</h3><p>The stack trace above was completely useless and gave us no hint at all as to what was going on. It turns out that these writes started failing because the <a href="https://github.com/datastax/spark-cassandra-connector">Spark-Cassandra Driver</a> we use in our streaming jobs could not achieve the required level of consistency it needed in order to correctly accomplish the saveToCassandra operations we were making.</p><p>OK, so, what does that mean?</p><h4>An introduction to Cassandra Write Consistency Digestible at 4AM when Everything is on Fire</h4><p>Cassandra is great. It can handle a massive write workload and not blink an eye. (Well, if it had eyes. Which it doesn’t. But if it did, it wouldn’t blink them. Not even one.) It also has tuneable consistency for both reads and writes. Without getting into all the details, it’s enough to understand that there is a strong relationship between consistency and availability.</p><p>If you want to make highly consistent writes (or reads), your system better have enough copies of the data available to achieve that <a href="https://docs.datastax.com/en/cassandra/2.0/cassandra/dml/dml_config_consistency_c.html">level of consistency</a>. In particular, your Replication Factor and your Desired Consistency have to play nice with each other, otherwise your writes (or reads) will fail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*oyVEaG8SsAQS4iTl." /><figcaption>Seemed like a good idea at the time…</figcaption></figure><h4>And now, back to our outage…</h4><p>One important fact about our system is that we don’t really use Cassandra as an authoritative data store. Instead, we use it to cache the results of batch and streaming jobs run on Spark, and then to make that data available to our API.</p><p>Because of this, we chose to use a Replication Factor of 2 — good insurance against data loss in case of node failure and less expensive than running a full RF&gt;=3 set up.</p><p>Unfortunately, RF=2 does not give you a system that is highly available for writes unless you use a Write Consistency of ONE (meaning the write must be persisted to the commit log and memtable of only a single node in order for the write to succeed).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/0*JERnymLA74L8NCcm." /><figcaption><a href="https://academy.datastax.com/resources/brief-introduction-apache-cassandra">How Cassandra writes happen</a></figcaption></figure><p><a href="http://terminator.wikia.com/wiki/There%27s_no_fate_but_what_we_make_for_ourselves.">As fate would have it</a>, in our streaming code, we mistakenly used the <a href="https://datastax.github.io/spark-cassandra-connector/ApiDocs/1.5.0/spark-cassandra-connector/index.html#com.datastax.spark.connector.writer.WriteConf">default Cassandra WriteConf</a> which falls back on a consistency level of LOCAL_QUORUM.</p><p>The source of our Doom</p><pre>Val consistencyLevel: ConsistencyLevel</pre><pre>                  consistency level for writes, default LOCAL_QUORUM</pre><p>Unfortunately, when data is only backed up once (RF=2), quorum-level consistency is the same as requiring that ALL replicas acknowledge a write before the write succeeds:</p><p>QUORUM = (RF / 2) + 1 = 2</p><p>This setup works fine when all nodes in the Cassandra ring are available, but it’s not a true highly available system: the loss of a single node means that no writes will succeed.</p><h3>How did we fix it?</h3><p>Since no data was lost, it was sufficient to add a shiny new Cassandra host to our cluster, and let it replicate data from other nodes. Given the size of each node, however, the time it takes to bootstrap a new node is measured in hours, not minutes — not acceptable when writes are failing.</p><p>In order to get the system back online as fast as possible, our team put a hotfix together which changed the write consistency level to ONE, and redeployed all of our spark aggregation jobs.</p><p>Here’s some hotfix code:</p><pre>// emergency writeconf to reduce quorum needed to one.<br>    val writeConfReal = WriteConf.fromSparkConf(dStream.context.sparkContext.getConf)<br>    val emergencyWriteConf = new WriteConf(writeConfReal.batchSize,<br>      writeConfReal.batchGroupingBufferSize,<br>      writeConfReal.batchGroupingKey,<br>      ConsistencyLevel.ONE,<br>      writeConfReal.parallelismLevel,<br>      writeConfReal.throughputMiBPS,<br>      writeConfReal.ttl,<br>      writeConfReal.timestamp,<br>      writeConfReal.taskMetricsEnabled)</pre><pre>dStream.map(mapErrorSummaryToErrorSummaryCassandra)<br>.saveToCassandra(&lt;cassandraKeyspace&gt;, &lt;cassandraTable&gt;, writeConf = emergencyWriteConf)</pre><p>This let us simultaneously stream live data into Cassandra directly and backfill data that we were unable to load during the outage.</p><h3>What we’ll take away</h3><p>This outage was a big interruption of service for us and our customers. We still need to work to understand exactly how to prevent this <em>type </em>of problem from happening in the future and to improve our incident response. We’ve done a lot of learning in the last 24 hours, though, and our infrastructure today is more reliable than it was yesterday.</p><p>Also, write configs really really matter, and never trust defaults to do what you want!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc4a30498d7c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/a-word-about-highly-available-spark-cassandra-bc4a30498d7c">A Word About Highly Available Spark + Cassandra</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Best Practices for Optimizing Mobile App Experience]]></title>
            <link>https://medium.com/apteligent/7-best-practices-for-optimizing-mobile-app-experience-1882b9a4c903?source=rss----e14d820e678a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1882b9a4c903</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Robert Kwok]]></dc:creator>
            <pubDate>Wed, 05 Oct 2016 00:47:19 GMT</pubDate>
            <atom:updated>2016-10-05T00:47:19.297Z</atom:updated>
            <content:encoded><![CDATA[<p>Developing a mobile app that delivers a great user experience can be challenging. Even if your app performs well during testing, the complex environment of carriers, fragmentation among devices, and constantly changing operating system versions make it difficult to deliver a consistent, delightful user experience. Some companies, disappointed with a lack of business success resulting from their mobile initiatives to date, are being forced to re-evaluate their mobile strategies. A recent <a href="http://www.apteligent.com/">Apteligent</a> study found that mobile business success is highly dependent on a set of user-centered app metrics that are tracked and trending positively. The companies that have avoided this disappointment focus on user-centered metrics and build specific steps into the app development lifecycle to achieve continuous improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/0*xZlJJQg8NacXnmKN." /><figcaption>Common bad user experiences in mobile apps</figcaption></figure><p>In this article, we’ve put together seven best practices collected from some of our most savvy and successful customers. These best practices encompass both tracking progress over time (week-over-week, across app versions), as well as applying repeatable processes to every sprint and release of an app. Applying these best practices repeatedly over weeks and months has enabled them to deliver 5-star mobile apps.</p><h3>Thinking About Mobile Experience From Your User’s Perspective</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/0*H2PvZbIq0CHqEmmu." /><figcaption><em>Figure 1: “Hierarchy of Abandonment”</em></figcaption></figure><p>Delivering a great mobile app experience requires buy-in from every part of the organization to put the user first. A common refrain heard from companies that develop successful mobile apps is, “we think about customer experience from our user’s perspective.” The graphic shown in Figure 1 above is what we call the “Hierarchy of Abandonment.” It’s a powerful framework that allows product development organizations to consider performance issues that are affecting user experience, then effectively prioritize those issues. As you read these best practices and consider your own development practices, use this framework as a new lens through which to view the performance of your app and how it impacts your users’ experiences.</p><h3>Avoid Failure</h3><p>The best mobile teams ensure their app doesn’t fail their users, first and foremost. This means the app does not freeze or crash, especially during key moments during a user’s session. It also means making sure users are able to complete core actions in the app such as login or checkout.</p><p>One of the most important metrics these companies track is its crash rate: the percentage of app sessions that experience a crash. The most successful apps track two key metrics for crash rate: an <strong>overall</strong> crash rate and a crash rate in the <strong>most important user flows</strong> <strong>within the app</strong>.</p><h3><a href="https://www.apteligent.com/developer-resources/best-practice-1-fix-the-top-ten-crashes-each-sprint/">Best Practice #1: Fix the top ten crashes each sprint</a></h3><p>One of the challenges with developing a mobile app can be deciding how much time to devote to developing new features vs. fixing bugs. While it is often tempting to allocate 100% of a release to shipping new features, fixing prominent bugs that are failing your users may be a better bang for the buck. The best teams allocate time every sprint to fix the ten crashes affecting the largest number of users in their app.</p><p>According to <a href="https://data.apteligent.com/ios/benchmarks/global">Apteligent data</a>, the best apps have a crash rate of less than 0.25%. However, 75% of apps across iOS and Android do not meet this standard. How did apps like <a href="https://www.apteligent.com/resources/case-studies/groupon/">Groupon</a> get to a crash rate below 0.02% and 4.5 stars in the app store? Their success was largely due to a disciplined and data-driven sprint process. Every sprint, they created a list of the ten crashes that affected the largest number of users and fixed them. With each release, they were able to continue to lower their crash and increase their ratings in the app store.</p><h3><a href="https://www.apteligent.com/developer-resources/best-practice-2-maintain-a-crash-rate-of-less-than-0-25-in-your-apps-three-most-critical-userflows/">Best Practice #2: Maintain a crash rate of less than 0.25% in your app’s three most critical user flows</a></h3><p>Whether it’s login, new account registration, or checkout, every app has flows from screen to screen that are critical to the success of the app. First, identify the top two or three flows in your app that are critical to improving business metrics (e.g., monthly active users, retention, or revenue). Then, for those key flows in your app, monitor any performance issues that are causing failures. Crash rate across each of these flows is an app metric that we see teams measuring and striving to improve over time. If your organization falls short of having an overall crash rate of 0.25% or less, you minimally must maintain a crash rate of 0.25% or less in your top three flows. Prioritize the top crashes that occur in these flows to ensure the most impactful bugs are being fixed.</p><p>In summary, to optimize the crash rate of your most critical flows in your app, apply the following process:</p><ol><li>Identify the three most important flows for your users in your app (e.g., Login New Account Registration, Checkout)</li><li>Fix the top crashes affecting those critical flows every sprint</li><li>Maintain a crash rate &lt; 0.25% in your most critical user flow</li></ol><h3>Prevent Frustration</h3><p>In addition to monitoring failures due to crashes in critical flows, it’s also important to make sure your app doesn’t frustrate your users with long wait times or a sluggish feeling UI. Since mobile apps are typically used in short, fleeting moments while commuting to work or waiting in line at store, every interaction in the app matters. There are two metrics that are critical to measure and improve: <strong>app load time</strong> and <strong>user interaction time</strong> during key flows in your app.</p><h3><a href="https://www.apteligent.com/developer-resources/best-practice-3-reduce-app-load-time-to-two-seconds-to-increase-engagement/">Best Practice #3: Ensure your app loads in under two seconds</a></h3><p>In addition to crash rate, most of our customers track app load time as a core performance metric of their app. App load time is a metric that is often highly correlated with user engagement in mobile apps. The longer it takes for your app to load, the less likely a user will use your app. In fact, studies have found that 50% of consumers consider app load time a major source of frustration and 25% would leave a brand due to unacceptable load times. Despite this research, almost half (<a href="https://data.apteligent.com/ios/benchmarks/global">46% of iOS apps</a> and <a href="https://data.apteligent.com/android/benchmarks/global">53% of Android apps</a>) take over two seconds to load. No wonder some organizations are re-evaluating their mobile strategy; they’re not monitoring the right app metrics.</p><p>The best mobile teams monitor app load time as a leading metric of traditional key performance indicators comparing each release to the last — and each week of data to the previous week. Changes to an internal API, the addition of a third-party SDK, or a release of a new operating system can drastically affect app load times and, correspondingly, business metrics. In fact, one of our customers discovered that a 10% decline in in-app purchases within their app was directly caused by a one second increase in app load time when Apple released iOS 9.</p><h3><a href="https://www.apteligent.com/developer-resources/best-practice-4-optimize-interaction-time-to-create-delightful-user-experiences/">Best Practice #4: Ensure user interactions feel responsive</a></h3><p>Every time a user interacts with your app, they expect your app to “feel responsive.” In a mobile app, there are two types of user interactions: an interaction in which a user expects the app to respond immediately and interactions in which the user is expecting a short delay because they perceive it to be working to extract or process data.</p><p>Applying the research summarized in Jakob Nielsen’s article on user interface design, “<a href="https://www.nngroup.com/articles/powers-of-10-time-scales-in-ux/">Powers of 10</a>,” if the UI takes over 0.1 seconds to respond to an interaction, users will perceive the UI as delayed and not “instantaneous.”<strong> </strong>If the UI takes over 1.0 second, users will start to lose both their train of thought and the feeling of being in control of their interactions.</p><p>To create a responsive mobile app, measure both those user interactions in your app that should complete immediately and those where the user expects a short wait time. Start with the interactions that are the most common in your app and the ones that the most important flows depend on. Measure the time it takes from when a user interacts with the app (i.e., taps on a button) to the time when the UI gives the user a valid response (i.e., the screen is finished loading and the app is available to accept new user interactions). If any of these interactions take longer than expected, analyze the events and network calls that are slowing these down, create tickets, and fix them. A set of common user interactions and their target interaction times are shown below in Figure 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*oz19YMz8w5gXcJJbT5ESbg.png" /><figcaption><em>Figure 2: Common User Interactions and Target Interaction Times</em></figcaption></figure><h3>Best Practice #5: Monitor network calls during key flows</h3><p>Many interactions on mobile depend on network calls to load data or perform a query. Games often depend on network calls to load images or sound files for a new level. E-commerce apps often use network calls to search their store inventory or make a purchase. All apps that allow users to log in or create an account rely on network calls to perform these functions. As you’re optimizing user interaction times in your app, it’s important to monitor the network calls these interactions depend on. For these network calls, monitor and improve these two metrics:</p><p>● <strong>Latency: </strong>the amount of time it takes for a call to complete (how long a user is waiting)</p><p>● <strong>HTTP Error Rate: </strong>how frequently the call fails either due to a server returning an error or the app’s inability to connect to a server</p><p>Since interaction times often depend on these network calls, make sure that the latency of calls that occur during a critical flow are less than one second. If a network call is taking longer than a second, work with the API owner to reduce the latency of that endpoint by either optimizing the processing time, using a different API, or changing the network call to send/receive less data. The error rate of these network calls should be treated similarly to the crash rate in your most important flows. The error rate of calls to these endpoints should be less than 0.25%. Set alerts for key endpoints so that if the error rate goes above 0.25%, you are notified right away.</p><p>To optimize the endpoints your app’s most critical flows depend on, apply the following process:</p><ol><li>Monitor the three most important flows in your app</li><li>Time how long they take to complete</li><li>Identify network calls that each user flow depends on</li><li>Monitor the latency and error rate of each call:</li></ol><ul><li>Latency &lt; 1 seconds</li><li>Error Rate &lt; 0.25%</li></ul><h3>Avert Annoyance</h3><p>The final two metrics to monitor in your app are <strong>data usage</strong> and <strong>battery drain</strong>. While they do not immediately affect a user’s in-app experience, it’s important to measure these metrics to ensure users do not uninstall your app or leave a 1-star review in the app store.</p><h3>Best Practice #6: Measure data and battery life usage</h3><p>As consumers have become more dependent on their mobile phones, experienced overage charges with their carriers, and been stranded with a dead battery, they’ve become more careful about which apps to use. Both Google and Apple have responded to consumer demands to provide more transparency about what’s eating up battery life and data. For example, Apple now provides utilities in their system settings that tracks the amount of data each app uses (see Figure 3) as well as battery life, and Android has a built-in battery (see Figure 4) and data usage tools as well. If a customer sees an app that’s consistently draining battery or using up their data plan, they will uninstall that app. Even Facebook’s app has been scrutinized for draining the battery and causing other apps to launch more slowly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*SbTbEwhWwDTrxCenc9Cwsw.png" /><figcaption>Figure 3: Apple’s Built-in Data Usage Tool</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*gpyt-HTG8pYf5Kih8D_6uw.png" /><figcaption>Figure 4: Android’s Built-in Battery Tool</figcaption></figure><p>The most common cause of battery drain and data usage are network calls, so our customers keep an eye out for an increase in the number of network calls or the amount of data sent and received for each call. Before pushing a new release of their app to the app store, monitor the amount of data your app sends and receives. Third-party SDKs can also often be very chatty; before adding a third-party SDK to the production build of your app, do your homework and monitor how frequently calls are being made and how much data is sent with each request.</p><h3>Summary: The Mobile Metrics You Should Optimize</h3><h3>Best Practice #7: Monitor your mobile app metrics over time and per release</h3><p>In summary, we found the best apps are managed by teams that take a very data-driven approach to optimizing user experience. They measure key metrics such as app load time and crash rate, and ensure these metrics are improving over time and with each new update to their app. To prioritize what they work on each release, they look at the three most critical user flows in their app and fix the crashes or slow network calls during those flows. Finally, they safeguard against users uninstalling their app due to battery drain or data usage by monitoring how many network calls their apps send and by testing SDKs before adding them to their app.</p><p>● <strong>Avoid Failures</strong></p><p>— Overall Crash Rate &lt; 0.25%</p><p>— Crash Rate of Critical Flows (e.g., “Login”) &lt; 0.25%</p><p>● <strong>Prevent Frustration</strong></p><p>— App Load Time &lt; 2 seconds</p><p>— Critical Flows &lt; 2 seconds</p><p>— Flow-Dependent APIs: &lt; 1 second latency, &lt; 0.25% error rate</p><p>● <strong>Avert Annoyance</strong></p><p>— Monitor Request Volume and Data Sent/Received</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1882b9a4c903" width="1" height="1" alt=""><hr><p><a href="https://medium.com/apteligent/7-best-practices-for-optimizing-mobile-app-experience-1882b9a4c903">7 Best Practices for Optimizing Mobile App Experience</a> was originally published in <a href="https://medium.com/apteligent">Apteligent</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>