Giter Club home page Giter Club logo

thunderexchange's Introduction

Warning:boom:!

This is my university project and there is no guarantee to the quality of the system, please use for learning purpose only ๐ŸŽ“!

Introduction

ThunderExchange is an exchange system build with mainstream technologies such as Spring cloud, Vertx, Disruptor etc. It features a gateway module which serves as the HTTP server for the front-end, a order collector and maching core which sits in a centralized location such as a colocation centre.

The system consists of two parts, the regional part is spread across the globe and function as a regional gateway to accept orders that are nearest to client location, the colocation part is where the exchange sits.

This two part design guarantees scalability, reliability and high performance in the following way:

  • ๐Ÿ‘ช Scalability : To handle more client, just add more gateways and order collectors.
  • ๐Ÿผ Reliability: Traffic surge resistance and very little service down-time enabled by RAFT mechanism.
  • ๐Ÿš€ High performance: Lockless multithreading with native thread-safe data structure provides blazing fast๐Ÿ˜ป order matching.

System Structure

Alt text

The System consists of 5 main parts, namely: App Service , Socket GateWay , Order Queue, Matching Engine and Publisher. Each of them serve a distinct function, with carefullly decoupled communications, they enable scability and high performance.

App Service:

Build with Spring framework, which is a popular Java application framework. It provides a comprehensive set of features for building applications, including a lightweight container, support for dependency injection, and tools for managing transactions and data access. Spring makes it easy to create complex, enterprise-grade applications that are modular, reusable, and easy to test.

The App Service module handles request from Frontend through REST protocol, this includes accounting functions such as query account balance, trading functions such as placing orders, view positions etc. More importantly, it serve as a consumer of MQTT for trades that have been published by the publisher module.

thunderexchange's People

Contributors

jandoetian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.