Skip to content

florind/servus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: http://blog.newsplore.com/2010/06/27/building-a-content-aggregation-service-with-node-js

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:

	http://127.0.0.1:8124/aggregate?q=worldcup

Releases

No releases published

Packages

No packages published