Preparing applications to fail with feature toggle and distributed configurations
Configuration repository: https://github.com/emmanuelneri/fault-tolerant-features-configuration
To build maven applications and generate docker images, run:
./build.sh
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
.
To start API and WEB applications
./applications-start.sh
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
.