Overview of Jetlang
masterJetlang is a high-performance Java threading library designed for message-based concurrency, similar to the event-based actor model in Scala. It is intended as a complement to java.util.concurrent for high-performance, in-memory messaging.
Key characteristics include:
- Sequential Message Delivery: All messages to a specific
Fiberare delivered sequentially, allowing components to maintain state without manual synchronization or thread race concerns. - Low Lock Contention: Optimized to avoid central bottlenecks (like a single lock on a central thread pool), allowing performance to scale with application needs.
- Thread-Safe Publishing: The
publishmechanism is thread-safe, making it easy to integrate with other threading models. - Flexible Backing: A single
Fiberinterface can be backed by either a dedicated thread or a thread pool. - No Dependencies: The library requires only the JDK (1.6+).