[go: nahoru, domu]

Skip to content

emmanuelneri/fault-tolerant-features

Repository files navigation

fault-tolerant-features


Preparing applications to fail with feature toggle and distributed configurations

Configuration repository: https://github.com/emmanuelneri/fault-tolerant-features-configuration

Preparing environment

Building applications

To build maven applications and generate docker images, run:

./build.sh

Start Environment

Start infrastructure

To start Rabbit and Config Server

./infra-start.sh

After this, Config Server is available on http://localhost:8888/ and Rabbit Management is available on http://localhost:15672.

Start applications

To start API and WEB applications

./applications-start.sh

To execute

Execute ./test-apps.sh to test actives features:

API - Hello: Hello API
Web - Hello: Web API
API - Clients: Feature: Clients inactive.
Web - Clients: Feature: Clients inactive.

To update features configurations you need to configure the Github Webhooks or force the Config Server to update the configurations files with ./monitor-refresh.sh.