Home > web3.0 > body text

Which exchanges are ADT coins listed on (how to trade Bitcoin)

WBOY
Release: 2024-07-31 06:03:02
Original
912 people have browsed it

Which exchanges are ADT coins listed on (how to trade Bitcoin)

Whether it is a stock trading system or a digital currency trading system, it is inseparable from the matching trading engine, which is the heart of the trading platform. At the same time, an excellent architectural design will also make the operation, maintenance and continuous development of the trading platform easier. This article summarizes the architectural design of a digital currency trading system based on in-depth research on open source projects.

About the matching trading system

Matching technology mainly develops from database matching technology to memory matching technology. This is because database matching technology is increasingly unable to meet the requirements of financial transactions for high reliability, high performance, strong security, and scalability. and ease of maintenance requirements. The financial (currency) transaction matching system includes the following core modules:

User: The end user entrusts the quotation and quantity, generates the order and sends it to the trading platform.

Gateway: Responsible for collecting user orders and dispatching them to the matching engine.

Matching engine: The core part of the trading system, used to receive orders and implement order matching based on business logic to generate transaction records at the same time, and then give users feedback on transaction results.

Database: used to store orders and transaction records during the transaction process to achieve data persistence.

Message queue: generally used for the transmission of order messages

About technology selection

The technical architecture of an exchange platform mainly considers features such as security, distribution, easy expansion, fault tolerance, low latency, and high concurrency. As well as various options such as circuit breaker mechanism, service registration and discovery, message service, service gateway, security authentication, in-memory database, relational database, etc., the following technology selection was finally formed:

Distributed infrastructure architecture between SpringCloud and Dubbo Choose one, because Spring Cloud is more well-known, Spring Cloud programmers are easier to recruit, which is conducive to the long-term operation and maintenance upgrade of the system. Moreover, Spring Cloud is developed based on Spring Boot and is more friendly, so I chose Spring Cloud. In fact, due to the strong influence of Alibaba, Dubbo is more widely used in China, and different teams can choose according to their own circumstances.

Introducing Hystrix circuit breaker as a fault-tolerant protection module to prevent the failure of a single service from exhausting the thread resources of the entire matching system container and avoiding a large number of cascading failures in a distributed environment. Execute fallback logic when access to dependent services through third-party clients fails, is rejected, times out, or is short-circuited.

Using Eureka as the service registration and discovery center to implement middle-tier services to achieve load balancing and middle-tier service failover.

In the selection of service gateway Spring Cloud Gateway and Zuul, I chose Zuul because the name is shorter.

Introducing the Spring Cloud Security security authentication module for building secure applications and services. Based on Spring Boot and Spring Security OAuth2, Spring Cloud Security can quickly create and implement common security authentication methods, such as single sign-on and tokens. Following and token exchange etc.

Introducing Redis as an in-memory database, which also serves as system data cache and in-memory calculation.

Using MySQL as a relational database, the performance test is very passable, and it is very friendly to programmers who are familiar with MYSQL.

The message queue middleware MQ uses Kafka, which has ultra-high performance.

The above is the detailed content of Which exchanges are ADT coins listed on (how to trade Bitcoin). For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!