<?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 Hrishabh Sharma on Medium]]></title>
        <description><![CDATA[Stories by Hrishabh Sharma on Medium]]></description>
        <link>https://medium.com/@hrishabh01sharma?source=rss-94c9e47a8ba2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wo2tCYYL65PNJy1kJYhAUA.jpeg</url>
            <title>Stories by Hrishabh Sharma on Medium</title>
            <link>https://medium.com/@hrishabh01sharma?source=rss-94c9e47a8ba2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:59:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hrishabh01sharma/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[SDE-2 Interview Experiences: Flipkart, Housing.com, Oracle, Kotak Mahindra, JPMC]]></title>
            <link>https://hrishabh01sharma.medium.com/sde-2-interview-experiences-flipkart-housing-com-oracle-kotak-mahindra-jpmc-7d928353c37a?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d928353c37a</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 04:37:43 GMT</pubDate>
            <atom:updated>2024-10-22T05:20:14.215Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*do5WuOThB0yATkXI" /></figure><p>Hello readers, this article is about my interview experiences for SDE-2 Roles. Before beginning the individual experiences, I want to share a few tips that helped me get these interviews.</p><ul><li>Keep your profiles updated on job-hunting platforms like Naukri and Instahyre.</li><li>If you are already at the higher end of your salary for SDE-1, then keep your current salary as 0.</li><li>Keep updating your profile daily even with small changes, it increases the visibility of your profile.</li></ul><p>Let’s move on to interview experiences now.</p><h4>Flipkart:</h4><p>Rounds: 4</p><p>Round 1: Machine Coding Round (2.5 hours + 30 mins for evaluation)</p><p>Design a wallet service in which money can be added and spent. The money in the wallet can be also invested as a Fixed Deposit, with the functionality to break it. Users should be able to transfer money from wallet to wallet.</p><p>Bonus: Implement a CashBack Strategy for every mode of payment.</p><p>Round 2: Problem Solving / DSA (60 mins)</p><p>Q1: Similar to the Minimum number of platforms required for a railway station given arrival and departure time of trains.</p><p>Q2 : Give the nth Ugly Number in sequence. Ugly number sequence include numbers whose only prime factors are 2,3,and 5. e.g. 2,3,4,5,6,8,9,10,12.</p><p>Round 3: Design Round (60 mins)</p><p>Design system like Book My Show (LLD+ HLD). More emphasis on schema, db design, and scenarios on how to handle concurrent booking.</p><p>Round 4: HM Round (60 mins)</p><p>This round is taken by Senior/Staff Engineer at Flipkart. Mostly project-related discussion in-depth. And general questions like Why Flipkart? Why change?</p><p>Verdict: Selected</p><h4>Housing.com</h4><p>Rounds: 4</p><p>Round 1: DSA and DBMS</p><p>1 Leetcode Medium on Sliding Window, Bottom View of Tree, Medium level SQL Queries on given tables related to a hotel booking website.</p><p>Round 2: Java and Design Round</p><p>Design Patterns, OOPS, and SOLID Principles, an overview of Java Hashmap and glancing at its implementation, Indexing in DB.</p><p>Round 3: Java</p><p>Intensive questions on Java Multithreading, Springboot and JPA-related questions like N+1 Problem, Project related discussions,</p><p>Round 4: HR Round</p><p>Why are you changing your job? Mention some challenges you faced in your job.</p><p>Verdict: Selected</p><h4>Oracle (OCI)</h4><p>Rounds: 1+4</p><p>Screening Round: Expected to solve 2 DSA Problems. Medium Leetcode Difficulty, on arrays and sliding window.</p><p>Round 1: Project-related discussion with a deep dive into architectures. Java-related questions, and one easy Leetcode to find the next permutation.</p><p>Round 2: Two DSA Questions, was able to solve one on Greedy Approach.</p><p>Round 3: Java and OOPS. Design Patterns, Hashmap implementations, garbage collector functioning and one easy DSA problem related to 2d Array.</p><p>Round 4 (Bar Raiser): Project-related discussions and mostly behavioral rounds.</p><p>Verdict: Rejected. (I didn&#39;t perform well in Round 3, on Java Concepts)</p><h4>JPMC</h4><p>Rounds: 1+3</p><p>Online Assessment:</p><p>Two questions: One on DP(Medium) and the other on Strings(Medium).</p><p>Round 1:</p><p>Q1: Find the number of substrings that have non-repeating characters.</p><p>Q2: A PR Review to find problems in some functionality written in Java Class.</p><p>Round 2: Design a Parking Lot System (HLD)</p><p>Round 3: HR and Behavioral Round</p><p>Verdict: Selected</p><h4>Kotak Mahindra</h4><p>Didn&#39;t complete all rounds as I was eliminated in Round 1.</p><p>Round 0 (Bar Raiser):</p><p>Q1:Leetcode Medium Problem on Sliding Window.</p><p>Q2: LLD of an e-commerce system.</p><p>Round 1:</p><p>Q1: Simulate the formation of a water molecule (H₂O) using Java threads, where separate threads are responsible for “printing” hydrogen and oxygen atoms.</p><p>Q2: Leetcode medium problem on DP.</p><p>I spent too much time on Q1, and didn&#39;t get a chance to complete Q2, leading to rejection.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d928353c37a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mutual SSL]]></title>
            <link>https://hrishabh01sharma.medium.com/mutual-ssl-47ea947a088e?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/47ea947a088e</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[mutual-ssl]]></category>
            <category><![CDATA[ssl]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 06:54:14 GMT</pubDate>
            <atom:updated>2024-10-07T06:54:14.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dt2an0CGYOuKaAJd" /><figcaption>Photo by <a href="https://unsplash.com/@flyd2069?utm_source=medium&amp;utm_medium=referral">FlyD</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Before diving into Mutual SSL, it’s essential to first understand SSL. SSL (Secure Socket Layer) is a protocol used to verify that a client is accessing the correct server resource. This verification relies on widely-used cryptographic utility known as digital certificates.</p><h4>How does a Digital Certificate work?</h4><p>As part of their identity, any party can hold a private and public key pair. The private key is kept secret, while the public key can be shared openly. If party ‘A’ signs a message with their private key, the message’s origin (whether it was generated by ‘A’ or not) can be verified by anyone using ‘A’s public key.</p><h4>Standard SSL</h4><p>This flow is used in standard SSL, where when a client attempts to access a website, the server provides a digital signature of its certificate. The client can easily verify this using the server’s public key, ensuring it is accessing the correct website or server. In practice, client browsers don’t hold public keys or certificates directly. Instead, Certificate Authorities (CAs) act as trusted intermediaries to facilitate this verification process.</p><h4>Mutual SSL</h4><p>Building on the concept of basic SSL, Mutual SSL extends verification to both the client and the server. The verification and exchange process can be summarized in these steps:</p><ol><li>The client accesses a website.</li><li>The server sends a digitally signed certificate.</li><li>The client verifies it using the Certificate Authority (CA) or the server’s public key.</li><li>The client then shares its own digitally signed certificate.</li><li>The server verifies the client’s certificate.</li><li>If all handshakes are completed, the SSL verification is considered complete.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*gm7TgnGxo8sMuw7KceMcFg.png" /></figure><p>If you’re looking to enable Mutual SSL (MSSL) in any programming language, the core process remains the same: creating an SSLContext and loading the necessary key materials.</p><p>Below are some Java code snippets I’ve used on the client side to enable Mutual SSL.</p><p>You can use keystores to store the certificates and private keys.</p><pre>private SslContext createSSSLContext(){<br>  SslContext sslContext;<br>  try{<br>      sslContext = SslContextBuilder.forClient()<br>      .keyManager(getKeyManagerFactory()).trustManager(getTrustManagerFactory()).build()<br>   }<br>  catch(Exception e){<br>  throw new RuntimeException(&quot;Error creating SSL Context&quot;);<br>  }<br>}<br><br>private KeyManagerFactory getKeyManagerFactory() throws NoSuchAlorithmExceotion, CertificateException,IoException, KeysStoreException{<br>  KeyStore keyStoreInstance = KeyStore.getInstance(&quot;jks&quot;);<br>  KeyStoreInstance.load(getClass()).getClassLoader().getResorceAsStream(keyStore),keyStorePassword.toCharArray());<br>  <br>  KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(&quot;SunX509&quot;);<br>  keyManagerFactory.init(keyStoreInstance,keyStorePassword.toCharArray());<br>  return keyManagerFactory;<br>}<br><br>private TrustManagerFactory getTrustManagerFactory() throws NoSuchAlorithmExceotion, CertificateException,IoException, KeysStoreException{<br>  KeyStore trustStoreInstance = KeyStore.getInstance(&quot;jks&quot;);<br>  KeyStoreInstance.load(getClass()).getClassLoader().getResorceAsStream(trustStore),trustStorePassword.toCharArray());<br>  <br>  TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(&quot;SunX509&quot;);<br>  trustManagerFactory.init(trustStoreInstance,trustStorePassword.toCharArray());<br>  return trustManagerFactory;<br>}</pre><p>You can use this SSL context created and set in any rest/web client object to enable mutual SSL.</p><ul><li>A keystore is used to store your own key materials, while a truststore is used to store the public key materials of other parties. However, it’s possible to store both in a single JKS (Java KeyStore) file if needed.</li><li>Load store paths and passwords from env/config.</li></ul><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47ea947a088e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Good Movies I watched in 2023.]]></title>
            <link>https://hrishabh01sharma.medium.com/good-movies-i-watched-in-2023-bbf82d6784ee?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbf82d6784ee</guid>
            <category><![CDATA[cinema]]></category>
            <category><![CDATA[movies-to-watch]]></category>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[film]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Fri, 22 Dec 2023 16:09:16 GMT</pubDate>
            <atom:updated>2023-12-22T16:09:16.357Z</atom:updated>
            <content:encoded><![CDATA[<p>I was not a cinema fan or someone who could appreciate a movie much until 2022. But after moving from home to a new city, things did change, and to avoid boredom, I’m glad I levelled up and started watching good movies.</p><p>Although ranking these movies makes no sense, as all have different genres, some are heartwarming, and some are cinematic glory.</p><p>But these are some of the top-pick movies, ranked on how much I could connect with the film.</p><p>18. Wake Up Sid (Drama/Romance/Comedy)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-wzSDUiHIMQNljwa.jpg" /></figure><p>17. Get Out (Horror/Comedy)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oAWDk943-c1yPYV3.jpg" /></figure><p>16. Spiderman: Across the Spiderverse (Animated/Action)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rXbGHRfYyHtkYH7X.jpg" /></figure><p>15. Walk the Line (Biopic)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y95HJhkJ0WMA9AtV.jpg" /></figure><p>14. Taxi Driver (Crime/Noir)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BAdrLsfQOJT_6MN-.jpeg" /></figure><p>13. Reservoir Dogs (Crime/Noir)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5mzKkcefPCORWxMG.jpg" /></figure><p>12. Old Boy: 2003 (Thriller/Action)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BPKh6O4s0Qr5gGm2.jpg" /></figure><p>11. The Secret Life of Walter Mitty (Adventure/Comedy)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T9oFJluBqZShoNsT.jpg" /></figure><p>10. Goodfellas (Crime/Noir)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/0*ewc4Ok2JwTVVK6aM.jpg" /></figure><p>9. Oppenheimer (Biopic)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RQWN2pVrNA0skQdf.jpeg" /></figure><p>8. Dead Poets Society (Thriller/Comedy)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y_3HNOOs-X0YZ8jZ" /></figure><p>7. Chungking Express (Romance/Crime)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/0*0zyAQf_nHy5a3MgJ.jpg" /></figure><p>6. Into the Wild (Adventure/Documentary/Biopic)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*ZrNe1jBfeSRM9jQG.jpg" /></figure><p>5. Good Will Hunting (Thriller/Romance)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sGuhamC1sO6xxzxL.jpg" /></figure><p>4. The Grand Budapest Hotel (Comedy/Crime)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3LJTVOf6kNH-V6uL.jpg" /></figure><p>3. The Perks of Being a Wallflower (Romance/Thriller)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6TrmCPv7Y3zFahzB.jpg" /></figure><p>2. In the Mood of Love (Romance/Drama)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e829OCiy0Vq_1YOo.jpg" /></figure><ol><li>Mr Fantastic Fox (Animation/Comedy/Adventure)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*aGVjBTd-u2aZDUJz" /></figure><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbf82d6784ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka or RabbitMQ?]]></title>
            <link>https://hrishabh01sharma.medium.com/kafka-or-rabbitmq-8d253fe711f4?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d253fe711f4</guid>
            <category><![CDATA[rabbitmq]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[message-queue]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Tue, 07 Nov 2023 19:35:05 GMT</pubDate>
            <atom:updated>2023-11-09T05:57:59.040Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiMONvdRFBEgsRfq1M2jTw.png" /></figure><p>When scaling the application horizontally or vertically is not enough to handle the tremendous traffic that will come to your application, the choice to use a message broker/queue comes to mind.</p><p>Of all the available options, the choice always stops at these two due to the mature support of Kafka and RabbitMQ.</p><p>Although many blogs will praise Kafka and sometimes RabbitMQ, choosing the right option solely depends on the use case or architecture of the system you are dealing with. To understand them better, let’s try to understand the characteristics of both.</p><h4>RabbitMQ</h4><p>It is a message broker which uses queues to store messages created by “Producers”. The messages placed in the queue can be consumed by &quot;Consumers&quot; applications. The queue is non-persistent, and messages are removed with the acknowledgement. Another characteristic of the queue is that it is single-threaded and can only scale up to an extent.</p><p>Let&#39;s try to understand this by example.</p><p>Suppose we are making an API which triggers a process to store some data on the blockchain. Ignoring the state of the transaction(success/failure/pending) and with the scalability of the API, let’s assume that it can process and submit a transaction in 20 seconds. The data being stored is a picture coming from another service at the rate of 10 per minute.</p><p>So, the service can handle three requests per minute (60/20). But we have to handle the load of 10 requests per minute.</p><p>That’s a good use-case where we can use RabbitMQ:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*vPiKSmth_xWqCv6TM6-vlA.jpeg" /></figure><p>RabbitMQ also provides Smart Routing that enables to define of prefixes and routing of the requests to multiple queues, which can be pulled/pushed to different consumers.</p><p>RabbitMQ queues are single-threaded. So, the only scope of multithreading is possible at the consumer level, but you can use pre-fetch to restrict load. It simply means how many messages the queue can throw to consumers without getting acknowledged. Now, it&#39;s on the consumer to handle this prefetch load correctly.</p><h4>Kafka</h4><p>Per the official website, Kafka is said to be an event streaming platform distributed in nature. So why are we comparing it with RabbitMQ, a message broker? The answer is that it is an enhanced version of a message queue/broker capable of more throughput, which can even manage the high data load in the form of consistent streams.</p><p>In Kafka terminologies, it contains topics, a log of events, that a consumer can subscribe to listen to. As it is distributed in nature, the different topics can be replicated inside a Kafka cluster for horizontal scaling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*p8Iih5-USOK4DbWsa-QemA.jpeg" /></figure><p>It works on ‘Pub-Sub’ Model, contrary to ‘Push-Pull’ Model of RabbitMQ. Another advantage of Kafka is that it stores messages for a more extended period of configurable time, compared to RabbiqMQ queues, in which messages are removed once played. Because of the storage of logs, Kafka can replay the messages.</p><p>So if your system is simple enough and has few direct consumers that don’t need to handle high throughput of data, RabbitMQ is a good choice, but if your system needs to be a step ahead and work with high throughput streams of data and have multiple consumers wanting to subscribe to different topics, using Kafka is a good option.</p><p>If you want to know more about these two, Vanlightly’s blog is the best resource, so I don’t need to make this article lengthy and compare.<br><a href="https://jack-vanlightly.com/blog/2017/12/3/rabbitmq-vs-kafka-series-introduction#:~:text=The%20hype%20has%20been%20centered,scale%20where%20RabbitMQ%20has%20problems">https://jack-vanlightly.com/blog/2017/12/3/rabbitmq-vs-kafka-series-introduction#:~:text=The%20hype%20has%20been%20centered,scale%20where%20RabbitMQ%20has%20problems</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d253fe711f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Short Guide on Understanding UPI Payments]]></title>
            <link>https://hrishabh01sharma.medium.com/short-guide-on-understanding-upi-payments-675faf556f12?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/675faf556f12</guid>
            <category><![CDATA[upi]]></category>
            <category><![CDATA[upi-payment]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Tue, 24 Oct 2023 19:41:54 GMT</pubDate>
            <atom:updated>2023-10-24T20:04:07.963Z</atom:updated>
            <content:encoded><![CDATA[<p>I got curious after seeing a payment failure from Google Pay at a restaurant. I am not alone in cursing Google Pay without any understanding, for their bad UX of UPI Transactions. But, they are not the entire defaulter, and you can see a better performance by just managing your UPI IDs and adding a few more.</p><p>I read multiple whitepapers to understand the architecture of one of the most robust digital payment interfaces globally, the Unified Payment Interface (UPI), and how Indian apps like GPay, Phonepe, etc. use them.</p><p>DISCLAIMER: This is not a technical architecture explainer article, and just an overview if someone is curious and wants to know in brief.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83JL-2dj-VQxL2zkLuSSzg.png" /><figcaption><a href="https://support.google.com/pay/india/answer/10331134?hl=en-GB#zippy=%2Cwhats-the-difference-between-a-upi-id-a-bank-account">https://support.google.com/pay/india/answer/10331134?hl=en-GB#zippy=%2Cwhats-the-difference-between-a-upi-id-a-bank-account</a></figcaption></figure><p>So, if you are one of the initial users of Google Pay having a UPI ID ending with @oksbi, add a new UPI ID, for god’s sake.</p><p>To understand the different steps involved in the process of making a UPI Payment:</p><p>We can consider the following actors involved:</p><ul><li>Payer</li><li>PISP: Payment Initiation Service Provider</li><li>AISP: Account Information Service Provider</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*hg80pyNf6tqCOrh3-zQDJQ.png" /></figure><p>We can consider the following actions to take place:</p><ul><li>A UPI App initiates a transaction.</li><li>The UPI app chooses the PISP.</li><li>The AISP/Issuer Bank verifies the transactions to be valid regarding balance and account details and generates a digital signature.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mlPiy7K4NF7if2mdjnpUKQ.png" /><figcaption><a href="https://static.googleusercontent.com/media/nextbillionusers.google/en//tools/3PPI-2021-whitepaper.pdf">https://static.googleusercontent.com/media/nextbillionusers.google/en//tools/3PPI-2021-whitepaper.pdf</a></figcaption></figure><ul><li>If the request is valid, the PISP routes it to NPCI, where it is verified.</li><li>NPCI deducts the amount from the payer if it is valid, and the receiver account gets the fund.</li></ul><p><strong>Conclusion:</strong></p><ul><li>Try to keep multiple UPI IDs for your bank account.</li><li>Different apps have partnerships with different PISPs. e.g. Google Pay was heavily dependent on SBI only initially; now, it has added other PISPs. Paytm provides support of Paytm Bank as PISP, making it faster.</li><li>For the fast-fail checks, different apps are using different ways, like Machine Learning and network loads on different PISPs, and that’s the actual competition to stand out.</li></ul><p>Thanks for reading :)</p><p><strong>References:</strong></p><ul><li><a href="https://support.google.com/pay/india/answer/10331134?hl=en-GB#zippy=%2Cwhats-the-difference-between-a-upi-id-a-bank-account">Learn about smart routing with extra UPI IDs</a></li><li><a href="https://www.npci.org.in/what-we-do/upi/product-overview">UPI: Unified Payments Interface - Instant Mobile Payments | NPCI</a></li><li><a href="https://razorpay.com/blog/what-is-upi-and-how-it-works/">What is UPI (Unified Payments Interface) and How it Works?</a></li></ul><p><a href="https://static.googleusercontent.com/media/nextbillionusers.google/en//tools/3PPI-2021-whitepaper.pdf">https://static.googleusercontent.com/media/nextbillionusers.google/en//tools/3PPI-2021-whitepaper.pdf</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=675faf556f12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Interview Experiences as a Fresher]]></title>
            <link>https://hrishabh01sharma.medium.com/my-interview-experiences-3d6d44297244?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d6d44297244</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[research-internship]]></category>
            <category><![CDATA[experience]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[internships]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Mon, 31 May 2021 07:21:32 GMT</pubDate>
            <atom:updated>2024-08-28T15:28:08.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vVgCiaeIOyaO6wMHS_1jQg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@christinhumephoto?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christin Hume</a> on <a href="https://unsplash.com/s/photos/computer-science-interview?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The article just revolves around all my interview experiences for research internships and on-campus placements</p><p>I would start with the most recent interview and proceed in reverse chronological order.</p><h3>HSBC [On Campus- Full Time]</h3><p>No. of Rounds: 1 Online Test+1 Technical Interview+1 HR Interview</p><p><strong>-&gt; Online Round</strong></p><p><strong>Behavioral</strong>: Situation specific test involving questions to rearrange the actions t</p><p><strong>Job Simulation</strong>- Consisted of 3 Video Questions.</p><p><strong>Coding- </strong>One coding question of very easy difficulty.</p><p><strong>-&gt;Technical Interview</strong></p><p>The interview lasted for around 1 hour 10 minutes.</p><p>The interviewer started asking questions from core computer science subjects.</p><p>The questions were:</p><ol><li>What is SSL? and explain its working and position among the layers?</li><li>Explain encryption, Asymmetric encryption, and Digital Signatures.</li><li>What is virtualization?</li><li>Explain Docker and can we run containers without docker?</li><li>Explain Cloud Orchestration and Kubernetes.</li><li>Reader-Writer Problem from Operating Systems.</li><li>Difference between Semaphore and Mutex.</li><li>What is FSM(Finite State Machine)? Give one real-world example.</li><li>What are sockets?</li><li>Djikstra Algorithm.</li><li>Code for inserting elements in the Linked List.</li></ol><p><strong>-&gt; HR</strong></p><ol><li>Tell me about yourself.</li><li>Explain your best project.</li><li>Tell me something that is not on your resume.</li><li>What are good work ethics according to you?</li><li>Opinion about negative feedback.</li><li>The most difficult situation in your life.</li></ol><h3><strong>Oracle[On Campus- Full Time]</strong></h3><p>No. of Rounds: 1 Online Test+ 3 Technical Interview Rounds</p><p><strong>-&gt; Online Test</strong></p><p>The test was divided into sections and subsections. You can expect questions from Aptitude, General Mathematics, English Language, Computer Programming.<br>The Computer Programming section was the major one and it consists of questions from various topics like Data structure, DBMS, and more. Questions were asked from a variety of topics like AVL Tree, Threaded Binary Tree, etc.<br>Questions were average but the aptitude and mathematics parts were taking more time.</p><p><strong>-&gt;Technical Interview Rounds</strong></p><p>In the first round, the interviewer started with the introduction and then he asked a coding question that included general mathematics and asked me to optimize it. It was an easy one and they only wanted to check the coding skills. After that, he asked many questions about my resume and my internships. Later he asked some basic questions from DBMS and gave me an average-level SQL query to write, involving joins.</p><p>The second round included two coding questions. The first one was to reverse a string efficiently using recursion and the second one was a code related to the calendar problem. This was an easy round.</p><p>In the third round, an average coding question was asked related to the 2-D array. He also asked some questions from DBMS like different types of joins, how is SQL query executed, foreign keys, etc. Later he asked about my internship projects.</p><h3>ETS Montreal, Quebec, Canada [Part Time, Research Internship]</h3><p>The interview was directly taken by the professor himself. and the interview zoom call lasted for approximately 1 hour.</p><p>The interview began with a basic introduction and my previous work experiences.</p><p>Later on, I was asked to explain my previous internship project and the discussion was shifted to that only, for at least 30 minutes.</p><p>The project was related to the applied research problem of Blockchain Technology, entitled ‘<em>Decentralised Cloud Federation using Blockchain</em>’.<br>I was asked basic questions like how blockchain is suitable for the use case? How you made choice for the right blockchain platform? Why Permissioned Network? What was the ordering service used?</p><p>Are there any chances of unfairness still present in the newly proposed solution? After that, he made some valuable suggestions regarding my approach and showed some inconsistencies and performance drawbacks in the work which really fascinated me.</p><p>Later on, the discussion was shifted to Performace Improvements in Hyperledger Fabric and its current MVCC Architecture.</p><p>The second question was related to my Bachelor’s Thesis, and I explained my work. After that, we discussed a few more projects of mine, which shifted the discussion towards Ethereum, and he asked me about the new Ethereum 2.0.</p><p>I explained the new improvements and we discussed a little bit more about the new changes it will bring.</p><p>Later on, I was asked some questions related to BFT algorithms especially PBFT.</p><p>He also asked me about Federated Learning. As it&#39;s not my domain, I just presented a brief overview of what I knew.</p><h3>Saarland University, Saarbrücken, Germany [Summer Research Internship]</h3><p>At first, I was given a coding assignment, which I need to solve in 24 hours to proceed further.</p><p>The problem statement was simple and related to Public Key Infrastructure and gRPC programming.</p><p>After that I was invited for an interview call by one of the students pursuing a Ph.D. under the supervision of a Professor, I contacted.</p><p>The interview revolved around the assignment’s solution and the approach I used.</p><p>Here is the problem statement:</p><p><a href="https://github.com/Sharma-Hrishabh/gRPC_Validation_Commit_Test">Sharma-Hrishabh/gRPC_Validation_Commit_Test</a></p><h3>IIT Kharagpur [Summer Research Internship]</h3><p>This interview was for an internship at the end of my sophomore year.</p><p>I was given two tasks:</p><ol><li>To establish a hyperledger fabric network such that different organizations are different physical machines.</li><li>Writing a chaincode for hyperledger fabric auction application.</li></ol><p>After that, I was invited for a phone interview. It involved basic questions and terminologies related to blockchain, like</p><ol><li>What is a permissioned blockchain network?</li><li>What is different between Bitcoin and Hyperlegder Fabric?</li><li>What is proof of work?</li><li>What is cloud computing?</li><li>Discussion on resume projects.</li></ol><p>That’s all, I wanted to share :) Arigato!</p><p>Ps: The interviews mentioned above are the ones in which I got a positive response. Will share the negative response interviews in another article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d6d44297244" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Changes in Google Summer of Code(GSoC) 2021]]></title>
            <link>https://hrishabh01sharma.medium.com/changes-in-google-summer-of-code-gsoc-2021-57220a467a6a?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/57220a467a6a</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gsoc2021]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Thu, 29 Oct 2020 11:14:37 GMT</pubDate>
            <atom:updated>2020-10-30T09:55:19.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*8DG-Q7Vkan5wx2NQ6YsjEQ.png" /></figure><p>Google Summer of Code program has always been popular among university students to kick start their journey to open-source software development.</p><p>For the readers who are hearing about this program for the first time, GSoC is a program for students in which they spend their summers working on some open-source projects of some organization selected under the program. The selected students are also provided mentors for the guidance needed during the program.</p><p>There are tonnes of articles already available on the internet to know more about the program. Then, why I am writing this one?</p><p>The reason is- Google has introduced some big changes in the GSoC program from 2021.</p><p>So, let’s discuss, what is different in GSoC 2021?</p><ol><li><strong>Reduction of Working Hours</strong>:</li></ol><p>Earlier the official time commitment for GSoC used to be around 40 hours/week. But, it varied from one organization to another. So, an average of <strong>30 hours/week </strong>was required. Now, the official commitment has been reduced to <strong>18 hours/week </strong>only. The official announcement says, “Starting in 2021, students will be focused on a 175-hour project over a 10-week coding period.”</p><p>See the detailed timeline here:</p><p><a href="https://summerofcode.withgoogle.com/how-it-works/#timeline">https://summerofcode.withgoogle.com/how-it-works/#timeline</a></p><p>2. <strong>Inclusion of Licensed Coding Bootcamp enrolled Students in the program:</strong></p><p>Earlier only the university students could participate in the program. But from 2021, the students enrolled in licensed coding schools can also participate.</p><p>3. <strong>Reduction in the number of evaluations during the GSoC:</strong></p><p>Till GSoC 2020, the students were supposed to pass three evaluations. But from 2021, only two evaluations will be there, and you need to pass them for the successful completion of Google Summer of Code.</p><p>4. <strong>Reduced Stipends</strong>:</p><p>Although the official stipends have not been released yet, there will be some cut off in the amount of stipend.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUKWxGMEPjRwCA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FUKWxGMEPjRwCA%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FUKWxGMEPjRwCA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/82ecba03fd0190a8b6098c03da3eba21/href">https://medium.com/media/82ecba03fd0190a8b6098c03da3eba21/href</a></iframe><p>Good Luck, if you are aiming for GSoC 2021 !!</p><p>Thanks for reading. Leave some claps, if this was informative.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57220a467a6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain and DLT- Are They Same?]]></title>
            <link>https://medium.com/bansc/blockchain-and-dlt-are-they-same-d51d21107cbc?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d51d21107cbc</guid>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[distributed-ledgers]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Sun, 20 Sep 2020 16:38:45 GMT</pubDate>
            <atom:updated>2020-09-20T16:42:33.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6MaLH9KyUoC88YzpFv5JQ.jpeg" /></figure><p>Generally, people have misconceptions about the terms- Blockchain and Distributed Ledger Technology(DLT). They consider Blockchain and DLTs as the same thing. But this is not the case.</p><p>Distributed Ledger Technology is a distributed database, similar to a standard Blockchain. However, the ways data is stored in the database, and different nodes achieve consensus could be different.</p><p>Blockchain is just a “subset” of the DLT family in which data is stored in the form of blocks, and each block except the first block(the genesis block), holds the hash of its previous block. Thus, forming a chain and justifying the name ‘Blockchain.’</p><p>However, there are many ways in which data can be stored in these distributed databases, aka DLTs, e.g., DAGs(Directed Acyclic Graphs), Hashgraph, or can be spread among various nodes(Holochain).</p><p>So in the most concisely descriptive lines, Blockchain is a DLT, but all DLTs are not Blockchain.</p><p>—</p><p>No doubt they are just the piece of all, there is a lot more we haven’t noticed yet.</p><p><strong>Blockchain and Network Security Circle</strong> is an Open-community of students and professionals, to develop and discuss together the Future of the Internet. A community with the sole approach of fostering Blockchain and related domains keeping the delicate and crucial handles in check.</p><p>We invite everyone across the world towards creating a better internet we’ll be using</p><p><strong>Apply for membership/Know more</strong><br><a href="https://www.notion.so/BaNSC-Public-Announcement-c940ec9c09ea4154932e23e7ce4f46ae">https://www.notion.so/BaNSC-Public-Announcement-c940ec9c09ea4154932e23e7ce4f46ae</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d51d21107cbc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bansc/blockchain-and-dlt-are-they-same-d51d21107cbc">Blockchain and DLT- Are They Same?</a> was originally published in <a href="https://medium.com/bansc">BaNSC</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC 2020 with OpenSCAD]]></title>
            <link>https://hrishabh01sharma.medium.com/gsoc-2020-with-openscad-ccc03f547203?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccc03f547203</guid>
            <category><![CDATA[cad]]></category>
            <category><![CDATA[openscad]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[gsoc]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Sat, 05 Sep 2020 05:52:32 GMT</pubDate>
            <atom:updated>2023-11-09T05:19:33.664Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google Summer of Code 2020 with OpenSCAD</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ll7w2u1Ut6XA2k9PnMjNUg.png" /></figure><h3>About the Project</h3><p>The project is focussed on enhancing OpenSCAD GUI by adding some new features and widgets, suggested by the OpenSCAD Community.<br>The following enhancements were proposed for working on during the GSoC 2020 period.</p><ul><li>Implementing User-Defined Shortcut Feature through GUI</li><li>Number Scroll via Mouse Wheel in the Text Editor</li><li>Enhanced Error Reporting &amp; a new Error-Log Widget</li></ul><h4>The following PRs have been made during GSoC-</h4><ul><li>Shortcuts GUI: <a href="https://github.com/openscad/openscad/pull/3338">https://github.com/openscad/openscad/pull/3338</a></li><li>Number scroll by mouse: <a href="https://github.com/openscad/openscad/pull/3369">https://github.com/openscad/openscad/pull/3369</a></li><li>Better Error Reporting &amp; a separate Error Log: <a href="https://github.com/openscad/openscad/pull/3392">https://github.com/openscad/openscad/pull/3392</a></li></ul><p>Mentors: Ryan Colyer — @<a href="https://github.com/rcolyer">rcolyer</a> , Hans Loeblich — @<a href="https://github.com/thehans">thehans</a></p><p><a href="https://brlcad.org/wiki/Google_Summer_of_Code/2020">Development-Log</a></p><h3>Work Done</h3><h3>1. <a href="https://github.com/openscad/openscad/pull/3338">Shortcuts-GUI</a></h3><ul><li>Improving the File-Based Approach for Shortcuts, on which I started working before the commencement of the Coding Period of GSoC.</li><li>A simple JSON file can now be used to override the default shortcuts for various actions in OpenSCAD.</li></ul><p>Format:</p><pre>{<br>     // remove all shortcuts<br>     &quot;action1&quot; : &quot;&quot;,<br>     <br>     // overwrite default shortcut<br>     &quot;action2&quot; : &quot;CTRL-X&quot;,</pre><pre>     // overwrite default shortcut with multikey shortcut<br>     &quot;action3&quot; : &quot;CTRL-X, CTRL-Y&quot;,</pre><pre>     // add shortcut leaving the default one active as default<br>     &quot;action4&quot; : [&quot;DEFAULT&quot;, &quot;CTRL-X&quot;],<br>     <br>     // set multiple shortcuts<br>     &quot;action6&quot; : [&quot;CTRL-X&quot;, &quot;CTRL-Y&quot;],<br>   }</pre><p>Note: JSON File must be placed in UserConfig Path, with name — <strong>shortcuts.json</strong></p><ul><li>Making a GUI for Shortcut Configuration.</li><li>Added a GUI for allowing users to set custom-shortcuts.</li><li>Users can set new shortcuts by selecting the action and pressing the key-sequence.</li><li>Added a search bar at the top of the widget, to search actions by name.</li><li>All the shortcuts can be reset to defaults using the ‘Reset’ button.</li></ul><p>Look and Feel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*BAa7g_WpkdfABGU_.gif" /></figure><p>Future Work:</p><ul><li>A validator for Pressed Key-Sequences.</li><li>Import a file from GUI to the user-config path.</li></ul><h3>2. <a href="https://github.com/openscad/openscad/pull/3369">Number Scroll via Mouse Wheel in Text-Editor:</a></h3><p>This feature will allow the user to scroll the numbers in the text-editor by scrolling the mouse wheel.</p><h4>What has been done:</h4><ul><li>Numerical Values can be changed by mouse wheel scroll with a modifier.</li><li>The modifier can be selected from Editor Preferences.</li><li>The step size can be configured from Editor Preferences.</li><li>The feature can be disabled from Editor Preferences.</li></ul><p>Look and Feel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*0XET9qa3eUPSWscc.gif" /></figure><p>Future Work:</p><ul><li>Disabling Mouse Movements while changing numbers (causing abrupt jump when the Most-Significant-Digit, changes its size)</li><li>Delay Preview Until Done</li></ul><h3>3. <a href="https://github.com/openscad/openscad/pull/3392">Better Error Reporting &amp; a new Error Log Widget</a></h3><p>The work in this phase can be divided into two steps:</p><h4>a. Introducing a new unified method to accept the messages for Errors, Warnings, Trace, etc from different parts of the application:</h4><p>Added a new method LOG() to accept log-messages from different parts and sending them to the console and a new ErrorLog Widget simultaneously.</p><p>Format:</p><pre>LOG(message_group, Location, Document Path, Message, Args.....)</pre><p>e.g.</p><pre>LOG(message_group::Warning,inst-&gt;location(),ctx-&gt;documentPath(),&quot;color() expects numbers between 0.0 and 1.0. Value of %1$.1f is out of range&quot;);</pre><p>** All the old PRINT(), PRINTB(), PRINT_DEPRECATION() statements have been replaced with the new LOG() ones, throughout the source-code.</p><p>** On the suggestion of mentors, changes in the expected output of tests are kept minimum.<br>Some outputs contained a ‘,’ (comma), before location info and some don’t. For working with the new approach, a uniformity was needed. So, after some discussion, the tests containing the outputs with ‘,’ before location info, were overridden to remove it.</p><h4>b. Making a new GUI Widget for logging all the Errors/Warnings kind of messages:</h4><ul><li>A new Dockable Error Log Widget where all the errors/warnings and other messages will be listed in the tabular form.</li><li>The row containing messages are selectable and jump the cursor/caret to the error/warning location inside the text-editor if the location exists.</li><li>An option to Hide/Unhide Error-Log in View menu.</li><li>A filter in the new widget to view messages belonging to a particular group.</li></ul><p>Look and Feel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*-RO7LydFcXvPUsZr.gif" /></figure><h4>c. Hyperlink the messages in the console, with their locations:</h4><p>The messages in the console having an appropriate concerning location in the .scad files are now hyperlinked with their locations. Clicking them will take the caret to the location of concern, inside the text editor.</p><p>Look and Feel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*FjF2O7kloGx6t_-2.gif" /></figure><p>Future Work:</p><ul><li>Old PRINTB() like statements in the PRs which are not yet merged, have to be replaced with a new LOG() method.</li></ul><h3>Testing</h3><ul><li>Testing for GUI Features is done manually, by abusing the GUI Systems and trying different interactions.<br>Feedback from the mentors helped me a lot in bringing new bugs into the notice.</li><li>Testing of the new LOG() method introduced, is done through the already existing test-bed of OpenSCAD, which is ctests.</li></ul><h3>Challenges</h3><ul><li>The biggest challenge for me was to jump from working on one feature to another, because they were quite different in implementation, and it took time for me to understand my tasks, before making significant progress at the start of all the three features.</li><li>While introducing the new LOG() method for messages, most of the tests start failing due to certain differences in the expected output. So, handling those tests made me explore the entire source-code, and it was quite challenging.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccc03f547203" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Squashing the Key Concepts related to Hyperledger Fabric]]></title>
            <link>https://hrishabh01sharma.medium.com/squashing-the-key-concepts-related-to-hyperledger-fabric-d3c1988da197?source=rss-94c9e47a8ba2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3c1988da197</guid>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[permissioned-blockchains]]></category>
            <category><![CDATA[hyperledger-fabric]]></category>
            <dc:creator><![CDATA[Hrishabh Sharma]]></dc:creator>
            <pubDate>Fri, 24 Apr 2020 16:03:45 GMT</pubDate>
            <atom:updated>2020-04-29T21:01:54.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*22-zadMWj6pFLIvFVYbw9g.png" /><figcaption><a href="https://github.com/hyperledger/fabric">https://github.com/hyperledger/fabric</a></figcaption></figure><p>Why did you stop at this blog? Alright, perhaps you are looking for a short-guide to learn about the different components of Hyperledger Fabric. Isn’t It? 😪</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*X1wKQ8gV0-PhAp3R.gif" /></figure><p>Indeed you are at the right place 💖</p><p>I assume you already know about the key concepts of DLTs before you start reading this blog. If this is the case, let’s know more about Hyperledger Fabric.</p><p>This blog is originally published at — <a href="https://www.cevgroup.org/squashing-the-key-concepts-related-to-hyperledger-fabric/">https://www.cevgroup.org/squashing-the-key-concepts-related-to-hyperledger-fabric/</a></p><h3>What is Hyperledger Fabric and does it suits your use-case or application?</h3><p>Hyperledger Fabric is a private and permissioned 🔐 DLT or a Blockchain to be precise, which comes under the umbrella of Linux Foundation.</p><p>As it is permissioned, one can not join or leave the network at any time. The members 👨 of a Hyperledger Fabric network enrol through a trusted Membership Service Provider (MSP), which we will discuss later.</p><p>The reason why it gains a mass adoption in Blockchain Marketplace is its modularity &amp; flexibility. It allows to plug in different consensus algorithms, different database to save the data in ledger, and even allow to use different MSP to enrol users.</p><p>Hence, if you are looking for a Modular Permissioned-Blockchain Enterprise solution, Fabric can be the choice which you will definitely like.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fjs3Zjxbo8TM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Djs3Zjxbo8TM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fjs3Zjxbo8TM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e099bd29d0f6066b15ebba3beb0f62fa/href">https://medium.com/media/e099bd29d0f6066b15ebba3beb0f62fa/href</a></iframe><h3><strong>Architectural Components of Fabric:</strong></h3><p>Like any permissioned blockchain network, Hyperledger Fabric has various actors &amp; components like orders, peers, client applications, MSPs, CAs, etc. Let’s discuss them one by one.</p><ol><li><strong>Membership Service Provider:</strong><br>Any of the actor 👨 in Fabric has an identity &amp; according to the identity, the exact permissions and role of the actor are decided. So, from where do these identities come from and who decide the permissions? Yes, the MSP is the entity that defines rules, permissions and roles of different actors, whose identities have been issued by a valid CA(Certificate Authority).<br>The documentation says:</li></ol><blockquote>MSPs turn verifiable identities issued by CAs into the members of a blockchain network.</blockquote><p>Summing up, an MSP abstracts away the protocols behind issuing certificates, validating certificates, and user authentication with all the cryptographic mechanisms, handled by CAs.</p><p><strong>Note</strong>: Fabric comes with a built-in CA component, called Fabric-CA to allow you to create CA on the blockchain network. However, this component is pluggable and you still have options to choose from other available CAs.</p><p>2. <strong>Peers<br></strong>A peer is a node that hosts instances of the ledger and chaincode in the blockchain network. So, if an application or an admin wants to query the ledger or update the ledger then a connection with a peer is required.</p><p>A peer in the fabric network can hold more than one ledgers, which can be governed by one or more chaincodes.</p><figure><img alt="https://hyperledger-fabric.readthedocs.io/en/release-2.1/peers/peers.html" src="https://cdn-images-1.medium.com/max/796/0*eH8InGWCLAlheSM8.png" /><figcaption><a href="https://hyperledger-fabric.readthedocs.io/en/release-2.1/peers/peers.html">https://hyperledger-fabric.readthedocs.io/en/release-2.1/peers/peers.html</a></figcaption></figure><blockquote>A peer hosting multiple ledgers. Peers host one or more ledgers, and each ledger has zero or more chaincodes that apply to them. In this example, we can see that the peer P1 hosts ledgers L1 and L2. Ledger L1 is accessed using chaincode S1. Ledger L2 on the other hand can be accessed using chaincodes S1 and S2.</blockquote><p><strong>3. Orderer</strong></p><p>An orderer node packages the transactions into a block 📦, which is then sent to peers, and after verification ✔️ appended to the ledger.</p><p>In a fabric network, there are various provisions for the configuration of orderer nodes. We can use a single orderer node (SOLO, deprecated from v2.0) or also a group of orderer nodes can be used to order the transaction and form a block, and this forms an ordering service.</p><p>As Fabric is a permissioned blockchain, and real message passing can take place between the nodes, so it doesn’t depend on probabilistic consensus algorithm for the ordering of transactions like in the case of Bitcoin and Ethereum. So, all you have to do is to use the consensus algorithm provided by the fabric, or you can plug in your own implementation.</p><p><strong>4. Channel</strong></p><p>Channel provides a mechanism for the peer to communicate &amp; transact privately. Conceptually, each of the ledgers in the network is associated with a channel and the peers which have joined the channel can view and transact on that ledger only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*w8Md1jINbHdzru7OxURgMA.png" /><figcaption>Three channels C1, C2 &amp;C3 exists, conceptually shown by black, blue, &amp; orange rectangle.</figcaption></figure><p>In the above case, P1 &amp; P3 have joined blue channel(C2) and black channel(C1) and P2 &amp; P4 have joined the orange channel(C3) and black channel(C1). So, the Blue ledger is maintained by P1 and P3, whereas Orange Ledger is maintained by P2 and P4, but black ledger is maintained by P1, P2, P3 and P4.</p><p>Here is another reference from Fabric’s Documentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z-VdmEfn0nV09ctE" /></figure><p>P1 &amp; P2 have joined channel C1 and thus can access the ledger L1. P2 &amp; P3 have joined channel C2, thus can access ledger L2. The interesting part is peer P2 have joined both the channels, thus can access both the ledgers.</p><p><strong>5. Ledger</strong></p><p>Fabric’s Ledger 📒 is a distributed database with two components -</p><p><strong>World State </strong>— the state of the ledger at a given point in time. So, world state stores the most recent value of assets in the form of key-value pairs.<br><strong>Transaction Log</strong> — records all transactions which have resulted in the current value of the world state; it’s the update history for the world state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_UAh5n7P9MD621m5.png" /><figcaption><a href="https://hyperledger-fabric.readthedocs.io/en/release-2.1/ledger/ledger.html">https://hyperledger-fabric.readthedocs.io/en/release-2.1/ledger/ledger.html</a></figcaption></figure><blockquote><em>A Ledger L comprises blockchain B and world state W, where blockchain B determines world state W. We can also say that world state W is derived from blockchain B.</em></blockquote><p><strong>A Simple Transaction:</strong></p><p>Whenever a transaction is performed, it modifies the world state and the record of the transaction is made in the log of the ledger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/0*iuEyZBEciXWR6aAw" /></figure><p><strong>Note:</strong></p><ul><li>In Fabric, the database associated with the world state is pluggable and comes with two choices LevelDB &amp; CouchDB.</li><li>Transaction log doesn’t need to be pluggable.</li></ul><p><strong>6.Smart Contract &amp; Chaincode</strong></p><p>Smart Contracts are the codes that contain the business logic in the fabric-network. It defines the business cycle of an asset in the world state. So the business logic inside the smart contracts governs all the transactions.</p><p>Here is a pseudo-code smart contract from the documentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cs0CevaC1FxNusDX.png" /><figcaption>Smart Contract ‘Car’ 🚗 defines the business logic to query, transfer and update the ownership of the car, agreed upon by Org1 &amp; Org2</figcaption></figure><p><strong>Smart Contracts</strong> are packaged into the <strong>Chaincode</strong> for deployment on the blockchain-network.</p><blockquote>Think of smart contracts as governing transactions, whereas chaincode governs how smart contracts are packaged for deployment.</blockquote><p>There are also some chaincodes which work on lower-level, to perform the necessary tasks in the blockchain-network, and they are called system chaincodes.</p><p>It is better to cover the chaincodes &amp; transaction life-cycle in a different blog, later on 😺.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*_rgZtWscIjyOklFx.gif" /></figure><p>So that’s it. Thanks for reading.</p><p>If you are facing difficulties in setting up Hyperledger Fabric, refer:</p><p><a href="https://medium.com/@hrishabh01sharma/hyperledger-fabric-v2-1-setting-things-up-76e9f53f264f">Hyperledger Fabric v2.1: Setting Things Up</a></p><p>References:</p><p><a href="https://hyperledger-fabric.readthedocs.io/en/release-2.1/">A Blockchain Platform for the Enterprise - hyperledger-fabricdocs master documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3c1988da197" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>