<?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 Aravind Vijayan on Medium]]></title>
        <description><![CDATA[Stories by Aravind Vijayan on Medium]]></description>
        <link>https://medium.com/@vsaravind007?source=rss-5a5405dfd702------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0yZ8k_UcMyN0UgKt.</url>
            <title>Stories by Aravind Vijayan on Medium</title>
            <link>https://medium.com/@vsaravind007?source=rss-5a5405dfd702------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:22:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vsaravind007/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[Implementing Long Running Serverless Functions with AWS Lambda]]></title>
            <link>https://medium.com/@vsaravind007/implementing-long-running-serverless-functions-with-aws-lambda-fe06d97120b2?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe06d97120b2</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 16:56:16 GMT</pubDate>
            <atom:updated>2020-10-09T09:27:40.011Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lSl5YQsVRxBFySNbm4lfA.jpeg" /></figure><blockquote><strong>Note To The Reader</strong></blockquote><blockquote>This is not the only solution to this problem, nor I’m advocating to use services out of their scope/use-case. The same could be achieved with event queues and also with an additional lambda function that keeps track of processing that is frequently invoked via Cloudwatch events or simply use ECS or a good old EC2 VM — This specific approach was chosen only because it was a <strong>requirement</strong> for a project that I’ve worked on. As always, do research your use-case throughly and draw estimates on your execution time &amp; memory requirements, use those to find out how much it’ll cost you to run them on AWS Lambda: <a href="https://aws.amazon.com/lambda/pricing/">https://aws.amazon.com/lambda/pricing/</a>.</blockquote><p>Often while designing web based systems with lots of data in hand, you’ll end up having long running compute modules in the architecture, such processes have been there since the beginning of systems engineering &amp; just because you’re on a Serverless stack, it doesn’t mean that you can get away without them. They’re extremely useful tools with a wide variety of use cases. You might want to check for failed or pending payments on your SaaS app and initiate a reconciliation flow or you might want to backfill your data warehouse from access logs or text files periodically or you might want to move a set of files to a different location or not so commonly, you might want to invoke an external service periodically(or based on an event) and do a series of operations based on the service response.</p><figure><img alt="A traditional basic web application with an app server and a background processor application." src="https://cdn-images-1.medium.com/max/936/1*y3DLbxrODMjtbAVh2jSioQ.png" /><figcaption>A traditional basic web service</figcaption></figure><p>These kind of processes are triggered mainly through external events like a user action or periodically through a CRON job. Traditionally, these kind of processes reside in persistent server environments as application processes. Since they’re in a state persistent environment itself, managing the state of such a process will be easy, you just have to be prepared for cases like the application crash, corrupt data, double or triple execution — <em>idempotency</em> of your operation basically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*s3-pKRnG3sd06CoLJRsPbA.png" /></figure><p>While designing such systems in the context of Serverless architectures, it’s a different ball game all together, not only you’ll have to handle all of the perviously discussed cases, you’ll also have to take into account that the environment is <strong><em>transient</em></strong> &amp; often you can’t keep them running forever or till all of your data is processed, <strong>there are hard limits on execution time while you’re on Serverless functions</strong>. This means that the piece of software you’re going to write will have to keep track of its state + the state of environment it is running on for it to be reliable and resilient.</p><p>For AWS Lambda, at the time of writing this article, 15 minutes is the maximum time a Lambda function can run, you can check the limits on Lambda here: <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html">https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html</a></p><p>There are multiple ways you can design such a long running background processor with Serverless components, if you are on AWS, you could make use of Cloudformation and EC2 APIs to fire up EC2 instances on an ad-hoc basis or you can use AWS Fargate to spin up containers that’ll run till your processing is done. Downside of these approaches is that, you’re introducing additional modules into the system, even though they are created &amp; destroyed on a need basis &amp; virtually behaves like a Serverless component, adding more functional modules will always have its own set of challenges.</p><p><strong>AWS Lambda Only Solution</strong></p><p>With a bit of logic, such a system can be built purely using AWS Lambda, this function will keep on running till your data has been fully processed or till an end condition is reached. To design such a system, let’s have a look into the context object. AWS Lambda provides a context object in the lambda handler, for a Nodejs lambda function, fields and methods available on the context object can be found here: <a href="https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html">https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html</a></p><p>If you look closely, there is a method getRemainingTimeInMillis(), which according to AWS:</p><blockquote>Returns the number of milliseconds left before the execution times out.</blockquote><p>From within a lambda function, calling context.getRemainingTimeInMillis() at any point will return the time remaining until AWS kills this lambda function. Using this pretty neat function, we can build a lambda long running process handler that will check for its remaining time and if its less than our safe value, we can async invoke the same lambda and return from the current one with a callback(null). Control flow for the same looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NDHbip4FxOfPxvfqQVqGIA.png" /></figure><p>On AWS lambda, we can set the timeout of this function as 15 minutes and our safe value as 1 minute, we’ll also have to integrate this logic alongside our application logic so that we’re constantly checking if this lambda is reaching its end of life. Fundamentally, we’re making use of recursion and like all recursive functions, termination condition plays an important role here. If there is an issue with your termination condition or it does’t terminate correctly, you’ll end up with a lambda that won’t stop running, it’ll keep on invoking itself over and over till you remove it.</p><p>Below is a very minimal example of such a lambda function, note that there is <em>no termination condition exist in this example</em>, <strong>DO NOT use it</strong> without adding a proper termination condition, otherwise you’ll end up having a rogue lambda that is unstoppable &amp; you’ll rack up lambda costs!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f78475cd41fdca926f4c28ae805ba10a/href">https://medium.com/media/f78475cd41fdca926f4c28ae805ba10a/href</a></iframe><p>In this example, we use Nanotimer for our watchdog function, a better alternative to setInterval(), Nanotimer is accurate &amp; reliable enough for our use case. You can check it out here: <a href="https://www.npmjs.com/package/nanotimer">https://www.npmjs.com/package/nanotimer</a>.</p><p>If you look at the code, we have a SAFE_EXECUTION_MILLIS_THRESHOLD of 12000 milliseconds(12 seconds) and a watchdog function that is executed every 10 seconds. Inside the watchdog function, we’re checking if we’ve reached the safe threshold &amp; if yes, we’re triggering the same lambda again. context.invokedFunctionArn will return the ARN of current lambda.</p><p>Do keep in mind that you’ll have to keep all timings in check, if you have a watchdog function that is executed every 5 seconds and you have a safe threshold of 2 seconds, it is never going to work correctly, your watchdog function must execute at smaller interval than your safe threshold. Also, if you have a function whose timeout is 60 seconds and your watchdog function isn’t set to execute frequent enough, you’ll end up with lambda timeouts. You might also need to store state in a persistent store such as a DB or an S3 file, consider those as well while writing such a function.</p><p><strong>Conclusion</strong></p><p>Hope you’ve learned a thing or two from this approach, in a future article, we’ll discuss on implementing a Serverless batch processor using AWS Lambda &amp; AWS Fargate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe06d97120b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sub-Minute Lambda Invocations Using Cloudwatch Events]]></title>
            <link>https://medium.com/@vsaravind007/sub-minute-lambda-invocations-using-cloudwatch-events-10a63f4f5426?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/10a63f4f5426</guid>
            <category><![CDATA[cloudwatch]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Fri, 03 Apr 2020 14:00:32 GMT</pubDate>
            <atom:updated>2020-10-09T09:24:33.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogynfWirC3JPrE7YFaODlw.jpeg" /></figure><blockquote><strong><em>Note To the Reader</em></strong></blockquote><blockquote>Before jumping into the actual content, I want you, the reader to understand that there are a lot of ways to do this. When you’re making a decision, make sure to do your homework and study your requirements throughly. The approach I’m discussing here was chosen only because it was a <strong>requirement<em>. </em></strong>There are far superior ways to do this!</blockquote><p>If you’re used to building Serverless scheduled jobs(CRON jobs) using AWS Cloudwatch &amp; Lambda, you’ll be familiar with the fact that the maximum frequency at which you can invoke your lambda is 1 minute. This means, if you need sub minute invocations, you’re out of luck out of the box. This is a requirement sometimes, like when you need to keep your DB updated with a fast changing sports score board or a commentary system that is updated multiple times per minute.</p><p>For those who are not familiar with this setup, a typical AWS Cloudwatch Event + Lambda CRON with logging enabled will have the following structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*tIRqp6OFN-qq-8KCYDnhXQ.png" /><figcaption><em>Drawn using cloudcraft.io</em></figcaption></figure><p>Cloudwatch will trigger events periodically at the set interval without you needing to run any application code for triggering. Its pretty cheap too, costing around $1 per million events. If you convert that into minute frequency, you can easily invoke a lambda or whatever continuously over a month for under $1, because if you keep triggering something every minute for a 31 day month, the number of invocations will be 24*60*31=44,640 events, which is way under 1 million. Below is an example using <a href="https://serverless.com/">Serverless Framework</a> for the service we just discussed:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f65971eb6e3908178f5e8f1925f4650/href">https://medium.com/media/9f65971eb6e3908178f5e8f1925f4650/href</a></iframe><p>These CRON functions are very useful in building serverless application stacks, some of the use cases I can think of now are:</p><ul><li>Building tiny housekeeping services like log file removal</li><li>Starting an external service sync like fetching a CSV file</li><li>Triggering a build pipeline every ‘x’ hours etc</li></ul><p>Cloudwatch Event + Lambda CRONs are very reliable too, <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html">AWS says that there could be a deviation in seconds from the point of triggering and execution by lambda</a>, at <a href="https://diagnal.com/">Diagnal</a>, we use hundreds of Cloudwatch Event + Lambda CRON jobs across many projects, we are yet to see problems with Cloudwatch’s event triggering.</p><p><strong>What if you want to trigger a lambda every, say 10 seconds ?</strong></p><p>AWS doesn’t give you this feature out of the box at the time of writing this article, maybe they’ll in future. Application requiring sub-minute lambda invocations are not that hard to find, especially in serverless application stacks. <a href="https://aws.amazon.com/blogs/architecture/a-serverless-solution-for-invoking-aws-lambda-at-a-sub-minute-frequency/">AWS does provide you with a solution to do this with AWS Step Functions, which I found hard to setup &amp; use.</a></p><p>We can build such a service with Cloudwatch Events and a Lambda function that will trigger other Lambdas or services every ‘x’ seconds, logic flow a crude version with 10 second interval looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nett4tE1eQJjvSIi1M3IeA.png" /><figcaption>Drawn using code2flow.com</figcaption></figure><p>For the example I’ve used Nodejs along with the library <a href="https://www.npmjs.com/package/nanotimer">nanotimer</a>, For this use-case, we cannot use the built in setInterval() as it will not give us the accuracy we’re looking for, hence the nanotimer library. It provides a very accurate timer function, suitable for our needs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83985760b16a7ccec6bfc8f9a794f664/href">https://medium.com/media/83985760b16a7ccec6bfc8f9a794f664/href</a></iframe><p>If you look at the code above, its pretty much what we have on the flow diagram just above, to get this working, you’ll have to assign correct IAM roles for the source Lambda function as we’re using the SDK function Lambda.invoke(), notice that I’ve used the InvocationType as “Event” for async invocation. You can invoke one function or multiple ones as you wish, I’m just triggering one for brevity.</p><p>Below is the serverless definition file for our example source lambda and destination lambda:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7aabc97ebb90f33b724291d2bbe2444b/href">https://medium.com/media/7aabc97ebb90f33b724291d2bbe2444b/href</a></iframe><p>If you look at the timeout config for the source function, it is set to61 seconds, after 61 seconds, the lambda will be terminated by AWS. After deployment, our triggering function will invoke the destination lambda every 10 seconds, 6 times per source lambda invocation ideally. Since we have the timeout config set at 61 seconds, after 61 seconds, our source lambda will be terminated &amp; at the same time, Cloudwatch will trigger a new source lambda. This will continue till you delete the service or disable the event from Cloudwatch console.</p><p>For realistic applications I won’t be triggering them every 1 second, the frequency has to be much lower, anything &gt;10 seconds should work just fine without issues, you’ll have to adjust other variables in play accordingly.</p><p><strong>Things to keep in mind</strong></p><ol><li>Never, I mean <strong><em>NEVER </em></strong>go with this approach if you have the flexibility to try other options.</li><li>Do not use this approach for extremely time critical applications, this is great for applications where 2 or 3second deviations are fine as per design.</li><li>If you invoke many functions at sub minute frequency, get ready for spikes in lambda usage costs.</li><li>Make sure that your destination lambda processing will be over before the next invocation, for example if my invocation interval is 10 seconds and my destination lambda takes 12 seconds to complete its job, it won’t be sensible for us to keep triggering it every 10 seconds, it’ll end up in multiple f*ckups with race conditions and others.</li><li>Keep in mind that you are invoking a lambda function every minute, you’ll need to count in the cost for running this lambda, it’ll cost around $4.49 per month for this lambda alone. Use can use the pricing calculator here: <a href="https://aws.amazon.com/lambda/pricing/">https://aws.amazon.com/lambda/pricing/</a></li><li>Disable Cloudwatch logs for the source Lambda before rolling into production, it doesn’t make much sense to simply log invocations unless its necessary, you’ll save a few bucks there.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10a63f4f5426" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[No-Bullshit Guide To Microservices]]></title>
            <link>https://medium.com/@vsaravind007/no-bullshit-guide-to-microservices-6f8d29bf8691?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f8d29bf8691</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[programming-paradigms]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Sun, 03 Dec 2017 06:23:11 GMT</pubDate>
            <atom:updated>2017-12-04T03:50:46.011Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BixDY_An18B85RIXliwoqQ.jpeg" /></figure><p>Traditionally, web applications are monolithic in nature, meaning they are built as a single application separated internally through some kind of Model-View-Controller pattern. This is <em>okayish </em>for small applications. But as the application grows, or the application is complex, it becomes hard to maintain because:</p><ol><li>Only one central codebase — multiple teams working on entirely different things share the same codebase — ‘he broke it’ like scenarios can arise.</li><li>Small changes could require the entire application to be redeployed — increased application down time during maintenance operations.</li><li>Issues related to maintaining a single large codebase — multiple branches, access restrictions, separation of concerns and a whole lot of others.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*0jEhj0TZJRQSJMg3MkWg_A.png" /></figure><p>In simple terms, Microservices are nothing but tiny(or ‘effing huge) <em>self contained</em> applications that are designed to perform a single(ideally) function in a large application. Microservices are not to be confused with <a href="https://en.wikipedia.org/wiki/Service-oriented_architecture">Service Oriented Architecture(SOA)</a> Pattern even though they seem to mean the same thing. Netflix is one of the largest known adopter of Microservices architecture, their entire offering is built around thousands of microservices running and operating in harmony. Microservices offer many benefits over multi tier monolithic applications. Significant ones are the following:</p><ol><li>Each micro service is a self contained application — Developer team responsible for a service is at liberty to choose the programming language(<a href="https://en.wikipedia.org/wiki/Polyglot_(computing)">Ployglot Programming</a>), database to use and the OS environment to deploy. Just the service interfaces have to be agreed.</li><li>Less down time during deployments — just deploy the updated services rather than redeploying an entire application</li><li>Separate codebase means no crashes due to “they changed this without our knowledge”</li><li>Choosing best tools for the job ensures better performing apps</li><li>Good fit for multi skilled organisations</li></ol><p>Even though they’re adopted extensively, maintaining them can be hard because they are designed to be <a href="http://whatis.techtarget.com/definition/stateless-app"><em>stateless</em></a>(Ideally, microservices doesn’t have State) and it is <em>extremely hard to trace calls</em> between services if the design is not thought through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*g_Vw9VDWAahLTaGW13vG8A.png" /></figure><p>Since each service is isolated, they could be on different machines or even on different clouds. But they all need to communicate in harmony for the application to work — services call other services to get things done, remember? How services know about each other ? Hard coding addresses is one temporary solution, but will be pointless once the application starts to scale and different addresses are assigned (microservice may scale independently depending on the load). This is solved by using something called <a href="https://en.wikipedia.org/wiki/Service_discovery">Service Discovery</a>. It is nothing but a microservice (yes, another microservice!) that keeps the info about all other microservices in the application. A Service discovery is responsible for keeping track of the IP addresses and other interface information required to invoke microservices in an application(Service Registry). When individual microservices scale, they may notify the service discovery microservice about the details(Self-Registration). Also, a load balancer may query the Service Discovery microservice to know about the microservices for distributing loads dynamically across scaled versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*vu9rgfxpytR9e3aEZkyavA.png" /></figure><p>In above illustration, both the mobile &amp; web apps are calling different APIs which are microservices. They in-turn call another microservice <em>auth</em> to authenticate requests. Front end apps can call some microservices directly like in this case, but most of the time microservices call other microservices to get things done. Usually, an API gateway will be in between microservices and front end apps. In the above example, auth service maybe written in GoLang while the others in Nodejs, auth server may use redis to cache DB calls while other do not use any caching. Services are independent of each other and communicate over REST API or <a href="https://en.wikipedia.org/wiki/Apache_Thrift">Apache Thrift</a>. Each individual service may scale according to load, for example a new sales campaign for mobile users can load up the mobile API server with requests while the web API service is sitting idle. The mobile API server may scale up, notify the service discovery and continue serving requests.</p><p>Microservice architecture require a well thought through design process to reap the benefits of it. Converting a perfectly fine monolith to Microservice based application without actually making the effort to evaluate can negatively affect the application.</p><p><em>In a coming article, we’ll discuss how and where to use Microservices along with event driven programming to build an analytics platform.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f8d29bf8691" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Update] Lot of updates!]]></title>
            <link>https://medium.com/iostash/its-been-a-while-since-weve-posted-an-update-about-the-platform-8b105c4e46f1?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b105c4e46f1</guid>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Tue, 03 Oct 2017 18:09:14 GMT</pubDate>
            <atom:updated>2017-10-03T18:18:35.211Z</atom:updated>
            <content:encoded><![CDATA[<p>Its been a while since we’ve posted an update about the platform. We’ve been working hard on the platform — a lot of under the skin improvements were made. Mainly we’ve focused on performance &amp; latency related issues. We were able to optimize a lot of routines that were hogging our resources. We can now say that we’re pretty much on track for optimisation.</p><p>One major breaking change that we’ve done is, we’ve moved the app dashboard from https://api.iostash.io to https://app.iostash.io This is a rather big change, many of you guys reported that the app is down — actually we’ve moved the app dashboard! Thats what happened. Only the app dashboard was moved, our MQTT broker address is still http://api.iostash.io</p><p>Thats it for now, More updates on your way soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b105c4e46f1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iostash/its-been-a-while-since-weve-posted-an-update-about-the-platform-8b105c4e46f1">[Update] Lot of updates!</a> was originally published in <a href="https://medium.com/iostash">IOStash</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Update] Custom Timezones Now Live]]></title>
            <link>https://medium.com/iostash/update-custom-timezones-now-live-b9abdd626f63?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9abdd626f63</guid>
            <category><![CDATA[iostash]]></category>
            <category><![CDATA[product-updates]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Mon, 06 Mar 2017 16:31:54 GMT</pubDate>
            <atom:updated>2017-03-06T16:31:54.659Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6ic8-njpQL3lqtmsVysLQ.png" /></figure><p>We’ve pushed a major update to our servers at 09:50 PM, 06 March 2017 that will let our users change time zone to their liking. Users will now be able to select a reporting time zone that can be set from their profile page (Dashboard &gt; Account &gt; Profile). Time zone set there will be used for triggers, visualisations and streaming.</p><p>Major updates coming soon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9abdd626f63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iostash/update-custom-timezones-now-live-b9abdd626f63">[Update] Custom Timezones Now Live</a> was originally published in <a href="https://medium.com/iostash">IOStash</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Update] Performance Updates]]></title>
            <link>https://medium.com/iostash/performance-updates-3d007713dc9b?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d007713dc9b</guid>
            <category><![CDATA[mqtt]]></category>
            <category><![CDATA[iot]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Mon, 13 Feb 2017 08:22:09 GMT</pubDate>
            <atom:updated>2017-03-06T16:33:35.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*_FH23OnLthOoA75-BP00zw.jpeg" /></figure><p>Since the launch of IOStash beta, we’ve been on an endless journey to squeeze out last remaining bits of performance from the platform. We’ve been optimising the entire application core to accommodate the data surge and overall platform efficiency. Today (13/02/2017 at 12:06AM IST), we pushed a major update to the MQTT core of IOStash. This update changed the way client authentication was done on the MQTT interface on connection establishment and while data publishing. A better caching algorithm along with some smart checks made it a bit more efficient in terms of CPU and memory usage while improving the network throughput.</p><p>Results? About 12% improvement in overall interface performance. Users should now be experiencing a slight improvement in connection establishment once disconnected from the interface. Also, publishing data on the interface should be faster than before. We’re working on implementing a similar pattern on the rest of the interfaces so that we can have faster performance while reducing the reads/writes on the server.</p><p>More performance related updates coming soon!</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d007713dc9b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iostash/performance-updates-3d007713dc9b">[Update] Performance Updates</a> was originally published in <a href="https://medium.com/iostash">IOStash</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our beta journey so far]]></title>
            <link>https://medium.com/iostash/our-beta-journey-so-far-9e0d467eb84?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e0d467eb84</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[startup-story]]></category>
            <category><![CDATA[beta]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[true-story]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Thu, 26 Jan 2017 08:31:03 GMT</pubDate>
            <atom:updated>2017-01-27T06:36:54.712Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q2-LreWHeTa-DRjowwa8AA.png" /></figure><p>On 23rd June 2016, we released the private beta of our IoT Platform, <a href="https://iostash.io/">IOStash</a>. Around 1000 people signed up(Dropped their email for getting in to be exact!) for our closed private beta program. What is our USP? Multiple connectivity interfaces, easy to use rules/trigger engine and free for personal use and for non profit DIY developers - forever.</p><p>We found our initial batch of testers through Facebook, mainly through the IoT interest group IoTBlr, twitter, peer groups having similar interests, Betabound and through Producthunt. We sent invitation to everyone who dropped their email and finally after a week, on 30th of June, we had around 350 registered beta testers on the platform. This was kind of a huge achievement for us, being just a two member team working on something that is rather huge in our spare time. We never spent any amount on marketing our product only because we didn’t have the capital.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*HMv4fsNsOLTrXJkIcMz8LQ.png" /></figure><p>So, only 354 registrations from 1006 emails? Out of that 354 registrations, only 198 people were ‘Active’ meaning, these 198 people had at least one device created in IOStash. Rest had no devices configured and they just created &amp; activated an account on the platform. We were surprised with the ratio of conversions, but we were aware of the fact that our product is not something every tom, dick and harry will be using. BUT still, the 1000 emails we received had company names in their domain part mostly, eliminating the possibilities of Joes and onlookers. Surely these guys had some interest while dropping their email and they wouldn’t do it if they were not aware of our product and its use. Somehow they lost interest or our invitation went unseen. For sending invitations, instead of using a campaign manager like MailChimp, we opted for a custom JS script and SendGrid mail API — simply because I was hesitant in learning to use a campaign manager. Which was a HUGE mistake! We couldn’t keep track of the emails we sent out, number of clicks, number of bounces and all of that shiney data was lost. By the time we came to know about the depth of our loss, it was already too late!</p><p>That wasn’t the only issue we ran into while using a custom script to send out emails. We were sending multiple emails to the same person, more than twice! A simple logical error lead to resending to the whole list when a single send failed. We received numerous mails on our inbox saying they got the invitation more than twice. It was already out of our hands when I hit that enter after I typed <em>nodemon emailScript.js </em>on the terminal. Even though I know there are statistically less number of lazy fucks like me among full stack developers whose laziness factor rises exponentially high during release time, If you are thinking of doing something like this or anything remotely similar, for the love of god, NO! Don’t even think about it! Take a bit of time and do it the right way, its worth it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*MsHu4AZaWpFOfeB_dpP8IQ.png" /><figcaption>Could’ve done this! But laziness took over!</figcaption></figure><p>One of many lessons learned — ALWAYS use a campaign manager for email campaigns or fucking regret it soon after!</p><p>We were still wondering about the conversion rates. We did absolutely no paid marketing and at this point, we were rethinking that decision. Ms.Sonali of <a href="http://iotleague.com/">IOTLeague.com</a> came to the rescue, she offered to publish an ‘ad’ on the front page of <a href="http://iotleague.com/">IOTLeague.com</a>. IOTLeague was getting a lot of daily hits during that period and is doing superb now! This drove a lot of traffic to the IOStash main page. To our surprise, people were registering up using the beta invitations we sent out. Wait, what?! Remarketing does wonders! We sent out invitation and nobody bothered, suddenly when they saw an ad on some other website, they came back, searched their inbox, registered and came on board!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*fxVaNLeqfCveLeafRoBjxw.png" /><figcaption>324x275 magic!</figcaption></figure><p>By the end of July 2016, we were having around 1500 user registrations and about 900 devices. Out of which, about 350 of them were daily active. On August 17, we opened up the beta to the public. After about one month of talking with Hackerspaces, IoT trainers, college students and professors in person and through social media, we crossed the milestone of about 2030 user registrations with around 1000 devices.</p><p>We were getting a lot of enquiries about the platform, who made it, whats the future, whether its for sale etc etc. Our mission was to get the maximum number of active devices on the platform so that we can proudly say that we built something rather huge. By mid September 2016, our platform had just over 2500 user registrations but still not enough daily active devices. Daily active devices are those devices that push data to IOStash at least once in a day. We wanted to stress test in the real world — We’ve conducted numerous synthetic tests using Python, Nodejs and Loader.io. The results were pretty promising yet real world permutations and combinations are responsible for code breaks and ‘bugs’.</p><p>Today, after almost 6 months since IOStash’s launch, we’ve over 3500 user registrations, 24TB of data including analytics and user data, about 8.5 million requests on our API endpoints, about 100,000 messages through our internal message bus every 3hrs, 2 venture capital companies expressed their interest and 2 take over proposals! What more can we ask for!? We’re not going to sell it off, nor we are going to go against our motto “Free for DIY developers and hobbyists”.</p><p>We have decided to take IOStash to the next level, implementing more features, data protocols and visualisation options. Along with those functional changes, we’ve decided to work on it full time with a dedicated team, moulding IOStash into a full fledged IOT eco system for visionaries and futurists.</p><p>It has been wonderful so far, we never thought late night issues, bugs and crashes would be fun! Huge shout out to everyone who supported us in this, especially Ms.Sonali Dange, Mr.Manu Rahman and our beloved friends Aslam, Hari, Anas and Abdulla!</p><p>Aravind &amp; Kavya</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e0d467eb84" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iostash/our-beta-journey-so-far-9e0d467eb84">Our beta journey so far</a> was originally published in <a href="https://medium.com/iostash">IOStash</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IoT the basics]]></title>
            <link>https://medium.com/iostash/iot-the-basics-3aca5e893e8c?source=rss-5a5405dfd702------2</link>
            <guid isPermaLink="false">https://medium.com/p/3aca5e893e8c</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[internet-of-things]]></category>
            <dc:creator><![CDATA[Aravind Vijayan]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 06:15:57 GMT</pubDate>
            <atom:updated>2016-06-02T06:15:57.334Z</atom:updated>
            <content:encoded><![CDATA[<p>IBM investing billions into it, Oracle is after it, Microsoft has already jumped in and hundreds of <a href="https://angel.co/internet-of-things">startups budding like mushrooms</a> with something in hand with IoT! Internet of things was the buzzword of 2015 and probably it will be for the next few years to come. But what is it exactly?</p><p>What if your keychain can buzz you when you forget it at a bar, what if your flip flops or running shoes can tell you the number of steps you’ve taken? Imagine your door locks getting unlocked when you reach home. The possibilities are only limited by the imagination of the thinker! What is common among these things ? These are common everyday objects, objects that are otherwise ‘dumb’ inanimate things. Internet of things is about connecting up everyday objects virtually to achieve improved user convenience and/or usability.</p><p>Kevin Ashton, who is one of the early pioneers who developed RFID invented the term “Internet of things” in 1999. He used the term for describing the network of devices he used to do research on. IoT isn’t all about machine to machine communication, it spans across devices, protocols and multiple application domains. The “internet” part in IoT isn’t to be confused with the internet we’re familiar with, it’s an internet on its own for the “Things”. But our traditional internet can be used for IoT and today’s IoT is based around this use case, our traditional internet.</p><p>Wearables smart devices are becoming more and more popular among the mainstream audience. Interesting fact is that, the prices are coming down at an exponential rate. As the prices go down, more and more people will be attracted and a whole new world of possibilities will be revealed. Automatic toll collection, intelligent traffic signal control, augmented gaming and all are the tip of the iceberg. IoT is taking over the world at a faster pace while keeping a low profile! Households, accessories, gadgets, huge machineries, ultra modern industries, you name it! IoT is present in the zenith and nadir of everyday life.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*IZ97mYog7NT9DroV.jpg" /></figure><p>Nest thermostat, a popular IoT enabled consumer product</p><p>IoT isn’t about consumer products or services. IoT spans across all application domains, from Healthcare to logistics, the applications are limitless. Connected patient monitoring systems, connected scanning machines, fleet tracking, geo fencing, package tracking, package monitoring etc. are emerging as standards now.Besides the plethora of new application areas for Internet connected automation to expand into, IoT is also expected to generate large amounts of data from diverse locations that is aggregated very quickly, thereby increasing the need to better index, store and process such data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*HtDyX2X3sMEcJvz-.jpg" /></figure><p>NodeMCU, an ESP8266 based IoT development platform</p><p>Everything about IoT is real-time. Applications of real-time data is huge. Preventing hiccups in supply chains is currently one of the examples. IoT makes our world look like a chapter from a sci-fi novel written some decades ago. Washing machines that notify users about detergent running out are already in the market today. Popularization of cloud technologies made it easy to implement IoT based systems anywhere by anyone. Arduino’s, Raspberry Pi’s and BeagleBone’s made it possible for the common man to design and deploy low cost functional IoT systems. Simply connecting up sensors to the internet and using the data from them for performing meaningful actions are common and super simple these days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/0*4LOzl6d_Q4A1sxTi.png" /></figure><p>Like every other too good to be true kind of things, IoT is also not immune to problems. The biggest one being security and privacy. When you wear a smart band or a watch, you are literally allowing companies to spy on you, you are granting permission to push ads and offers based on your location. This location may be shared with multiple sub vendors of the original equipment manufacturer. Imagine any one company’s user database was leaked, before they could even detect it, millions will be in danger. When we grant permission to use our personal data for our own convenience, we are literally putting ourselves in potential danger. As more and more security flaws are being detected daily, IoT and its applications are also under the radar.</p><p>The IoT is as vulnerable as Internet. The Internet is still not secure, so we can’t expect IoT to be secure, either. However, security is constantly evolving to meet new challenges, we’ve seen it before, and we’ll see it again, with IoT and subsequent connected technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8dAbZFZcEF_0a9aM.png" /></figure><p>IoT is here to stay, and will help us transform our lives like a science fiction movie by reaching every nook and cranny of our day to day lives!</p><p><strong><em>Side Note</em></strong>: We’re developing an IoT platform for the makers and enterprises, called <a href="https://iostash.com/">IOStash</a>. Its more like an IoT PaaS that enable you to connect your devices easily to the cloud. The API is super easy and makes the integration butter smooth! IOStash sports realtime data streaming, public dashboards and powerful data analytics. Register at <a href="https://iostash.com/">https://iostash.com</a> for a private beta invite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3aca5e893e8c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iostash/iot-the-basics-3aca5e893e8c">IoT the basics</a> was originally published in <a href="https://medium.com/iostash">IOStash</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>