Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spencergibb/ribbondemo


https://github.com/spencergibb/ribbondemo

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

# Ribbon Demo

**NOTE: Authentication info `user:password`**

## Setup
* run three instances (`--server.port=9092`, `--server.port=9093`)
* see http://localhost:9091 rotate through
* Run redis on localhost:6379

## service wide server list filter
* `http --auth user:password --form POST :9091/env demo.filterPattern="*:*2"`
* see http://localhost:9091 only 9092
* `http --auth user:password --form POST :9091/env demo.filterPattern=""`
* see http://localhost:9091 rotate through again

## request based filter

* visit http://localhost:9091/?X-Ribbon-Pattern=*:*3
* only 9093

## Spring Session based filter
* see http://localhost:9091 rotate through
* visit http://localhost:9091/filter?pattern=*.*2
* see http://localhost:9091 only 9092
* open http://localhost:9091 in incognito see that it cycles through)
* visit http://localhost:9091/filter?pattern= to reset