Skip to content

Commit

Permalink
CME-23 upgrade to Spring Boot 3 (#565)
Browse files Browse the repository at this point in the history
* CME-23 upgrade to Spring Boot 3

* Bump PMD and address issues

* remove CVE suppressions
  • Loading branch information
rapolaskaseliscgi authored Oct 22, 2024
1 parent cc2cec6 commit 836954e
Show file tree
Hide file tree
Showing 64 changed files with 837 additions and 1,162 deletions.
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The api is a working application with a setup. It contains:
* swagger configuration for api documentation ([see how to publish your api documentation to shared repository](https://github.com/hmcts/reform-api-docs#publish-swagger-docs))
* code quality tools already set up
* integration with Travis CI
* Hystrix circuit breaker enabled
* MIT license and contribution information
* Helm chart using chart-java.

Expand Down Expand Up @@ -208,29 +207,6 @@ docker image rm <image-id>

There is no need to remove postgres and java or similar core images.

## Hystrix

[Hystrix](https://github.com/Netflix/Hystrix/wiki) is a library that helps you control the interactions
between your application and other services by adding latency tolerance and fault tolerance logic. It does this
by isolating points of access between the services, stopping cascading failures across them,
and providing fallback options. We recommend you to use Hystrix in your application if it calls any services.

### Hystrix circuit breaker

This template API has [Hystrix Circuit Breaker](https://github.com/Netflix/Hystrix/wiki/How-it-Works#circuit-breaker)
already enabled. It monitors and manages all the`@HystrixCommand` or `HystrixObservableCommand` annotated methods
inside `@Component` or `@Service` annotated classes.

### Other

Hystrix offers much more than Circuit Breaker pattern implementation or command monitoring.
Here are some other functionalities it provides:
* [Separate, per-dependency thread pools](https://github.com/Netflix/Hystrix/wiki/How-it-Works#isolation)
* [Semaphores](https://github.com/Netflix/Hystrix/wiki/How-it-Works#semaphores), which you can use to limit
the number of concurrent calls to any given dependency
* [Request caching](https://github.com/Netflix/Hystrix/wiki/How-it-Works#request-caching), allowing
different code paths to execute Hystrix Commands without worrying about duplicating work

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
Expand Down
2 changes: 1 addition & 1 deletion bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ perl -i -pe "s/reform.demo/reform.$package/g" build.gradle
git mv src/integrationTest/java/uk/gov/hmcts/reform/demo/ src/integrationTest/java/uk/gov/hmcts/reform/${package}
git mv src/main/java/uk/gov/hmcts/reform/demo/ src/main/java/uk/gov/hmcts/reform/${package}

declare -a headers_to_delete=("Purpose" "What's inside" "Plugins" "Setup" "Hystrix")
declare -a headers_to_delete=("Purpose" "What's inside" "Plugins" "Setup")

# Clean-up README file
for i in "${headers_to_delete[@]}"
Expand Down
Loading

0 comments on commit 836954e

Please sign in to comment.