Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Servus: A content aggregation server in < 120 LOC

Web service that aggregates content from different sources in an asynchronous manner and guarranties the (potentially partiale) response is sent to the consumer within a specified time. The full description of the service is in my blog post:

Modules needeed:

  • restler
  • async
  • haml-js

Install & run

To install dependencies, run:

    npm install

Run the server:

    node servus.js <sla>

To run the aggregation server without SLA constraints:

    node servus-nosla.js

where is the service level timeout that forces a client request to return with partial results after the timeout. If no sla is specified the default is 2 sec.

To test the aggregation server: