Popular science NA public chain (Nirvana): NAC public chain adopts NIO-based Netty to realize the concurrent application of millions of TPS on the chain

Foreword: NA public chain ( Nirvana ) wants to build a practical public chain where "application is king". TPS considerations are one of the priorities of the preliminary work. It can be said that the ceiling of TPS value will determine the application created on its public chain. Short board height.

The full name of TPS in English is Transaction PerSecond , which is used in digital currency. TPS is the system throughput. It is the measurement unit of software test results. A value represents the process in which a client sends a request to the server and the server responds. Generally speaking, it is an important indicator to measure the processing capacity of the system and reflects the performance of the system.

 

If the TPS concurrency per second is too low, it is easy to cause serious network congestion, which makes the blockchain unable to land in the high-value and high-concurrency business area. For example, due to the low concurrency of TPS per second, Bitcoin and Ethereum both have high transaction fees, long confirmation times, and poor scalability. As a result, the Bitcoin community has split and hard forks have become the norm.

 

In the blockchain industry, TPS has always been a technical parameter that has attracted much attention. If the TPS concurrency per second is too low, it is easy to cause serious network congestion. For high-concurrency business applications on the blockchain, it has already suffered fatal injuries in the early landing. For example, Bitcoin and Ethereum used to have problems such as high transaction fees, long confirmation time, and poor scalability due to the low concurrency per second of TPS .

 

In order to win a place in the blockchain industry, many coins are currently making a fuss on TPS , hoping to improve TPS through effective methods . To 2018 Nian, Fabric can go to thousands of TPS , and graphene series can go to thousands of TPS , and Ether Bitcoin Square Off-chain scheme theoretically unlimited support of TPS .

 

In Nirvana 's white paper, the technology used in its network communication is also described. Since its establishment, Nirvana , which aims to create a more valuable and more operationally feasible public chain application ecology , has successively adopted a series of brand-new technical support solutions for public chain construction, and its network communication is also one of the focuses.

 

It is understood, Nirvana adopted based NIO of Netty . NIO has cache-oriented operations, and also uses virtual memory technology, which can perform batch operations on client requests . Netty based on NIO technology not only retains the characteristics of nio , but also optimizes the packaging, which makes the operation more convenient. The performance server and client have unique advantages. The current Netty has rich functions, built-in multiple data encoding and decoding functions, and supports multiple network protocols; its scalability is also very good, and the network communication can be flexibly extended through the ChannelHandler component it provides . At present, Netty has passed the test of many commercial applications, and has been widely used in the Internet field, big data distributed computing field, game industry, communication industry, etc. Some well-known open source components in the industry are also based on Netty's construction framework.

 

The data throughput of network communication determines whether the application scenario can run normally and efficiently. Nirvana mining docking chase Wei 13622951 wants to build a practical public chain that "application is king". TPS considerations are one of the priorities of the preliminary work. It can be said that the ceiling of the TPS value will determine the short board height of applications created on its public chain. With this guarantee, at least there are more possibilities for expansion in the search for application directions and scenarios, which is one of the most important prerequisites for creating an excellent practical public chain.


Guess you like

Origin blog.51cto.com/15137935/2676934