Skip to content

fernandobastos/scaling-journey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Install Grenache Grape: https://github.com/bitfinexcom/grenache-grape:

npm i -g grenache-grape
// Start 2 Grapes
grape --dp 20001 --aph 30001 --bn '127.0.0.1:20002'
grape --dp 20002 --aph 40001 --bn '127.0.0.1:20001'

Description

A test application using the Grenache library to demonstrate distributed systems. The application randomly generates buy/sell orders and sends them to random client nodes in the network. THIS IS A POC NOT FULLY WORKING

Installation

  1. Clone the repository
  2. Install dependencies:
    npm install

Running the Application

Run the application:

npm start

Run the order generator on separate terminal:

npm run start:generator

Features

  • Randomly generates buy/sell orders with a unique ID, quantity, and price.
  • Sends generated orders to a randomly selected client node every 5 seconds.

Dependencies

  • axios: For HTTP requests
  • uuid: To generate unique IDs
  • grenache-nodejs-http: Grenache HTTP transport layer
  • grenache-nodejs-link: Grenache link layer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors