kyukhin / fib-service

Simple RESTful web service to provide Fibonacci series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fibonacci series web service

This is a simple web service which intended to calculate Fibonacci series.

Requirements

  • Python 2.7+
  • web.py module
  • [Optional, need for benchmarking] ab tool

Start service

Use ./service/fib.py --help to see usage of the service.

Example ./service/fib.py --verbose --cache-size 2000 This will start the service (at localhost, port 8080) and pre-initialize internal cache with first 2000 Fibonacci numbers. This also will enable verbose output to the console.

Testing

To run funtional testing: ./check.sh

To benchmark your server: ./benchmark.sh

About

Simple RESTful web service to provide Fibonacci series


Languages

Language:Python 94.4%Language:Shell 5.6%