Blockchain technology is one of the latest innovations that provide a secured, decentralized, distributed database of records of all transaction and digital events. In recent years, blockchain technology is being applied in many powerful applications such as financial services, smart contracts, healthcare, supply chain management, e-voting etc. As blockchain ensures high security, it is being trusted and accepted by many business organizations. Consensus algorithms are the primary component of blockchain technology that maintains integrity and security in blockchain. This paper reviews various blockchain based data sharing architectures and their consensus algorithms that were proposed in the recent years for data sharing security. The importance of consensus algorithms in blockchain, and their advantages and disadvantages are discussed in this paper.