<?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 Sameer Srivastava on Medium]]></title>
        <description><![CDATA[Stories by Sameer Srivastava on Medium]]></description>
        <link>https://medium.com/@samvastava?source=rss-cf1ad75660b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*xX-eSuHIveJ4P17I.jpg</url>
            <title>Stories by Sameer Srivastava on Medium</title>
            <link>https://medium.com/@samvastava?source=rss-cf1ad75660b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:28:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samvastava/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[Forget About Your Server Woes]]></title>
            <link>https://medium.com/iotforall/forget-about-your-server-woes-4ffa24de4eb0?source=rss-cf1ad75660b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ffa24de4eb0</guid>
            <category><![CDATA[news]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Sameer Srivastava]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 15:33:48 GMT</pubDate>
            <atom:updated>2018-02-20T15:33:48.236Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>If you’re thinking of deploying a whole server, think of whether you could create a FaaS application instead.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*diFjMOaWM0vbgXhOQxP2yA.png" /></figure><p>It’s easier than ever to “spin up” or deploy your own server to support your business. Of course, it’s not exactly your own server, the actual hardware and base configuration is controlled by the Amazons, Googles, Microsofts, and IBMs of the world.</p><p>However, you get to put your own software on there without worrying about where the server is located, the utility bills, replacement costs, etc. Now, we can even avoid configuring our servers and scaling our applications with Functions as a Service (FaaS).</p><h3>What is FaaS?</h3><p>So what exactly is FaaS? FaaS is a computing service that uses a serverless architecture approach. Serverless applications have <em>“some amount of server-side logic [that] is still written by the application developer but, unlike traditional architectures, is run in stateless compute containers that are event-triggered, ephemeral, and fully managed by a 3rd party”</em> (<a href="https://martinfowler.com/articles/serverless.html#WhatIsServerless">Serverless Architectures</a>).</p><p>So let’s break that down and go over a simple scenario of using a FaaS, in this case Google’s Firebase Cloud Functions, which we have been using at <a href="https://www.leverege.com/">Leverege</a>.</p><h3>An Example — IoT Detection of Flooding</h3><p>Let’s say that Nicole is a homeowner whose basement is often flooded, so she wants to install a sensor that will notify her when the water level is too high. I sell Nicole a water level sensor solution which will text her when the water level is too high.</p><p>However, I don’t want to run a server all year round to listen for a sensor alert — rain is unpredictable and seasonal. Instead, I decide to use Google’s FaaS, Firebase Cloud Function, which will run only when needed to reduce costs.</p><p>So how does it work?</p><p>If the water level sensor detects the water is too high, then it can send an “event” to Cloud Functions. So then Cloud Functions receives the event, and starts up my serverless text message function. Notice that the text message function was not already running and was “event-triggered.” Also, Google started up my function and is executing it on their servers, so I don’t have to manage it. While FaaS is called “serverless,” it’s serverless for the consumer, not the FaaS vendor who still has to run servers.</p><p>Next, my text message function processes the event and sends Nicole the appropriate text message. After the function execution is completed (the text message was sent), my text message function is terminated.</p><p>All of this takes at most a tenth of second from the time the event was sent from the water level sensor. This process happens every time the water level sensor sends an event, so the text message function is “ephemeral”, or only lasting for a short period of time.</p><p>A FaaS application can be thought of as a math function (see below). The input is an event, the output is the result of the function. Like a math function, a FaaS application is essentially “stateless”, it has no knowledge of anything except its inputs and is unable to hold an internal state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*CFPhfuisi2u4aKi6Z4AooA.png" /><figcaption><em>Source (</em><a href="https://upload.wikimedia.org/wikipedia/commons/thumb/3/3b/Function_machine2.svg/750px-Function_machine2.svg.png"><em>Wikipedia</em></a><em>)</em></figcaption></figure><p>Below is a quick bulleted list of pros and cons of FaaS from Mike Roberts’ <a href="https://martinfowler.com/articles/serverless.html#Faas-ScalingCosts">article</a>. The pros and cons can give you a good idea of what type of applications are best used for FaaS. Afterwards, we’ll go over more things that are more specific to Google’s Firebase Cloud Functions.</p><h3>Pros</h3><ul><li><strong>Operational costs — </strong>You do not need to own or run your own server, you can let the vendor do that for you. There is no need to hire a DevOps person as the vendor also handles scaling!</li><li><strong>Development</strong> — FaaS applications can be written in many popular languages and a product engineer with little operational and deployment experience could easily write and deploy FaaS applications.</li><li><strong>Scaling</strong> — You only pay for what you need when you need it. This really helps for occasional traffic and/or inconsistent traffic. If you have a lot of traffic all of a sudden, your vendor can “spin up” more instances of your FaaS application. Like the flooding example, if there is occasional traffic, then there is no reason to have a dedicated server. This is a huge win in terms of costs for your business.</li><li><strong>Experimentation</strong> — Playing off the development benefit, it’s easy for a developer to write a quick FaaS application and deploy it, allowing for many quick tests on specific computations rather than having to deploy a whole system. It also allows developers to quickly change an application on the fly if there’s a bug.</li></ul><h3>Cons</h3><ul><li><strong>Vendor control — </strong>While there are so many pros to allowing a vendor to run your functions, there are cons as well. If the vendor has an issue, your applications will also have an issue. Issue such as long downtimes, API changes, limits on requests, etc.</li><li><strong>Latency</strong> — There are two issues here 1) FaaS applications are not immediately available because they have to be “spun up” by your vendor, and 2) FaaS vendors run multiple instances of various customers applications on the same machine, so there is a possibility of latency due to sharing resources.</li><li><strong>Security</strong> — Because your application isn’t on one server anymore, there are security holes when using FaaS functions. Each individual function needs to be secure rather than one server.</li><li><strong>Stateless</strong> — FaaS functions last for such a short amount of time, they cannot feasibly store state. So in order to get the state of a user or device, a FaaS needs to query a database or server.</li></ul><h3>Firebase Cloud Functions</h3><p><a href="https://firebase.google.com/docs/functions/">Firebase Cloud Functions</a> are Google’s implementation of FaaS. Cloud Functions have numerous benefits specific to being a part of the Google Cloud Platform. From our experience, the three big benefits of Cloud Functions specifically are the following:</p><h3>1. Ease of Development and Deployment</h3><p>Firebase Cloud Functions are written in Javascript and Typescript. Javascript is easily the most popular language on the web these days. On GitHub, the amount of Javascript pull requests is the largest at 2.3 million, the next highest is Python at 1 million.</p><p>Typescript is “used in almost four times as many pull requests as last year” (<a href="https://octoverse.github.com/">GitHub</a>). Furthermore, deploying Cloud Functions is very easy, it only takes two terminals commands, <em>firebase use &lt;project name&gt; </em>and <em>firebase deploy –only functions</em>.</p><h3>2. Integration with Firebase and Firestore</h3><p>Firebase is a very popular database product that works perfectly with the simple stateless Cloud Functions. It’s fast to deploy and is quick for real-time data which is essential for many IoT applications.</p><p>Firestore is Google’s new document database implementation which is currently in beta. Firestore allows for easy querying than Firebase and scales better. If you want to read about the differences between these two database implementations, check out <a href="https://www.iotforall.com/cloud-firestore-vs-firebase/"><em>Cloud FireStore, Firebase’s More Scalable Older Brother</em></a><em>.</em></p><h3>3. Overall Integration with GCP</h3><p>One of the really cool things I saw was <a href="https://firebase.google.com/docs/functions/analytics-events">Google Analytics for Firebase Triggers</a>. If a conversion event is logged in Google Analytics, a Cloud Function can be triggered. For example, if a customer buys something in-app, which generates a conversion event, then a Cloud Function could send them an email thanking them.</p><p>This Cloud Function could be easily and quickly changed based off of promotions or campaigns your company is running. That type of ease and flexibility is really powerful. Cloud Functions and Google Cloud Platform products are only going to get more integrated with each other, which is really exciting.</p><p>FaaS is not for all applications, but it is definitely useful and here to stay. Whenever you are thinking of deploying a whole server, think of whether you could create a FaaS application instead. Personally, Firebase Cloud Functions have worked well for my team and me, so give that try if you’re looking to use FaaS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/150/0*-COJAy91QE-gyZkU.png" /></figure><h3>Want all the latest advances and tech news sent directly to your inbox?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F5e6c65%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2F5e6c65%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/39ce2a0119753a28e90145cbca6d2ed5/href">https://medium.com/media/39ce2a0119753a28e90145cbca6d2ed5/href</a></iframe><figure><a href="http://eepurl.com/cPPD79"><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*F49VxnybKhjmi-bFQGj4kg.png" /></a></figure><figure><a href="https://iot-for-all.com/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvZqvtDLMZxtmq7cRtj4pA.png" /></a></figure><figure><a href="https://iot-for-all.com/rss-feeds/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugIM8aESdtjz13As4I2JkQ.png" /></a></figure><p>🗓<em> This article was originally posted on </em><a href="https://www.iotforall.com/faas-with-firebase-cloud-functions/"><em>iotforall.com</em></a><em> on February 1, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ffa24de4eb0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iotforall/forget-about-your-server-woes-4ffa24de4eb0">Forget About Your Server Woes</a> was originally published in <a href="https://medium.com/iotforall">IoT For All</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT Needs Qualitative User Research]]></title>
            <link>https://medium.com/iotforall/iot-needs-qualitative-user-research-37426f3afbb7?source=rss-cf1ad75660b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/37426f3afbb7</guid>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[humanity]]></category>
            <dc:creator><![CDATA[Sameer Srivastava]]></dc:creator>
            <pubDate>Sat, 23 Sep 2017 17:01:00 GMT</pubDate>
            <atom:updated>2017-09-23T17:01:00.536Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Qualitative research can be as easy as talking to someone, and it’s definitely worth it.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BpT6o9lg31GcwaAulgL7mA.jpeg" /></figure><p>There is little debate whether or not IoT is a hot and emerging field. According to General Electric, IoT will add $10 to $15 trillion to worldwide GDP growth by 2030 — the equivalent of China’s entire current economy. However, due to the rapid emergence of IoT, we have to be cognizant to ensure that we avoid failed IoT applications.</p><p>While there are various causes of failures in IoT applications, the specific cause I want to discuss is not conducting qualitative user research. Not conducting qualitative user research typically results in over-engineering a product, being solutions-focused, and generally making something that nobody wants.</p><p>For example, Griffin unveiled a $100 toaster this year, the Connected Toaster, that sends you a notification when your toast is done.</p><p>There are many things wrong with this.</p><p>The Connected Toaster seems like a classic example of slapping IoT on an application without considering user needs. The product can save your “optimal” toasting settings and notify you when your toast is done.</p><p>However, on most toasters, the dial already saves past settings and a sound notifies you of completion. People do not have the problems that this toaster wants to solve and it is apparent that Griffin did not conduct adequate user research while designing their toaster. Griffin could have simply talked to people and learned that most people do not need a “smart” toaster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/0*RJRny2VUn9bRUGK9.jpg" /></figure><h3>Why Should We Do Qualitative User Research?</h3><p>I ask myself this question a lot. It is easy to see that qualitative user research is important from the example above, but it can be expensive to implement. I’ve heard all sorts of things about conducting user research:</p><ul><li>“People don’t know what they want — why should we even talk to them?”</li><li>“Individual user interviews are not useful. Hard numbers and lots of data are always better.”</li><li>“User research is a waste of time and takes way too long.”</li></ul><p>These concerns are valid, however I propose three reasons for conducting user research:</p><h3>1. Problem-focused rather than solutions-focused</h3><p><a href="https://www.iotforall.com/idiot-products/">It’s easy to slap IoT on any application.</a> Seriously, just add Bluetooth and make an app. However, there is an important difference between IoT additions and legitimate IoT solutions to user problems. People may not know what the solution is, but they have firsthand experience with their problems.</p><h3>2. Quantitative research is not good enough</h3><p>According to Wired’s <a href="https://www.wired.com/2014/05/7-killer-research-insights-from-facebooks-former-design-research-guru/"><em>7 Things Your Company Gets Wrong About User Research</em></a><em>, </em>“Quantitative methods let us test our assumptions, and qualitative research lets us find out what we don’t know.” While numbers are great, they really don’t tell the whole story.</p><h3>3. Long-term savings</h3><p>While qualitative user research takes some upfront cost, there are many benefits in the long term because features are streamlined to only the ones users want. This results in less overall development time, higher quality features, and better alignment with user needs.</p><h3>How to Conduct Qualitative User Research</h3><p>There are numerous ways to conduct qualitative user research, ranging from a simple chat to a PhD level ethnographic study. I’ll focus on a practical qualitative research method process based on design thinking methodologies.</p><p>Before I jump into the process, I want to stress the importance of ethics. Make sure to tell users you are using their input to develop a product and ask if they can interviewed (and recorded if you decide to do this).</p><p>The first step is simple — just talk to people.</p><h3>Talking to Users</h3><p>The key here is to have an open-ended interview. Do not enter an interview with any biases or leading questions. It’s not your place to tell your users what their problems are with leading questions.</p><p>It is important to both prepare questions as well as leave time for open-ended discussion. For a thirty minute interview, I like to have roughly fifteen to twenty minutes of prepared questions and leave the rest of the time to really listen to what the person has to say.</p><p>I would try to really get to know the personal stories of your users. Get to know their background, what do they like to do in their free time, what their routine is, etc. Remember that in the end you are designing solutions for people, not numbers, so treat them like people. My deliverable for this section is four to five major insights about my users. Afterwards, I create a journey map.</p><h3>Making a Journey Map</h3><p>A journey map is one of the most powerful qualitative user research tools, and the one I find myself using most frequently. A journey map shows the status quo of a user<strong>’</strong>s process. This artifact can be as simple as a bubbles and arrows, and can be constructed from user interviews and user observations.</p><p>Most importantly the journey map shows pain points in the user journey. These pain points represent opportunities where you can design solutions. From my user insights and journey map, I write down some problem statements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X3s0JxM7gxdqkDXxY2iI-Q.jpeg" /></figure><h3>Defining a problem statement</h3><p>After you have identified user pain points, it is important to write at least one problem statements to focus your solution on. An example of a problem statement is “How can we keep track of our health and exercise accurately?”. If the solution to the problem statements are IoT applications then go ahead with IoT. If it is not IoT, then you should go ahead and solve the problem with the most appropriate technology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/0*06wuUxpJRzD8LFKy.png" /></figure><p>Not all problems require IoT solutions. However, by conducting your user research, you can create meaningful IoT solutions. Remember, qualitative research can be as easy as talking to someone, and it’s definitely worth it.</p><p>There is a lot to learn in terms of qualitative research, so I have listed some useful articles and guides below in no particular order:</p><p><em>Originally published at </em><a href="https://www.iotforall.com/iot-needs-qualitative-user-research/"><em>www.iotforall.com</em></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/145/1*670v_MxiW00ZDQ6yoT8QQw.jpeg" /></figure><h3>Want all the latest advances and tech news sent directly to your inbox?</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F5e6c65%3Fas_embed%3Dtrue&amp;url=https%3A%2F%2Fupscri.be%2F5e6c65%2F&amp;image=https%3A%2F%2Fupscri.be%2Fmedia%2Fform.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/39ce2a0119753a28e90145cbca6d2ed5/href">https://medium.com/media/39ce2a0119753a28e90145cbca6d2ed5/href</a></iframe><figure><a href="http://eepurl.com/cPPD79"><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*F49VxnybKhjmi-bFQGj4kg.png" /></a></figure><figure><a href="https://iot-for-all.com/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LvZqvtDLMZxtmq7cRtj4pA.png" /></a></figure><figure><a href="https://iot-for-all.com/rss-feeds/"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ugIM8aESdtjz13As4I2JkQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37426f3afbb7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iotforall/iot-needs-qualitative-user-research-37426f3afbb7">IoT Needs Qualitative User Research</a> was originally published in <a href="https://medium.com/iotforall">IoT For All</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>