LAppS - Lua Application Server
This is an attempt to provide very easy to use Lua Application Server working over WebSockets protocol (RFC 6455). LAppS is an application server for micro-services architecture. It is build to be highly scalable vertically. The docker cloud infrastructure (kubernetes or swarm) shall be used for horizontal scaling. LAppS has most scallable WebSockets server out there.
LAppS is the same thing to WebSockets as the Apache or Nginx are to HTTP. LAppS does not supports HTTP (though it supports HTTP Upgrade GET request as per RFC 6455). The only supported scripting language so far is the Lua.
RFC 6455 is fully implemented. See the Conformance section.
RFC 7692 (compression extensions) is not implemented due to concerns about BREACH attacks. It is possible to have per-message compression on the LAppS protocol level without being affected by BREACH attacks.
LAppS is an easy way to develop low-latency web applications. Please see LAppS wiki and the examples on how to build your own applications.
Please see LAppS wiki on how to build and run LAppS from sources.
03 August 2019 - 0.9.0 released with bugfixes reported by Coverty and the PVS-studio. This is a latest stable release. Please beware that there are a change in service descriptors, the keyword "internal" has been replaced with "standalone".
- Ubuntu bionic packages are available here.
- Fastest WebSocket stream parser in industry
- Easy API for rapid development of backend services in lua, C or C++
- High vertical scalability for requests parallelization
- Several million client connections on one system
- Higly tunable through simple JSON configuration files
- Requests multiplexing on application level protocol
- Copy-less high performance communications between services using MQR (an embedded shared queues) within one LAppS process
- Two level Network ACL: Server-wide and service-specific
Services are the Lua Applications. Each service may run parallel copies of itself (instances) to achieve maximum performance. The application have a choice of two protocols for clinet-server communications: RAW and LAppS.
RAW protocol behaviour is not specified and is not affected by LAppS (excluding control frames, those are never sent to the Lua Applications). It is for application to define how to handle inbound requests and how to react on them.
An optional LAppS protocol defines a framework similar to JSON-RPC, with following key differences:
- Transport is the WebSockets
- Exchange between server and client is encoded with CBOR
- There are Out of Order Notifications (OON) available to serve as a server originated events. This makes it very easy to implement any kind of PUB/SUB services or the broadcasts.
- LAppS defines channels as a means to distinguish type of the event streams for purposes of multiplexing data streams within WebSocket stream. For example channel 0 (CCH) is reserved for request-response stream. All other channels are defined by application and may or may not be synchron/asynchron, ordered or unordered (see the examples for OON primer with broadcast)
Conformance (and regression test results)
Roadmap will be ready soon. Next releases will include:
- improved statistics on LAppS I/O
- luajit-2.0.5 or higher
- GCC Version greater then 7