Skip to content

An administration interface to fragment event streams

License

Notifications You must be signed in to change notification settings

oSoc20/fast-and-slow

Repository files navigation

Fast and slow

This is the frontend of the Fast and Slow project for Informatie Vlaanderen.

Introduction

When using data provided by others, you will most likely not find the right API to do so. You try to solve this by making a replication of all the data and thus create a replication hell. This not only makes it hard to maintain, but for evolving datasets also makes the data outdated quickly, leading to a huge integration cost for the developer that uses multiple datasets.

The solution to this is making use of event streams. Querying these event streams directly will be fast only for simple questions such as asking for the last few events. In order to allow third parties to also have faster response times for any other query, we need to balance maintenance costs and query performance. This can be done by selecting the right fragmentation strategies for a specific event stream.

This project allows intermediaries to configure such fragmentation strategies. We created a UI on top of this to show how different fragmentations will turn into different querying performance. In order to understand the speed-up that was achieved, we provide a Web page to visualize query results and their performance.

Requirements

  • npm
  • VueJS
  • A valid npm authentication token from Informatie Vlaanderen

Running in a Docker container

Edit the .env file so that the backend url is configured.

docker build -t admin-interface --build-arg NPM_AUTH_TOKEN=<AUTH_CODE> .
docker run -d -p 8080:8080 -it --rm admin-interface

Backend

Server

The backend is a nodeJS server that can be found here. It is handles all communication to the database and is responsible for building and updating the fragmentations.

Database

The databse is a Scylla (cassandra) database. The setup is also discribed on the backend page.

Query interface

You have the possibility to query your event streams with our query interface. This one is running on github pages and can be accessed here.

About

An administration interface to fragment event streams

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published