Git Product home page Git Product logo

spray-routing-add42's Introduction

spray-routing-add42

Small restful service that adds 42 to a specified number

This project uses sbt to build an artefact which can then be run from the command line. sbt targets:

clean assembly

Once the assembly plugin has created the runnable jar execute the app using the following:

java -Xmx512m -Xms512m -jar http-adder-service.jar bindHost={host} bindPort={port}

The bindHost and bindPort parameters are optional. If not supplied then these will default to localhost and 8080 respectively.

To test the service, open a browser and attempt to retrieve the following url:

http://{host}:{port}/add42/123

The response body should be 165

JMeter Test

Included is a JMeter test under src/main/jmeter that you can use to load test the application. There are variables which, if you're not using the default host and port, need to be set before running the test. Also in order to view the TPS and response time graphs you will need to add the plugins from:

http://code.google.com/p/jmeter-plugins/

The test spawns 50 threads and each thread sends random numbers to the service

spray-routing-add42's People

Contributors

james-k-cisco avatar

Watchers

James Cloos avatar James Kavanagh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.