<?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 Pradyumna Challa on Medium]]></title>
        <description><![CDATA[Stories by Pradyumna Challa on Medium]]></description>
        <link>https://medium.com/@challapradyumna?source=rss-73f8a08a2aa1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-RVymXNgiU5vK7a5zVAbJg.jpeg</url>
            <title>Stories by Pradyumna Challa on Medium</title>
            <link>https://medium.com/@challapradyumna?source=rss-73f8a08a2aa1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 13:00:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@challapradyumna/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[A Practical Guide to Monitoring and Alerting]]></title>
            <link>https://medium.com/hiver-engineering/a-practical-guide-to-monitoring-and-alerting-a3d682b794fd?source=rss-73f8a08a2aa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3d682b794fd</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[monitoring]]></category>
            <category><![CDATA[alerting]]></category>
            <category><![CDATA[process]]></category>
            <dc:creator><![CDATA[Pradyumna Challa]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 10:59:50 GMT</pubDate>
            <atom:updated>2024-06-28T10:59:50.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZnxFe5Edrdk4_xpf" /><figcaption>Photo by <a href="https://unsplash.com/@lukechesser?utm_source=medium&amp;utm_medium=referral">Luke Chesser</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In this blog we will explore how to implement monitoring and alerting within an organization. It will cover the core concepts, implementation strategies, and best practices to ensure your applications and infrastructure are always healthy.</p><p>As we are all moving towards a more microservice-based architecture, the number of moving pieces to manage are growing exponentially. Instead of a service making a direct database call, we have another service behind load balancer which is then linked to a DNS record. This just increased the number of failure points from just one to four. Originating service to DNS, DNS to LB, LB to target service, and finally target service to DB.</p><p>Detecting failures has become harder as each request from the end customer will create multiple requests to multiple micro-services within our internal ecosystem. Creating a robust framework for monitoring and alerting will help us to detect and fix failures faster. <strong>Better yet detect failures before they occur.</strong></p><p>I’ve divided this article into 3 sections where I will walk you through creating and implementing a robust framework for alerting and monitoring in your organization from the lessons learned at <a href="https://hiverhq.com/">Hiver</a>.</p><ul><li>Process</li><li>Tooling</li><li>Maintenance</li></ul><h3>Process:</h3><p>The boring and time-consuming part first — the process, both from a tooling and people perspective. This is not just relevant for the DevOps folks, but also for engineering teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T-8J2OO_3nLRubXP" /><figcaption>Photo by <a href="https://unsplash.com/@qarea?utm_source=medium&amp;utm_medium=referral">QArea Inc.</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In a monitoring and alerting framework, the first and most important ingredient is metrics. We need metrics to know what is happening inside the systems we manage. On top of this, we create alerts to know if the metric is at an acceptable level or not.</p><p>Metrics can be broadly categorized into operational metrics and business metrics. Operational metrics are pretty straightforward and are readily available, some examples are RAM, CPU, messages in queue, connections on a database, IOPS of disk, etc. Business metrics are unique and different for each company and have to be created from scratch.</p><p>Let’s dive into the process,</p><h4><strong>Metric Sources:</strong></h4><p>Identify the metric sources. For operational metrics kubernetes clusters, Queueing systems, Databases, and EC2 machines are prime examples. Business metrics are generated within the code.</p><h4><strong>Metric Lifecycle:</strong></h4><p>Set up mechanisms for the generation, ingestion, storage &amp; deletion of metrics across the organization.</p><p>This would include a combination of systems working in tandem with each other. For operational metrics, this would be setting up a Prometheus stack on kubernetes clusters, using Cloudwatch for managed services, etc. Create standard libraries for all application teams to use for generating and transmitting metrics.</p><p>The importance of metrics deteriorates over time at different rates for different metrics, latency of a service would have a longer lifetime than the status of a pod. At some point storing &amp; maintaining unnecessary metrics will become costly both in terms of human and infrastructure resources. Defining the lifecycle for metrics is very important.</p><p>There are two ways to implement such a mechanism and both are not exclusive.</p><ol><li>Implement a hot and cold storage mechanism where metrics are readily available in hot storage but would have to be restored from cold storage for querying. Timelines for both hot and cold storage have to be defined.</li><li>The second way is to down-sample after a certain time.</li></ol><h4>Centralized visualization:</h4><p>Even though there are multiple metic sources, for the end users i.e. developers, QA, and leadership team there should be one place where all of these metrics can be combined and visualized to get a 10,000ft view and dive deep if needed.</p><h4>Impact Levels:</h4><p>Once we have all of the data and we can visualize the next step is alerting on top of the metrics. Identify the metrics that would impact customers both from an operational and business perspective. Within each metric identify at what value of the particular metric product would be, Unusable( P0 ), Some functionality is not working ( P1 ), Product is working but there are some minor inconveniences ( P2 ).</p><h4>Alert Routing:</h4><p>Routing the alerts at different impact levels to the right channels which would get the right attention is paramount. Set up standards on where alerts would be reported for each impact level, An Example of that would be — all P0 would be sent to on-call, P1 would be sent to Slack on a high-priority channel, and P2 would be sent to Slack on a low-priority channel.</p><h4>Escalation Matrices:</h4><p>Even though alerts are routed to the right channels and people, sometimes issues have to be escalated to get them resolved. This is where escalation matrices will help. Work with stakeholders to set up the escalation matrices when issues are not getting resolved at expected timelines. Document the expected timelines too while you are working with the stakeholders.</p><p>Document all the above steps so that all stakeholders are on the same page. Reaching alignment with all stakeholders will help you in implementing the standards and processes.</p><h3>Tooling:</h3><p>Now that we have clarity on what needs to be implemented, let’s take a look at how it needs to be implemented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rzKoboD5Moyj1YZz" /><figcaption>Photo by <a href="https://unsplash.com/@barnimages?utm_source=medium&amp;utm_medium=referral">Barn Images</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Tooling is very subjective, as it has to fit into the existing systems in place. Instead of suggesting tools, I’ll walk through some of the principles that need to be observed while selecting tools.</p><h4>Process Fit:</h4><p>Walk through all the steps in the process defined in the previous section and check if the tool checks all boxes. This will help you avoid costly mistakes of either going back to the drawing board or writing unnecessary automations.</p><h4>Stability:</h4><p>Obvious but often overlooked is the stability of the tool. Check for points of failure and does the tool provides ways to deal with them. Does the tool provide clustering? Does it have an automatic backup feature? How much load can the tool take before failing?</p><h4>Monitoring the monitor:</h4><p>Failure of monitoring and alerting tools is catastrophic as we would be unaware of the status of the systems it is monitoring. Does the tool provide metrics about its internals? Can we monitor the monitoring tool?</p><h4>Cost:</h4><p>Be it cloud-based SaaS tools or self-managed tools each has its own set of costs to bear. Most SaaS tools have usage based pricing. Take a educated guess on how much usage you would have 2–3 years down the road and evaluate if the additional cost of managed SaaS tools is worth the reduced human resources you would need while selecting between SaaS and self-managed tools.</p><h4>Integration Capabilities:</h4><p>You would rarely use monitoring tools in a silo. Having a programmatic access to all the functionalities provided by the tool would help to write automations and trigger various capabilities of the tool. Does the tool provide an API? Which integrations are pre-built into the tool? Does it provide webhooks?</p><h4>Access Controls:</h4><p>Different roles would require different sets of access to both metrics and visualizations. QA would need only read-only access, where a dev would need write access. Make sure that the tool supports various levels of access. Provisioning and de-provisioning accounts becomes a chore once the organization scales, automated ways such as linking to LDAP should be present.</p><h3>Maintenance:</h3><p>Once we have implemented the tools and processes, the long journey of maintaining and updating starts as the organization scales. Clusters scale, thresholds change … keeping up with the ever-changing landscape is key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3zFUGx7Wj_aZwrCt" /><figcaption>Photo by <a href="https://unsplash.com/@nina_mercado?utm_source=medium&amp;utm_medium=referral">Nina Mercado</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Measure the Noise:</h4><p>Keep track of all the distractions that teams have to deal with on a day-to-day basis. Create a dashboard where you can quickly look at historical trends of the number of Slack messages per each notification channel, and on-call alerts raised per team.</p><h4>Identify Patterns:</h4><p>Set up regular check-ins to understand problem areas. Some of them could be an instant fix and some of them need architectural changes. Having a ticketing system to keep track of all the changes required will go a long way</p><h4>Re-Calibrate:</h4><p>Review the processes, tools &amp; thresholds every 6 months to a year with all stakeholders to keep up.</p><p>I hope this was helpful in giving you a better understanding of what to look forward to as you embark on the journey of monitoring and alerting.</p><p>Lets connect to keep the discussion going. <a href="https://www.linkedin.com/in/challapradyumna/">LinkedIn</a></p><h3>Join us</h3><p><strong><em>At Hiver, we’re not just sharing emails; we’re building the future of communication with technology that bridges gaps and brings people closer, no matter where they are.</em></strong></p><p>If you’re excited by the prospect of solving complex problems, diving deep into the world of distributed systems, and making a tangible impact on the efficiency and reliability of email-sharing workflows, we would love to hear from you. We believe in fostering a culture where creativity meets technology, and where individual contributions are valued and celebrated.</p><p>Discover the opportunities waiting for you at Hiver by visiting our <a href="https://hiverhq.com/careers">careers page.</a> Whether you’re a seasoned developer or just starting your journey in tech, we have a place for you. Together, we can shape the future of communication, one email at a time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3d682b794fd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hiver-engineering/a-practical-guide-to-monitoring-and-alerting-a3d682b794fd">A Practical Guide to Monitoring and Alerting</a> was originally published in <a href="https://medium.com/hiver-engineering">Hiver Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain — The Complete Guide]]></title>
            <link>https://challapradyumna.medium.com/blockchain-the-complete-guide-5031f92ebf1f?source=rss-73f8a08a2aa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5031f92ebf1f</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Pradyumna Challa]]></dc:creator>
            <pubDate>Mon, 03 May 2021 13:29:11 GMT</pubDate>
            <atom:updated>2021-05-03T13:29:11.761Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blockchain — The Complete Guide</h3><p>This guide is targeted towards people who would like to get a deeper understanding of how it all works from scratch.</p><h3><strong>What is Blockchain?</strong></h3><p>A blockchain is a decentralized, distributed and public digital ledger that is used to record transactions across many computers so that any involved record cannot be altered retroactively, without the alteration of all subsequent blocks.</p><p>Let’s break that sentence filled with jargon and understand each term in-depth.</p><p><strong>Blockchain is decentralized</strong> — Traditionally applications are deployed in servers that are owned privately by companies or individuals. Websites / Applications run in these centralized servers which serve as the single point of truth for the data residing in these servers where there is the least transparency of how the data is managed or manipulated WRT the users of these applications. Blockchain works on exactly the opposite concept where the data is decentralized into multiple servers where there is no single point of failure or control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*2diMCVl2lCVhWq9cwwg1tA.png" /></figure><p><strong>Blockchain is Distributed</strong> — The servers which hold the data of all the transactions in a blockchain can be owned by anyone who has the capability to put enough computing resources to hold all the data or even parts of the data. Since the truthfulness of the data in the servers is validated by all the other servers holding the same data and no single party/server can manipulate data without more than 50% of the servers in the network agreeing to it.</p><p><strong>Blockchain is a public digital ledger — </strong>A traditional application has a vast variety of requirements and implementation methods of the same requirements. Blockchain can only be used for one single purpose, save transactions. The most common type of transactions are financial in nature but transaction by definition is an agreement between a buyer and a seller to exchange goods, services or financial instruments.</p><p>Let’s take a few examples of transactions that are not financial in nature</p><ul><li>Issuing a Certificate for completion of a Degree. This is a transaction between an educational organization and a student</li><li>Voting for a candidate in the election. This is a transaction between voters and the election commission.</li><li>Tracking of produce Farm to Fork. A series of transactions between middlemen from farmer till the delivery guy before it reached you.</li></ul><p>All these transactions are public and can be verified by anyone. Since blockchain stores, all these transactions it&#39;s a ledger of digital transactions.</p><p>P.S — Not all blockchains are public there are private chains that are utilized in most of the sectors adopting blockchain technology.</p><p>A short video explaining the basics of blockchain -</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSSo_EIwHSd4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSSo_EIwHSd4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSSo_EIwHSd4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/53007fa292b4b62768d9b061c2572294/href">https://medium.com/media/53007fa292b4b62768d9b061c2572294/href</a></iframe><h3><strong>How is blockchain used in the real world?</strong></h3><p>One of the first &amp; most popular use case of blockchain is <strong>bitcoin</strong>. Bitcoin is a decentralized cryptocurrency/digital currency without a central bank or single administrator bitcoin can be sent from user to user on the peer-to-peer bitcoin network without the need for intermediaries. All the transactions happening on the platform are stored in a blockchain there are <a href="https://bitnodes.earn.com/">thousands of public servers</a> consisting of all the transactions hence no one can change any existing transactions in the chain.</p><p>Since blockchain is very secure and is decentralized it was very attractive for businesses to utilize this technology for tracking, compliance and various other use cases. The challenge was there is no way to develop applications on top of blockchain technology. This originated <strong>Ethereum</strong>, an open-source, public, blockchain-based distributed computing platform and operating system featuring <strong>smart contracts</strong> (Explained later in this blogpost). Transactions in this platform happen through Ether similar to bitcoins in the Bitcoin Platform.</p><p>References for In-Depth technical details — <a href="https://bitcoin.org/bitcoin.pdf">BitCoin WhitePaper</a>, <a href="https://github.com/ethereum/wiki/wiki/White-Paper">Ethereum WhitePaper</a></p><h3><strong>How does Blockchain work?</strong></h3><p>Let’s walk through a typical transaction in a blockchain and understand behind the scenes details of how everything works together.</p><p>In order to transact on blockchain as with any other platform, we need two accounts to transact between.</p><blockquote>Accounts in blockchain are called Wallets.</blockquote><p>Wallets are identified with a hex code associated with the wallet which is similar to a username in a traditional application. e.g. 0xdeD1f8B66fEf1D81114B87a11247A202824CeACe</p><h4><strong>Traditional vs Blockchain:</strong></h4><p>Online Bank Transaction: Send Rs 1000 from Account A to Account B with comment X</p><p>Blockchain Transaction: Send 1000 Tokens from Wallet A to Wallet B with X, Y, Z data associated with it</p><blockquote>Tokens are the currency in Blockchain</blockquote><h4><strong>Banking Application:</strong></h4><ol><li>A request is sent to the server with the details Account A, Account B, Comment &amp; amount of money is sent to the centralized server.</li><li>The server reduces the amount of money in Account A &amp; increases the amount of money in Account B. The transaction is completed.</li></ol><h4><strong>Blockchain Transaction:</strong></h4><p>Since blockchain is decentralized there are hundreds or thousands of servers where all the transactions are stored. These servers also maintain a balance of all the wallets on the platform. Hence, transactions are not as straight forward as they are in a Banking Application.</p><blockquote>Servers in Blockchain are known as nodes</blockquote><p>The transaction between Wallet A and Wallet B with additional data is put into a pool of other transactions that are yet to be added into the chain.</p><blockquote>Transactions that are yet to be added to the chain are known as Unconfirmed Transactions</blockquote><p>A few of these Unconfirmed Transactions are bundled into blocks and added to the already existing chain. Hence the name blockchain.</p><h4><strong>Block Basics:</strong></h4><p>Each block has a set structure of metadata and a place for all the transactions that are present in the block. One important part of metadata is the ID of the last block / previous block to which this block will be added. Again, hence the name blockchain since each block has a link to the previous block that was added to the chain. Another important information present in the metadata is the hash (<a href="https://en.wikipedia.org/wiki/Merkle_tree">Merkle-Root</a>) of all the transactions in the block. This is the mechanism that makes sure transactions are not being tampered within this block.</p><h4><strong>Miners:</strong></h4><p>Miners are computers/servers that are building the blocks to add to the chain. Typically they consist of a lot of GPUs. Why GPU’s ?, because they are very good at Floating-Point Operations Per Second.</p><p>Depending on the platform there are two major ways to build a block:</p><h4><strong>Proof Of Work:</strong></h4><ol><li>One of the miners pick a bunch of the Unconfirmed Transactions and try to build a block. Miner is not restricted in any way to pick which transactions have to be part of the block it is creating.</li><li>After picking the transactions the miner has to solve a very hard mathematical problem which is hard to solve but easy to verify.</li><li>Once the answer is found the block is sent to one of the full nodes to be added to the chain along with the solution to the mathematical problem.</li><li>Node verifies the answer and adds the block to its local chain</li><li>After adding the block to the chain, the node makes an announcement to all other nodes in the network to add this new block to their chain too.</li><li>Now the transaction is Confirmed and permanently added to the chain. This also confirms the payment to the miner that has solved the problem which made this block.</li></ol><p>There is a possibility that two miners have solved the mathematical problem at the same time. In this case whichever block gets the next block will be accepted and the other block will be discarded. P.S — The longest chain in the network is always right.</p><p>Let’s get a deeper look at payments to the miners in this model.</p><p>Whenever a transaction is added to the pool of Unconfirmed Transactions the producer of the transaction attaches a max value of tokens it is willing to spend for confirming/verifying the transaction and adding it to the chain. This is a primary criterion for transactions to be picked up by miners for adding into the block they are creating. Higher the limit of tokens for verification, more chances of the transaction verified ASAP. Eg Wallet A sent 1000 Tokens to Wallet B with 100 Tokens as the max limit of adding the transaction to the chain, Once the transaction is added to the chain 100 Tokens will be sent to the mining node from Wallet A apart from the 1000 Tokens sent. For Wallet A it cost 1100 tokens to complete the transaction.</p><h4>Verifiers:</h4><p>Similar to Miners in the previous model of making blocks, Verifiers are the ones that make blocks in a Proof of Stake model. Validators need to lock some Tokens as a stake for validating blocks. The number of blocks a validator gets depends on the amount of stake it has in the validator pool of tokens. If the validator misbehaves the stake will be taken away.</p><h4><strong>Proof Of Stake:</strong></h4><p>In this method, there are no miners there are verifiers</p><ol><li>All the verifiers will be waiting in a pool to be picked for verifying the next block.</li><li>Node picks one of the verifiers randomly based on the amount of stake the verifier possesses.</li><li>The verifier is given a reward for verifying the block.</li><li>Once the block is verified it is added to the network.</li><li>All other nodes are notified about the new block added.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*m6jEcWiE0zeMVT8X4GZrmg.jpeg" /><figcaption>Source: <a href="http://insurancefunda.in/bitcoin-cryptocurrency/">http://insurancefunda.in/bitcoin-cryptocurrency/</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e3_n2X5iIWESS28XiFMEpw.jpeg" /><figcaption>Source: <a href="https://www.zerohedge.com/news/2013-05-12/visualizing-how-bitcoin-transaction-works">https://www.zerohedge.com/news/2013-05-12/visualizing-how-bitcoin-transaction-works</a></figcaption></figure><h3><strong>Smart Contracts:</strong></h3><p>Blockchain by design can only talk in terms of wallets, transactions, events &amp; transaction metadata and nothing else. In order to implement some business logic for different use cases, Ethereum provides smart contracts where these actions can happen in an automated &amp; structured manner.</p><p>Smart Contracts are nothing but a set of instructions for the <a href="https://web.archive.org/web/20180203110042/http://yellowpaper.io/">EVM (Ethereum Virtual Machine)</a> to execute on the Ethereum Platform. Smart Contracts are written in <a href="https://solidity.readthedocs.io/en/latest/">Solidity</a> language, it is sponsored by the Ethereum Project. Each contract in Ethereum is given an address similar to the wallet address and users can interact with it through that address by sending it Ether, calling functions, querying information inside the smart contract, etc.</p><p>Smart Contracts residing on the blockchain is low-level byte code which is hard to write and understand hence the requirement of a language for developers to easily implement Smart Contracts. Contracts written in Solidity are eventually compiled to binary code and deployed on to the chain where it receives an address for users to interact with the contract. Unlike traditional deployment, every time a new version of the contract is deployed a new address is assigned.</p><p>In order to interact with the contracts, instructions have to be given in low-level byte code. Blockchain platforms have abstracted this layer by providing libraries to interact with the chain &amp; contracts in a more programmatic way.</p><p><strong>Distributed Apps (dApps):</strong></p><p>dApps are the frontend for smart contracts where Blockchain acts as one of the databases for the dApp.</p><p>Taking one of the use cases of blockchain for an example such as Issuing Certificates. The full product would consist of a website where</p><p>Students can</p><ol><li>Register themselves with a valid ID proof</li><li>Receive certificates from different educational organizations</li></ol><p>Educational Org can</p><ol><li>Register with a valid business license</li><li>Issue certificates</li></ol><p>Other Org can</p><ol><li>Register with a valid business license</li><li>Validate certificates provided by a student/employee</li><li>Find students/employees with certification required by the organization</li></ol><p>In the above use case from the perspective of an end-user, there are no wallets involved no addresses, no interaction with smart contracts. Blockchain does not provide any UI for interacting with it. dApps serves the purpose of providing a UI to interact with the blockchain and smart contracts in a blockchain.</p><p>Storing data in a blockchain is expensive compared to other means of storage. Blockchain is only used to store data that needs to be trusted and objective in nature. E.g. username of a user is a good candidate to store in blockchain compared to the bio of a user which is subjective in nature. This creates a necessity for any real-world app to have two data stores one of which is a blockchain and the other is a traditional database (MySQL) to store data that need not be stored in a blockchain but required for users to easily use the application. dApps provide this seamless interface between both the datastores without sacrificing functionality.</p><blockquote>Blockchain is never a full solution for any problem statement</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5031f92ebf1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State of Serverless Sites]]></title>
            <link>https://challapradyumna.medium.com/state-of-serverless-sites-1dbbdf4e1a54?source=rss-73f8a08a2aa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1dbbdf4e1a54</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Pradyumna Challa]]></dc:creator>
            <pubDate>Tue, 10 Sep 2019 07:04:15 GMT</pubDate>
            <atom:updated>2019-09-25T13:38:58.759Z</atom:updated>
            <content:encoded><![CDATA[<h4>A DEVELOPERS GUIDE TO</h4><h4>Understanding the ‘Serverless’ space with a ‘Production’ use case</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJnJrSX9-pQphWAUK7UhBg.png" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplay.ht%2Fembed%2F%3Farticle_url%3Dhttps%3A%2F%2Fmedium.com%2F_p%2Fstate-of-serverless-sites-1dbbdf4e1a54&amp;url=https%3A%2F%2Fplay.ht%2Farticles%2F1dbbdf4e1a54&amp;image=https%3A%2F%2F1%2A-RVymXNgiU5vK7a5zVAbJg.jpeg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=play" width="700" height="185" frameborder="0" scrolling="no"><a href="https://medium.com/media/58062bea8293d0899be07655a4130a4f/href">https://medium.com/media/58062bea8293d0899be07655a4130a4f/href</a></iframe><p>Serverless architectures are becoming a staple of modern cloud architecture as they provide the developers with the flexibility of scaling with almost no maintenance overhead. Let’s look into how you can utilize this to your advantage.</p><p>Traditionally, when hosting a website, whether, static or dynamic, we needed a pre-provisioned server. However, hosting a server comes with its own overhead costs of maintenance, regardless of the size of the site and the amount of traffic it attracts. With the advent of managed cloud services, hosting a static site has become a breeze.</p><p>There are three prominent cloud service providers dominating the space as of now.</p><ul><li><a href="https://aws.amazon.com/"><strong>AWS</strong></a><strong> (Amazon Web Services)</strong></li><li><a href="https://cloud.google.com/"><strong>GCP</strong></a><strong> (Google Cloud Platform)</strong></li><li><a href="https://azure.microsoft.com/"><strong>Azure</strong></a><strong> (Microsoft)</strong></li></ul><p>Although each provider has their own proprietary services, the underlying principle/services for hosting a serverless website remains the same.</p><h4>The services required to host a serverless site:</h4><ul><li>Storage</li><li>Serverless Functions (Optional)</li><li>API Gateway (Optional)</li><li>CDN (Optional)</li></ul><h4>Architecture</h4><p>Cloud storage is used as a cheap storage solution compared to in-house storage. Since these files have to be publicly available, cloud providers have provided an additional option to convert these virtual drives into static sites, where there is no need for server-side scripting.</p><p>But, most of the static sites have a contact form, which needs a scripting language to send mail to the admin. Else, a minor part of the website is dynamic, which requires server-side scripting. So, we can use the serverless functions to process the information in the backend.</p><p>Serverless functions generally do not have an endpoint (URL) to run them. API Gateways come in handy in this situation where a serverless function can be attached to an endpoint. API Gateways provide a way to interact with the serverless functions.</p><p>Storage / Virtual drives can also be attached to a CDN for faster load times in different regions of the world and for better scalability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*NpvnHprsdQ4xLomCqqb6nw.png" /></figure><h4>Storage</h4><ul><li>AWS — <a href="https://aws.amazon.com/s3/">S3 (Simple Storage Service)</a></li><li>GCP — <a href="https://cloud.google.com/storage/">Cloud Storage</a></li><li>Azure — <a href="https://azure.microsoft.com/en-in/services/storage/">Azure Storage</a></li></ul><h4>CDN</h4><ul><li>AWS — <a href="https://aws.amazon.com/cloudfront/">CloudFront</a></li><li>GCP — <a href="https://cloud.google.com/cdn/">Cloud CDN</a></li><li>Azure — <a href="https://azure.microsoft.com/en-in/services/cdn/">CDN</a></li></ul><h4>API Gateway</h4><ul><li>AWS — <a href="https://aws.amazon.com/api-gateway/">API Gateway</a></li><li>GCP — <a href="https://cloud.google.com/endpoints/">Cloud Endpoints</a></li><li>Azure — <a href="https://azure.microsoft.com/en-in/services/api-management/">API Management</a></li></ul><h4>Serverless Functions</h4><ul><li>AWS — <a href="https://aws.amazon.com/lambda/">Lambda</a></li><li>GCP — <a href="https://cloud.google.com/functions/">Cloud Functions</a></li><li>Azure — <a href="https://azure.microsoft.com/en-in/services/functions/">Azure Functions</a></li></ul><h3>Use Case</h3><p>One of the projects we were working for, here at Softway, had a public-facing site and a backend which could be accessed only by members of authorized companies. This required the public site to be a different entity concerning infrastructure. The simple reason being easily able to manage the availability &amp; upgradeability of both parts of the site independently.</p><p>Since the public-facing site is a static HTML site with a few forms, we have opted for serverless architecture, to keep the costs low.</p><p>Static content of the site is hosted in S3 and the bucket is linked to the domain through Route53. A CloudFront CDN is attached to the bucket for quick access to the bucket contents from anywhere in the world.</p><p>Forms in the static site are programmed to post the data to Amazon API Gateway. Endpoints in the API Gateway are linked to Lambda functions which in turn utilize SES (Simple Email Service) to send mails. Lambda functions are also provided access to Databases in a private subnet so that information posted from the static site can be stored for future reference &amp; can be utilized in the backend site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/844/1*LkkmjQN_PQAS9WbFAuITXw.png" /><figcaption>The architecture of Public-Facing Static Site</figcaption></figure><p><strong>The above setup allowed us to de-couple both the sites. It also kept the costs of hosting and maintenance of the public-facing site to a bare minimum.</strong></p><h4>If you liked this article, click on the 👏 button (did you know you could go up to 50?), follow me here on Medium and share this article on your socials!</h4><h4>Challa Pradyumna enjoys nothing better than to explore technologies and provide solutions to pressing challenges in the Innovations &amp; Business Intelligence team at <a href="https://medium.com/u/8f68acb232a2">Softway</a>. When he’s not innovating, he’s usually gorging on ‘khichdi’ and chilling out by taking forty winks.</h4><h4>Learn more about Softway here:</h4><p><a href="https://softway.com/">A Digital, Culture &amp; Branding Agency in Houston | Softway</a></p><blockquote>Let’s get social! For more about our work and our culture follow us on <a href="https://www.linkedin.com/company/teamsoftway">LinkedIn</a> and <a href="https://www.instagram.com/TeamSoftway/">Instagram</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dbbdf4e1a54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Noobs Guide to Car Maintenance]]></title>
            <link>https://challapradyumna.medium.com/noobs-guide-to-car-maintenance-1cd8b8f61f65?source=rss-73f8a08a2aa1------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd8b8f61f65</guid>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[maintenance]]></category>
            <category><![CDATA[cars]]></category>
            <dc:creator><![CDATA[Pradyumna Challa]]></dc:creator>
            <pubDate>Mon, 29 Aug 2016 10:50:01 GMT</pubDate>
            <atom:updated>2016-08-29T10:53:30.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*4bkGFAIBJ5xhCqq7yEav2Q.jpeg" /></figure><p>Imagine this … you are going to an important meeting overtaking traffic , waiting for the signal to go green like a F1 driver at the starting grid. Out of all this chaos your trusted means of transport goes silent with you sitting ducks in the middle of the road. Now you have to push your car to the side of the road , arrange for towing , find another mode of transport and you have missed your meeting anyway. You could have avoided all of this .</p><p>Car is a complex machine with thousands of parts , all of them functioning in sync to get us where we want to. On an overall there are a few major systems that make the bulk of it, Engine, Transmission , Suspension , Brakes , Wheels and Electrical.</p><h3>What can you do to keep it moving forward ?</h3><p><strong>Fluids:</strong> Engine Oil , Transmission Oil , Brake Fluid , Coolant , Power Steering Oil. Abnormal drop of any of the fluids means something is wrong.</p><p><strong>Battery: </strong>The thing that starts the car. Always by all means make sure your battery is charged and in a good condition. When in doubt change the battery before it dies.</p><p><strong>Noises:</strong> <a href="http://mycarmakesnoise.com/">http://mycarmakesnoise.com/</a> .<strong> Mix and match .</strong></p><p><strong>Instrument Cluster Symbols: </strong>If any of the ones that is not lit generally is lit up(the red ones) , take it to the garage.</p><p><strong>Driving habits that needs to be avoided : </strong>Riding the clutch , riding the brakes , sudden stop or taking off , not warming up .</p><p>That should cover you for now.</p><p>Oh and by the way we fix cars at <a href="https://medium.com/u/f7660d398260">Carista</a> right at your doorstep , it will not get any <a href="https://carisa.in/">better</a> .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd8b8f61f65" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>