Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 883 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 883 Bytes

Reactive HackerNews example

This example is made of a Skip reactive service (in reactive_service/), a Flask web service (in web_service/), a React front-end (in www/), a HAProxy reverse-proxy (in reverse_proxy/), and a PostgreSQL database (in db/).

In order to run it, do:

$ docker compose up --build

In addition to the default configuration which runs a single Skip service, this example can also run the Skip service in a distributed leader-follower configuration, with one leader handling writes and talking to the Postgres DB, and three followers which serve reactive streams to clients, sharing the load of computing and maintaining resources in a round-robin fashion.

This distributed configuration requires only configuration changes, is transparent to clients, and can be run with:

$ docker compose -f compose.distributed.yml up --build