<?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 Selvaganapathy Kaliamurthy on Medium]]></title>
        <description><![CDATA[Stories by Selvaganapathy Kaliamurthy on Medium]]></description>
        <link>https://medium.com/@selvagk?source=rss-3be9dba3dd56------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*onKB--jlqecbXkqH_Qw8XQ.jpeg</url>
            <title>Stories by Selvaganapathy Kaliamurthy on Medium</title>
            <link>https://medium.com/@selvagk?source=rss-3be9dba3dd56------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:46:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@selvagk/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[Transpose Computing from Browser to Cloud]]></title>
            <link>https://medium.com/engineered-publicis-sapient/transpose-computing-from-browser-to-cloud-45bef2812bc8?source=rss-3be9dba3dd56------2</link>
            <guid isPermaLink="false">https://medium.com/p/45bef2812bc8</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Selvaganapathy Kaliamurthy]]></dc:creator>
            <pubDate>Wed, 25 Mar 2020 06:55:44 GMT</pubDate>
            <atom:updated>2020-03-25T06:55:44.714Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember the day of my first computer of 750MHz of Pentium III processor running in 256MB of RAM use to heavy-lift my work on image editor and frontend work in 2005.</p><p>Now, my phone is much more powerful and runs a better image editor with ease. And yeah, Moore’s law predicted it right!</p><blockquote><strong>“Moore’s Law</strong> is a computing term which originated around 1970; the simplified version of this <strong>law</strong> states that processor speeds, or overall processing power for computers will double every two years.”</blockquote><p>But in the last couple of years, things changed in the chip industry, and comes with the fact that Moore’s Law is slowing down for many market segments. Moore’s Law definitely brought significant integration and scaling that were dubious. But at the same time, it made all the talent to focus mostly on scaling/porting/integration type of engineering in SoC (System on Chip), instead of new innovations.</p><blockquote>“The end of Moore’s Law could be the best thing that has happened in computing since the beginning of Moore’s Law,” — <em>R. Stanley Williams, research scientist for HP Labs</em>.</blockquote><blockquote>“Confronting the end of an epoch should enable a new era of creativity.” — <em>Computing in Science &amp; Engineering. IEEE CS and AIP — March/April, 2017</em>.</blockquote><p>The key factors for slowdown in Moore’s Law are manufacturing and design costs for a chip have increased exponentially. To get a slightly better performance, more cost in design and manufacturing is required.</p><p>For example: Performance difference between Apple’s Bionic A13 chip vs Snapdragon’s 855 varies only by a margin.</p><p>So we have reached a saturation point in hardware and chipsets in processing power and performance.</p><p>But on the other side, there is humongous opportunity and scope for the need of more performance and data processing power by applications like browser. With the vast amount of applications available in browsers, people will soon foresee a time where the only thing they’ll see in a device is “<strong>Browser”.</strong></p><blockquote>Browser — A platform, an application which runs on another!</blockquote><p>Web browsers capable of running applications range from a simple progressive web app to running a Blockchain application, <a href="https://www.youtube.com/watch?v=n64l3zs3m9I"><em>extended reality Application </em></a>which gives an immersive web experience, <a href="https://www.youtube.com/watch?v=SQYyzlA7Vts"><em>face recognition</em></a><em> etc...</em></p><p>You name it, it can!</p><p>At times, we can’t push the limit of the web browsers, as the performance varies from device to device due to their individual hardware capability which they are spawn on.</p><p>On the contrary, we have Cloud computing, which is the powerhouse of computing and performance. But unfortunately, there is no direct native web API in the browsers which supports this seamless transition.</p><blockquote>We have mobile devices without the computing power needed to deliver a great experience!</blockquote><blockquote>And Cloud computing has all the required power, but that’s too far away from the reach of browsers.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzrjuQEY7y0IKDT6Tg0HQQ.png" /><figcaption>State of Distributed Computing — Browser Point of View</figcaption></figure><p>In today’s world of internet connectivity, it makes sense to distribute computing across devices. Though offloading computing across multiple near-by handheld devices is unreliable. But Cloud can be an alternate and reliable way to offload the computing from browser.</p><blockquote>Offload the browser’s less critical and immediate computing to Cloud.</blockquote><blockquote>But how?</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*-VotjX3ff_R7kxhn2T3wqA.png" /><figcaption>Offloading Browser Computation</figcaption></figure><p>Possible hindrances to offload the computing from browser:</p><ol><li>No native browser API which asynchronously disposes the computing to Cloud</li><li>The browser and the program have to determine the boundary by which computing is to be offloaded to Cloud, and how to integrate back the main application running in the browser</li><li>Need of adapters to offload the computing in Cloud providers</li></ol><p>Since interactivity is important for many mobile apps, computations are commonly run in web workers. As such, <strong><em>web workers</em> </strong>are a natural target to offload to more powerful servers.</p><p>To migrate web workers, the migration system should have the ability to take snapshots of the current worker state, Web-assembly functions and native built-in objects.</p><p>Capturing JavaScript snapshot can be done via transversal of variables in the worker global scope, but it becomes clumsy for web-assembly(Wasm) functions.</p><blockquote>Wasm functions contain native codes compiled at runtime, so they should not be directly offloaded as normal JavaScript objects.</blockquote><blockquote>For example, if wasm functions compiled at at ARM client disposed to an x86 server at Cloud, those wasm functions will not run properly.</blockquote><p>Apart from snapshots of the objects, when and where to offload the workers and integrate back to mobile applications are important, as there is a possibility of losing internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t0xctN-3YTTOFLUIkuYFUw.jpeg" /><figcaption>Architecture view of offloading web workers; can be replicated in any language and disposed in Cloud as FaaS</figcaption></figure><p>Assumption: Let’s make an assumption that the Edge/Cloud server is able to predict the processing time for a given job.</p><p><strong>Mobile Device: </strong>Runs a programmer-defined Application main thread and web worker thread, which will be offloaded to any Edge/Cloud as a function.</p><p><strong>Edge Server: </strong>Can be a peer-to-peer mobile device, desktop computer in a network, etc.</p><p><strong>Cloud</strong>: Functions as a Service (FaaS), which runs the specific task, and returns back to the client device at the given point of time.</p><p><strong>Client side Offload Manager:</strong></p><ol><li>The<strong> </strong>Mobile<strong> </strong>Offload Manager either polls are the nearby servers for availability or it could be nearby servers beacons the mobile for availability.</li><li>On availability, the Offload Manager establishes a websocket connection with all the available server and queries to estimate the time for the particular task. Based on minimum latency in both computing and transmission of data, the Offload Manager sends the job to the server.</li></ol><p><strong>Server side Offload Manager (Edge/Cloud):</strong></p><ol><li>The Server side Offload Manager handles the request from client side and runs the task in the pool of workers. These web-workers were already spanned and kept ready for execution. These workers can be from a headless browser — headless web-worker?</li><li>Reference to each task is intercepted and handled by service worker in offload manager.</li><li>On completion, the manager returns back to the client side offload manager based on the reference context.</li></ol><p>The above implementation is an idea, and no implementation available as Earl Nightingale said:</p><blockquote>“Everything begins with an idea.”</blockquote><p>Foot notes: The above implementation of server side offload manager using web platform is for an easy understanding. The idea can be replicated in any language/platform and task can be run in Cloud as Function as a Service.</p><p>The above implementation is a proposal/idea inspired from a research journal on Liquid webworkers by Andrea Gallidabino and Cesare Pautasso.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45bef2812bc8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/engineered-publicis-sapient/transpose-computing-from-browser-to-cloud-45bef2812bc8">Transpose Computing from Browser to Cloud</a> was originally published in <a href="https://medium.com/engineered-publicis-sapient">Engineered @ Publicis Sapient</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>