8000 GitHub - bis-java-git/rest-prime-service: Rest service for prime numbers
[go: up one dir, main page]

Skip to content

bis-java-git/rest-prime-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please read following comments to get started

To generate a rest-prime-service.jar file, navigate to the project folder and type:

mvn clean install

This will run all the Unit tests, Performance test and Integration test and build a rest-prime-service.jar file

To run rest-prime-service.jar file

Navigate to the folder where rest-prime-service.jar is resident mostly would be in target folder unless settings are different

java -jar rest-prime-service.jar -XX:+PrintGCDateStamps -verbose:gc -XX:+PrintGCDetails -Xloggc:"./logs/gc.log"

Checking prime rest service

http://localhost:8888/primes/15/
http://localhost:8888/primeswithstream/15/
http://localhost:8888/primeswithparallelstream/15/
http://localhost:8888/primeswithforkandjoin/15/
http://localhost:8888/primeswithforkandjoinwithstream/15/

Checking prime rest service health check

http://localhost:8889

This will give operation menu with following options

  • Metrics
  • Ping
  • Threads
  • Healthcheck - This will check whether rest-prime-service is healthy or no
  • Healthcheck

    Some rest prime serivces to try with curl command

    curl_script.bat is located in the scripts folder


    curl "http://localhost:8888/primes/15"

    curl "http://localhost:8888/primeswithstream/15"

    curl "http://localhost:8888/primeswithparallelstream/15"

    curl "http://localhost:8888/primeswithforkandjoin/15"

    curl "http://localhost:8888/primeswithforkandjoinwithstream/15"

    About

    Rest service for prime numbers

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published
    0