Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spencergibb/ribbondemo
https://github.com/spencergibb/ribbondemo
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/spencergibb/ribbondemo
- Owner: spencergibb
- License: apache-2.0
- Created: 2015-09-10T17:59:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-11T17:31:50.000Z (about 9 years ago)
- Last Synced: 2024-10-10T05:37:17.132Z (about 1 month ago)
- Language: Java
- Size: 145 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE.txt
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