<?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 Sushant Pophli on Medium]]></title>
        <description><![CDATA[Stories by Sushant Pophli on Medium]]></description>
        <link>https://medium.com/@sushpop?source=rss-f28f4aaa9185------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RN6_U9jjvd15jkl_0XoCpw.png</url>
            <title>Stories by Sushant Pophli on Medium</title>
            <link>https://medium.com/@sushpop?source=rss-f28f4aaa9185------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:35:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sushpop/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[Why NoSQL Database ?]]></title>
            <link>https://medium.com/@sushpop/why-nosql-database-81d51e35a16a?source=rss-f28f4aaa9185------2</link>
            <guid isPermaLink="false">https://medium.com/p/81d51e35a16a</guid>
            <category><![CDATA[nosql]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[relational-databases]]></category>
            <category><![CDATA[appscurry]]></category>
            <dc:creator><![CDATA[Sushant Pophli]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 05:41:05 GMT</pubDate>
            <atom:updated>2018-09-18T05:41:05.298Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why NoSQL Database ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y6WHLxYDccU9YvBV" /><figcaption>Photo by <a href="https://unsplash.com/@hngstrm?utm_source=medium&amp;utm_medium=referral">Henry &amp; Co.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Relational databases have basked in the glory of being general purpose database for several decades now. They were, and to most part still are, de-facto standard for persistence mechanism and rightly so. They’ve served us well for most of our requirements.</p><p>Some of the key benefits of using Relational Database:</p><ul><li><strong>Atomicity</strong>, <strong>Consistency</strong>, <strong>Isolation</strong> and <strong>Durability</strong>. (I am not a big fan of acronyms)</li><li>Database schema(Table, Columns, Rows and Types)</li><li>SQL</li><li>Ability to pull ad-hoc reports for management is hands down the single most “enterprise” loved feature.</li></ul><p><strong>So, with all this, why on earth did we need another type of database?</strong></p><h3><strong>Impedance Mismatch</strong></h3><p>Take a look on the typical view of a order page, order summary, if you will.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iu0RMVdYaBfgstLO7MK_aA.png" /><figcaption>Order Page, a typical view</figcaption></figure><p>There is inherent disconnect between the way we store data in relational DB and present it on screen. The data we display on page is pulled from multiple tables, some of which might even be spread across different databases instances. This phenomenon is called <a href="https://en.wikipedia.org/wiki/Object-relational_impedance_mismatch">impedance mismatch</a>. ORM frameworks, to certain degree, help us bridge the gap. There is a gap nonetheless.</p><h3><strong>Scaling up has its limitation</strong></h3><p>In case of relational databases, if your data increase, you scale-up, get a bigger box with more resources. However, it gets costly pretty fast and beyond certain point its not physically possible to scale up. As an alternative, you could scale out, but then maintaining ACID for your DB would require a lot of work around and it would be a different monster altogether you’d have to fight.</p><h3>Throw Cloud in the Mix</h3><p>Since its inception, cloud had the idea of having a server farms or utilizing commodity hardware instead of(or in addition to) fewer high processing machine. People working at tech giants like google, amazon realized it and started working on a data store which were build, intrinsically, to store data across multiple nodes. Google came up with Big Table and Amazon with Dynamo. Industry, gradually caught the drift and thus NoSQL databases came to life. Not only they came to mere existence, the growth of Cloud help fueled the massive eruption of the usage of NoSQL Databases.</p><h3><strong>NoSQL Promises</strong></h3><ul><li>Support Massive amount of data</li><li>Support distributed environment (elasticity)</li><li>Unlike relational databases, NoSQL databases are based on key-value pairs</li><li>The data need not follow a strict schema</li><li>Most of the NoSQL databases are open-source and can run on inexpensive hardware</li></ul><p>Like everything else in tech, NoSQL is not a silver bullet. It comes with it’s own set of challenges.</p><ul><li>You can choose only 2 features out of Consistency, Availability, Partition Tolerance aka. <a href="https://en.wikipedia.org/wiki/CAP_theorem">CAP Theorem</a></li><li>Creating different views from the already stored data is a challenge and requires custom-code</li></ul><blockquote>While relational databases are designed for consistency, NoSQL databases are designed to support, working with massive data. Pick your Poison wisely !</blockquote><p>There are various types of NoSQL database and each one has a specific use case, however that is a topic for another day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81d51e35a16a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thanks to AWS, I Got My iPhone X]]></title>
            <link>https://medium.com/@sushpop/thanks-to-aws-i-got-my-iphone-x-cd03b3939db?source=rss-f28f4aaa9185------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd03b3939db</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[awsserverless]]></category>
            <category><![CDATA[iphone-x]]></category>
            <category><![CDATA[aws-cloudwatch]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Sushant Pophli]]></dc:creator>
            <pubDate>Fri, 31 Aug 2018 05:15:20 GMT</pubDate>
            <atom:updated>2018-08-31T05:15:20.253Z</atom:updated>
            <content:encoded><![CDATA[<p>Morning of Nov-3–2017, I woke up at 5 AM and walked to nearest apple store, to buy iPhone X (Yes, I am a Fanboy !).</p><p>The queue was not long, around 50 people tops. I thought my chances of getting a phone are solid. I came home without phone that day. Bummer, you say. I was on a business travel and had to get one in next 2 weeks, so shipping was not an option.</p><p>Availability of iPhone X in store was sporadic. I was frequently checking the availability online and couple of times, I even came very close to buying one, only to know it went out-of-stock before I could finish the order.</p><p>So, I did, what any developer would do; I poked around Apple.com and figured out REST API used to fetch the availability of phones. An hour later, trying out different set of input parameters for memory, color and location etc. and I had exact URL of a REST service to fetch availability, just like apple does on their website.</p><p>Now was the easy part.</p><p>All I wanted to do is invoke this REST endpoint at regular interval and get a notification if it returns data. For this, i turned to AWS. <br>I used following components to complete this task<br><strong>1) AWS Lambda<br>2) AWS CloudWatch trigger<br>3) AWS SES</strong></p><p>I created a Serverless Lambda function which would :-</p><p>1) Invoke Apple check availability REST endpoint<br>2) Parse the response<br>3) If records were found, trigger SES event<br>4) If no records identified, exit.</p><p>Then I created CloudWatch trigger for this Lambda, which would execute the Lambda function every 5 minutes.</p><p>I configured AWS SES with from and to email address and validated them.</p><p>Set everything up and waited and waited and waited …</p><p>Finally after 3 days of this setup, one fine early morning, while I was sipping my coffee and gazing through the window, I heard a “ding” on my phone, picked up the phone and there it was!</p><p>Notification, stating <em>iPhone x is now available in store near you</em>. I Immediately placed an order for in-store pickup.</p><p>Being a responsible developer which I am, later logged into AWS console and stopped the trigger.</p><p>Thanks to AWS, I got my iPhone x :-)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd03b3939db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>