Skip to content

fault tolerant, highly available service for data storage and distribution

License

Notifications You must be signed in to change notification settings

flightstats/hub

Repository files navigation

Read the docs: https://flightstats.github.io/hub/

hub logo

What is the Hub?

The hub is a distributed linked list.
The hub is a messaging system.
The hub is a long term data store.

The hub is like a Key Value Store

with some differences

  • Most KV stores allow mutations. The hub does not.
  • The hub imposes that all item keys always move forward in time
  • The hub offers ordering guarantees to provide consistent answers to time based queries

The hub is like a Messaging system

  • Items are immutable
  • Item keys always increase

and some differences

  • Most messaging systems do not let you access arbitrarily old items
  • Many messaging systems are difficult to cluster
  • Many messaging system require custom clients

How to build hub:

Run ./gradlew build

The above command compiles the code, runs the unit tests and integration tests.~~~~

How to run System tests:

From Local:

  1. Setup hub: a) ./localDocker.sh (from root directory) b) docker run -p 80:80 hub:local

  2. set base.url property in integration-hub.properties

  3. Go to root of hub project source and run below command ./gradlew systemTest -i