https://github.com/mageddo/spring-web-reactive
https://github.com/mageddo/spring-web-reactive
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/mageddo/spring-web-reactive
- Owner: mageddo
- Created: 2017-11-09T21:42:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-02T18:10:17.000Z (over 8 years ago)
- Last Synced: 2025-02-02T01:41:14.031Z (over 1 year ago)
- Language: Java
- Size: 69.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### Running and testing
$ ./gradlew run
$ curl -s -XGET http://localhost:8080/users/1 | jq .
#### Reference
* https://dzone.com/articles/spring-5-reactive-web-services
* https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html
* https://spring.io/blog/2016/07/28/reactive-programming-with-spring-5-0-m1
* https://github.com/poutsma/web-function-sample/blob/master/src/main/java/org/springframework/samples/web/reactive/function/DummyPersonRepository.java
* https://dzone.com/articles/spring-reactive-samples
* https://docs.spring.io/spring-framework/docs/5.0.0.M1/spring-framework-reference/html/web-reactive.html
#### Testing performance at docker in a limited resources environment
Connect using visualvm `adding jmx connection`
```bash
JAVA_OPTS='-Xmx40m -Xss256k -XX:MaxMetaspaceSize=60m' &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=9010" &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.local.only=false" &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.password.file=passwd.properties" &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.access.file=access.properties" &&\
JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false" && \
export JAVA_OPTS &&
./spring-web-reactive/bin/spring-web-reactive
```