Skip to content

quantum2409/zeromq-implement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ZeroMQ logging and messaging service

About

ZeroMQ is a networking library that removes the need of TCP/UDP protocols and is faster and more convenient. Here ZeroMQ is implemented using go and js.

JavaScript

A server-worker is created. The server sends task to all the active workers distributing the work equally. Run

$ npm init -y
$ npm install zeromq

When the dependencies are installed, open multiple terminals and in one of them run:

$ node server.js

In the others run:

$ node worker.js

and see the magic happen. An interesting thing to note is that even after killing the server, the workers wait for a task, unlike in TCP.

GoLang

A Request-Reply messaging queue is created where each request is sent only after recieving reply of the previous request.

Run :

$ sudo apt-get install libzmq3-dev

Then in ./server and ./client, run :

$ go get github.com/pebbe/zmq4
$ go run main.go

and see the magic happen!!!...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published