EOS launches Demux: Know how the new tool makes life easier for dapp developers
Block.one, the blockchain technology company behind EOS [EOS], launched a new open source development tool – Demux – on Tuesday. Demux, the company claims, simplifies complex decentralized app (dapp) development for the EOSIO community by providing a simple bridge to traditional database management systems.
The tool is inspired by Facebook’s Flux Architecture, and Redux as well. The main use of Demux is it allows blockchain events to be automatically updated to a Mongo or Postgres SQL database. As more people are familiar with these packages, it makes the workflow easier and also cheaper, as the interactions with the main ledger will be lesser.
While developers have been storing and retrieving indexed data for decades in traditional database environments, it is not that easy when it comes to blockchain nodes that have a limited query interface.
The Block.one developers team states two problems that occur when building complex dapps and retrieving data directly from the blockchain.
1. The query interface used to retrieve the indexed data is limited. Complex data requirements can mean you either have to make an excess number of queries and process the data in your DAPP, or you must store additional sorted data on the blockchain itself.
2. Additionally, scaling your query load means requiring more blockchain endpoint nodes, which can be expensive.
Demux comes to the rescue here by off-loading storage and queries to a preferred database like MongoDB or Postgres. The front-end dapp can then query the database with a suitable API (REST or GraphQL) thereby limiting direct interaction with the blockchain for retrieving data. This process lowers operating costs as it lessens the amount of data needed to be stored on RAM.
About EOS [EOS]
EOS [EOS] is one of the most hyped cryptocurrencies since the time it was first announced in May 2017 by founder Dan Larimer. A giant advertisement was put up over the Times Square in New York before the ICO was launched on June 26th last year. The EOS ICO was the longest running ICOs of all time which ran for 350 days and completed on June 1 this year. A total of $185 million in ETH was collected in the first 5 days and more than $4 billion was collected throughout the ICO, also making it one of the most successful ICOs of all time.
Image via Shutterstock
Join our Telegram group