<?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 Harshil Sarwala on Medium]]></title>
        <description><![CDATA[Stories by Harshil Sarwala on Medium]]></description>
        <link>https://medium.com/@harshilsarwala?source=rss-710645316bd7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Harshil Sarwala on Medium</title>
            <link>https://medium.com/@harshilsarwala?source=rss-710645316bd7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 14:15:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harshilsarwala/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[International Trade Finance using Blockchain — THE ARCHITECTURE!]]></title>
            <link>https://medium.com/@harshilsarwala/international-trade-finance-using-blockchain-the-architecture-3064158cccb8?source=rss-710645316bd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/3064158cccb8</guid>
            <category><![CDATA[digital]]></category>
            <category><![CDATA[digital-transformation]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[hyperledger]]></category>
            <category><![CDATA[bigchaindb]]></category>
            <dc:creator><![CDATA[Harshil Sarwala]]></dc:creator>
            <pubDate>Fri, 28 Sep 2018 18:07:38 GMT</pubDate>
            <atom:updated>2018-09-28T20:48:45.694Z</atom:updated>
            <content:encoded><![CDATA[<h3>International Trade Finance using Blockchain — THE ARCHITECTURE! (Hyperledger Fabric and BigchainDB)</h3><p>Before getting forward with the architecture directly, let us try to understand the typical trade finance cycle with the help of the following figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6FcEDH7LKFGW6VAIUOjKIA.jpeg" /></figure><p>1) Contract of Sale between Seller and Buyer.</p><p>2) Buyer gives an application for issuing L/C to Issuer Bank.</p><p>3) Issuer Bank prepares L/C and gives it to the Advisor Bank.</p><p>4) Advisor Bank informs the Seller about the receipt of L/C and the Seller initiated Shipment with 3 B/Ls (Industry Standard).</p><p>5) Ship Master will inspect the cargo, sign the B/L and give it back to the Seller,</p><p>6) Seller will give the B/Ls to Advisor Bank. Advisor Bank will give B/L to Issuer Bank. Issuer Bank will give the B/L to the Buyer.</p><p>7) Buyer will go to the Port of Discharge, provide the B/L to the Ship Master. After inspecting the B/L, Ship Master will release the cargo.</p><p>These 7 steps explain a typical trade finance cycle.</p><blockquote><strong><em>ARCHITECTURE</em></strong></blockquote><p>Now we intend to design a blockchain based architecture for this International Trade Finance Activity where each step will represent the logic for respective Smart Contract.</p><p>Here we will be using Hyperledger Fabric as a business logic platform and BigchainDB integrated with MongoDB as a blockchain based database facility.</p><p>BigchainDB is a blockchain based database equipped with the features like being decentralized, query-able, immutable, native support or multi assets, Byzantine Fault Tolerant, and many more. However, BigchainDB being a blockchain database, lacks the processing layer or the business logic (Smart Contract) layer for the assets it stores. While we have platforms like Hyperledger Fabric, which excel at providing the Smart Contract services, they are not the platforms which provide user-friendly querying functionality the way BigchainDB provides.</p><p>So for effective operations of creating the Smart Contracts for its use across the industries, which in our case is the international trade finance industry, integrating Hyperledger Fabric which provides the Business logic layer and BigchainDB which provides excellent functionalities of a database and the distributed ledger technology, together provides an astounding solution for the digital future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOc5w5mJMI321WwpUtSGhA.jpeg" /></figure><blockquote><strong>Understanding the components of the Architecture:</strong></blockquote><p>1) Decentralized Application (DApp)</p><p>In simple terms, it is an application which is decentralized, which means, its backend code runs on a decentralized peer to peer network.</p><p>2) Chain Service</p><p>It is a Hyperledger Fabric service which connects frontend DApp to the Chaincode.</p><p>3) Chaincode – Hyperledger Fabric</p><p>It is where the business logic for the smart contract is programmed.</p><p>4) Oracle</p><p>It is a service component that connects Hyperledger Fabric Chaincode to an external data source like BigchainDB using REST API.</p><p>5) MongoDB</p><p>Integrated with BigchainDB, it stores operational data for the business process (Chaincode) under execution, which in our case is the data pertaining to the International Trade Finance Activity.</p><p>6) BigchainDB</p><p>It stores the historical data of all the International Trade Finance Activities which have been executed using the logic in Hyperledger Fabric Chaincode.</p><blockquote><strong>Understanding the working of the Architecture:</strong></blockquote><p>1) All the Smart Contracts, as discussed earlier, to be executed during the process of trade finance are stored in the form of assets in MongoDB which is integrated with BigchainDB. Each asset is identified by its asset ID.</p><p>2) A Decentralized Application (DApp) which is the frontend decentralized application to be used by all the stakeholders in the chain, iterates the chain service with an asset ID of a respective smart contract in the BigchainDB integrated MongoDB, which is further processed in the Hyperledger Fabric Chaincode.</p><p>3) The Hyperledger Fabric Chaincode processes the logic and using the inbuilt functionality of REST API, calls the Oracle component.</p><p>4) It is important to note that the smart contracts cannot fetch the external data on their own, so oracle component like Oraclize help fetch data from external sources like BigchainDB using REST API based service.</p><p>5) The Hyperledger Fabric Chaincode calls the Oracle component with the query to run on the database using asset ID and the code to process after the query (also called the callback, which are stored in the in-memory queue of the Oraclize.</p><p>6) The Oracle then queries MongoDB. Once the asset data is returned, the Oracle processes the returned data as per the logic queued in the in-memory of Oracle.</p><p>7) After the callback logic is executed, the result is returned to the chain service, which further sends it to Chaincode for processing or storage.</p><p>Here, MongoDB stores and transacts the operational data, i.e., the data of the trade in process, while BigchainDB keeps a historical record of all the trades which have been executed previously.</p><p>Following this architectural logic, all the contractual steps as mentioned above are executed in a deterministic way.</p><p>Reference:</p><p>“BigchainDB integrates with Hyperledger Fabric” @gautamdhameja https://blog.bigchaindb.com/bigchaindb-hyperledger-fabric-integration-4c65e5811671</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3064158cccb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blockchain and MongoDB, the new Data Warehouse?]]></title>
            <link>https://medium.com/@harshilsarwala/blockchain-and-mongodb-the-new-data-warehouse-57b35e6f64c2?source=rss-710645316bd7------2</link>
            <guid isPermaLink="false">https://medium.com/p/57b35e6f64c2</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Harshil Sarwala]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 09:32:20 GMT</pubDate>
            <atom:updated>2018-06-20T09:32:20.388Z</atom:updated>
            <content:encoded><![CDATA[<p>In the era where data has become the new gold, ways of managing it for analysis and decision making has become a primary point of concern among the organizations. Where we have databases for the operational functions which undergo frequent changes on the basis of number of transactions taking place regularly, on the other side we have Data Warehouses (DW) which avails us the generalized and consolidated data in the multidimensional view. Now with the advent of technologies like Blockchain and No-SQL and distributed databases like MongoDB, in this article we will have a look at how it can revolutionize the way in which data is managed and stored for critical analysis and forecasting purposes.</p><p>Before understanding how technologies like Blockchain can revolutionize the systems, let us first understand the concepts of Data Warehouse.</p><p>A Data Warehouse is basically a subject-oriented, integrated, time variant and non-volatile collection of data stored for the purpose of analysis to be done for management’s effective decision making.</p><p>· Subject Oriented: It is subject oriented because it provides information around the subject and not the company’s current operations. It majorly focuses on modelling and analysis for decision making.</p><p>· Integrated: A Data Warehouse is formed by consolidating and integrating data from different sources of information, which makes the analysis for data more effective.</p><p>· Time Variant: Data accumulated in Data Warehouse provides information form the historical point of view and is identified with a particular time period.</p><p>· Non-Volatile: It means that the previous data is not erased when new data is added to it. A DW is kept separate from the operational database and the changes in the operational database is not reflected in the Data Warehouse.</p><p>This is how a typical Business Intelligence architecture would look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u6SJRAw2vxpKb5v4-Do8fw.jpeg" /></figure><p>Let us try to understand the limitations of a typical Data Warehouse:</p><p>· Maintenance costs: Data warehouses are high maintenance systems. Any reorganization of the business processes and the source systems may affect the data warehouse and it results high maintenance cost.</p><p>· Data Security: An important concern of Data warehouses is the security of data. Primarily, Data warehouses are marked for software applications for service. This restricts your data security as the data which has been implemented locally might be sensitive only for a certain department.</p><p>· Data Rigidity: The type of data imported into a data warehouse is often static data sets which have the least flexibility to generate specific solutions. For the data to be used, it has to be transformed and cleansed which could take several days or weeks.</p><p>· ETL Processing Time: Organizations often fail to estimate the time required for extracting, transforming and loading of consolidated data in the Data Warehouse, the consequences of which could be extreme.</p><p>Blockchain is a decentralized and distributed ledger technology which is used to record information across the network in an immutable way. Following are the features of the blockchain technology in brief:</p><p>· It is a decentralized system in which there is no central authority controlling the system.</p><p>· It is distributed ledger technology which means that any information recorded on the chain will be reflected across the network and that all the nodes in the network will maintain a common ledger.</p><p>· All information added on the block is chronologically ordered and is time stamped.</p><p>· Cryptographic hashing makes the records on blockchain immutable.</p><p>· Records on blockchain are stored in an irreversible and auditable way, thereby following the CRU (Create-Read-Update) protocol.</p><p>Taking it further, we will look at how No-SQL databases and Blockchain database platforms along with analytics applications can take over on a traditional Data Warehouse, thereby eliminating some of the operational inefficiencies that persists in the regular Business Intelligence system like the process of ETL itself. In this article, as a Blockchain database platform for Data Warehousing, we will be using BigchainDB which is the most popular Blockchain Database Service and here in our case it will be used for historical data storage; for storage of operational non-structured data we will be using a distributed NoSQL database service, i.e. MongoDB, which will be further integrated with Knowi for analysis of Operational and historical data in MongoDB and BigchainDB respectively.</p><p>To integrate the complete system on an enterprise level, we have established Hyperledger Fabric as an Enterprise Blockchain Platform which will be operating on Microsoft Azure (IaaS) platform, the discussion of which has been kept out of the scope of this article.</p><p>To understand it further, we can refer to the following figure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LS-LvWYLYO2V-cXQHjHXpQ.jpeg" /></figure><p>Following are the features of the above mentioned system which makes it operationally more efficient and secured:</p><p>· BigchainDB as a Data Warehouse will act as a decentralized network which will have no single point of control and hence, no single point of failure.</p><p>· BigchainDB which is the Blockchain database, provides the immutability feature which makes the data tamper resistant, i.e. the data once stored, can’t be changed or deleted using the cryptography feature.</p><p>· All the data in the chain will be chronologically stored with a timestamp.</p><p>· Another very important feature that BigchainDB provides is that of high scalability which would be a difficult task in the case of Data Warehouses.</p><p>· Another important feature it provides is that of rich query. On BigchainDB, it is possible to write and run any MongoDB query to search the contents of data stored in the chain.</p><p>· MongoDB, which is the distributed NoSQL database, will be used for the analysis of operational data which will be integrated with BigchainDB for the historical storage of the same as shown in the figure 2.</p><p>· Up to one third of the nodes in the network can be experiencing arbitrary faults and the rest of the network will still come to consensus on the next block, making BigchainDB Byzantine Fault Tolerant.</p><p>· BigchainDB being a Blockchain based database can significantly reduce the maintenance and IT costs which are expected to be very high in the case of Data Warehouses.</p><p>· Data Security will no more be a problem with BigchainDb providing the feature of immutability to secure the data which will be cryptographically hashed.</p><p>· Knowi combines Business Intelligence with integrated machine learning for advanced analytics, reporting and visualizations on structured and unstructured data.</p><p>· Powerful analytics tools like Knowi can directly eliminate the time needed in Extracting-Transforming-Loading the data into the warehouse, also providing the native support to MongoDB databases.</p><p>· Excessive number of queries posed at a time by the staff will significantly increase the Data Warehouse server load, this system is bound to eliminate the same.</p><p>Thus, MongoDB – BigchainDB – Knowi together provides the features of decentralizing the complete set of data, making it immutable &amp; readily available across the network, eliminating the complexities of operating data and making it future compliant.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57b35e6f64c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>