<commit_before># akka-exchange
A demonstration multi-node Clustered Akka application including Spray, Sharding, Data Duplication (aka Replication), and Akka TCP / Streams.

This document outlines the design and usage of the project.

  * [System Design](#system-design)
    - [Architecture Overview](#architecture)

## System Design

The design of the system is to look sort of like a real live online trading exchange. Users are able to trade via both a Web interface; for larger customers such as banks a TCP/IP trade protocol is also provided.

Two types of security are tradeable:
  - Stocks 
    * Identifier: [Ticker Symbol](https://en.wikipedia.org/wiki/Ticker_symbol)
    * Exchange Type: i.e., FTSE, NYSE, NASDAQ, etc.
  - Bonds 
    * Identifier: [CUSIP](https://en.wikipedia.org/wiki/CUSIP)
    * Bond Type: i.e., Municipal, Corporate, Treasury, etc

### Architecture
The overall architecture is outlined roughly in the following diagram. Specific detail is found within.
![](design/akka-exchange.png)

The system utilizes Akka clustering, and is broken into several components. Each of the cluster nodes, uses several plugins which demonstrate various Akka Clustering features.

  - [Frontend Node](#frontend): The Rest API [akka-http / seed node(s)]
  - [Trade Ticker Node](#trading-users): Replicated Feed of completed trades/current prices. Utilizes Data Distribution (aka replication)<commit_msg>Forgot FTSE is a index, not an exchange.<commit_after># akka-exchange
A demonstration multi-node Clustered Akka application including Spray, Sharding, Data Duplication (aka Replication), and Akka TCP / Streams.

This document outlines the design and usage of the project.

  * [System Design](#system-design)
    - [Architecture Overview](#architecture)

## System Design

The design of the system is to look sort of like a real live online trading exchange. Users are able to trade via both a Web interface; for larger customers such as banks a TCP/IP trade protocol is also provided.

Two types of security are tradeable:
  - Stocks 
    * Identifier: [Ticker Symbol](https://en.wikipedia.org/wiki/Ticker_symbol)
    * Exchange Type: i.e., NYSE, NASDAQ, et. al.
  - Bonds 
    * Identifier: [CUSIP](https://en.wikipedia.org/wiki/CUSIP)
    * Bond Type: i.e., Municipal, Corporate, Treasury, etc

### Architecture
The overall architecture is outlined roughly in the following diagram. Specific detail is found within.
![](design/akka-exchange.png)

The system utilizes Akka clustering, and is broken into several components. Each of the cluster nodes, uses several plugins which demonstrate various Akka Clustering features.

  - [Frontend Node](#frontend): The Rest API [akka-http / seed node(s)]
  - [Trade Ticker Node](#trading-users): Replicated Feed of completed trades/current prices. Utilizes Data Distribution (aka replication)
{'fraction_non_alphanumeric': 0.08567415730337079, 'fraction_numerical': 0.0, 'mean_word_length': 4.335205992509363, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '154109', 'n_tokens_mistral': 805, 'n_tokens_neox': 748, 'n_words': 338}