Deadnought-js

751 阅读1分钟
原文链接: sites.google.com
Dreadnought-js is a synthesis of python with a mature web server and JavaScript to create a full featured web server for JavaScript applications.  It features seamless integration with Python, C and JavaScript allowing JavaScript to leverage decades worth of libraries in a highly effective manner. Thus you don't have to reinvent the wheel.

Dreadnought executes all HTTP requests within a separate child process launched by an internal web server allowing for synchronous programming using blocking calls without interfering with the main web service. This provides both fault tolerance and load balancing.

Cool features:

  • Safe synchronous function calls without interfering with web request processing. Each HTTP request is handled by a child process which provides fault tolerance and load balancing. 
  • Full access to all Python libraries within JavaScript
  • The ability to seamlessly create C extension modules without any glue code
  • support for streaming, sessions and permission levels on routes


... So what does it look like in code?