DISCLAIMER
This project is still under construction. Beta testers are more than welcome.
Luxun
A high-throughput, distributed, publish-subscribe messaging system. Luxun is inspired by Apache Kafka. The main design objectives of Luxun are the following:
-
Fast: close to the speed of direct memory access, both produding and consuming are close to O(1) memory access.
-
Persistent : all data in the system is persisted on disk and is crash resistant.
-
High-throughput: even with modest hardware Luxun can support handreds of thousands of messages per second.
-
Realtime : messages produced by producer threads should be immediately visible to consumer threads.
-
Distributed : explicit support for partitioning messages over Luxun servers and distributing consumption over a cluster of consumer machines while maintaining per-partition ordering semantics.
-
Multiple clients support : use Thrift RPC as communication infrastructure, easy to generate different clients for different platforms.
-
Flexible consuming semantics : supports typical consume once queue, fan out queue, even supports consume by index when needed.
The objectives above makes Luxun extremely suitable for nowadays popular big data or activity stream collecting and analytics.
Luxun is based on the bigqueue library which uses memory mapped file internally to support fast while persistent queue operations.
The Architecture
Version History
0.6.0 — March 25, 2013 : repository
Docs
-
The architecture and Design of a Publish & Subscribe Messaging System Tailored for Big Data Collecting & Analytics.
-
Luxun Quick Start.
-
Operation & Configuration.
-
Performance.
-
JMX Monitoring.
Copyright and License
Copyright 2012 Leansoft Technology 51startup@sina.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Credits
Luxun borrowed design ideas and adapted source from following open source projects:
-
Apache Kafka, a distributed publish-subscribe messaging system using Scala as implementation language.
-
Jafka, a Kafka clone using Java as implementation language.
-
Java Chronicel, an ultra low latency, high throughput, persisted, messaging and event driven in memory database. using memory mapped file and index based access mode, implemented in Java.
-
fqueue, fast and persistent queue based on memory mapped file and paging algorithm, implemented in Java.
-
ashes-queue, FIFO queue based on memory mapped file and paging algorithm, implemented in Java.
-
Kestrel, a simple, distributed message queue system implemented in Scala, supporting reliable, loosely ordered message queue.
Many thanks to the authors of these open source projects!
Origin of the Name
Both Franz Kafka and Lu Xun lived almost in the same era, similar to Kafka, Lu Xun was a great Chinese writer. In spite of their differences, Kafka and Lu Xun share a common concern on what they saw as the oppressive nature of the past and the authority drawn from it.
Luxun messaging system is named after Lu Xun, in memorial of his great contributions to Chinese literature.