Enterprise Integration Zone is brought to you in partnership with:

Abhishek Kumar has interests in: Ethical Hacking, Developing & Tweaking Web/Network Applications. Security and Development are his two motivations in this industry. He is a developer at heart and artist by brain. So, he doesn't get limited to a certain solutions when he develops and isvery well know to give it an artist's touch wherever needed. http://abhishekkr.github.io Abhishek is a DZone MVB and is not an employee of DZone and has posted 12 posts at DZone. You can read more from them at their website. View Full User Profile

MessQ: A Simple Message Queue for Socket-Based Message Enqueue/Dequeue Facility

  • submit to reddit

I've spent a good amount of time setting up message-based infrastructures, so I decided to make a tool that would allow me to set up localhost friendly, network available message queues much quicker so I could try out all the things I wanted.

So here is Mess(age)Q(ueue). Something I've quickly thrown together. I will work on it later to get it more performance oriented, but right now it is good to go for smaller projects.

@GitHub:      https://github.com/abhishekkr/messQ
@RubyGems: https://rubygems.org/gems/messQ

A Quick Test

[+] Install
$ gem install messQ --no-ri --no-rdoc

[+] Start Server (starts at on port#5566)

$ messQ --start [+] Enqueue user-id & home value to the Queue $ messQ -enq $USER $ messQ --enqueue $HOME [+] Dequeue 2 values from Queue

$ messQ -deq $ messq --dequeue [+] Stop Server $ messQ --stop _________________________

Via Code

[+] Install

$ gem install messQ --no-ri --no-rdoc
or add following to your Gemfile
gem 'messQ'
require 'messQ'

[+] Start Server

MessQ.host = '' # default is

MessQ.port = 8888 # default is 5566


[+] Enqueue user-id & home value to the Queue

MessQ.host = '' # default is

MessQ.port = 8888 # default is 5566



[+] Dequeue 2 values from Queue

MessQ.host = '' # default is

MessQ.port = 8888 # default is 5566

puts MessQ::Agent.dequeue

puts MessQ::Agent.dequeue

[+] Stop Server

Published at DZone with permission of Abhishek Kumar, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)