B4J Library [Donationware] FrostRabbitMQ Multithreaded RabbitMQ Wrapper (High-Performance Messaging)

This is a Donationware!

FrostRabbitMQ Multithreaded​

⚡Watch your CPU cores light up as RabbitMQ messages are processed in parallel with FrostRabbitMQ Multithreaded.

FrostRabbitMQ Multithreaded (High-Performance Messaging) is an advanced B4J wrapper for the RabbitMQ Java Client library.
It enables B4X developers to easily integrate AMQP messaging into their applications using RabbitMQ.

The original free version already supports connecting to a RabbitMQ broker, declaring queues/exchanges, publishing messages, and consuming messages. Now I’m releasing FrostRabbitMQ Multithreaded, which adds multi-threading support for heavy workloads. This means you can process multiple RabbitMQ messages in parallel, taking full advantage of modern multi-core CPUs.

Free vs Pro​

Free Version (Open Source)​

  • ✅ Basic RabbitMQ wrapper
  • ✅ Queues, Exchanges, Routing
  • ✅ Publish & Consume

Pro Version​

  • 🚀 Multi-threaded message consumers
  • 🚀 Handle CPU-intensive tasks without blocking
  • 🚀 Improved performance & stability for production
  • 🚀 Priority support + future updates

Demo Example (Heavy Workload)​

Example of a CPU-intensive task handled by multiple threads:
' Simulates a CPU-intensive task handled by multiple threads
Sub HeavyWork(Message As String)
Log("Starting heavy work for message: " & Message & " @ " & DateTime.Time(DateTime.Now))
 
Dim count As Int = 0
For i = 2 To 10000000
If IsPrime(i) Then count = count + 1
Next
 
Log("Completed heavy work for message: " & Message & ". Prime count: " & count & " @ " & DateTime.Time(DateTime.Now))
End Sub

Private Sub IsPrime(n As Int) As Boolean
If n <= 1 Then Return False
For i = 2 To Sqrt(n)
If n Mod i = 0 Then Return False
Next
Return True
End Sub

With FrostRabbitMQ Multithreaded, you can run many HeavyWork tasks in parallel, each triggered by different RabbitMQ messages without blocking your main thread.


Donate​

👉 Donate at least $10 to get access to the code.
Send proof of donation, and you’ll receive the source code:

Project Contents​

  • Code samples
  • Library source code

License​

Donors receive the full source code under the Apache 2.0 License.
It wraps the RabbitMQ Java Client, which is licensed under MPL 2.0, GPLv2, and Apache License 2.0.
 
Top