Skip to content

xieyuheng/zeromq-messaging-patterns

Repository files navigation

ZeroMQ messaging patterns

ZeroMQ is a really beautiful hammer,
you should take it with you
and find nails.

-- Someone on the internet.

I know about ZMQ years ago.

I admire Pieter Hintjens, I read many of his books, and watched all his talks I can find the internet. He was such a great leader!

But I never had a project about messaging, in which I can use ZMQ.

Until I want to write a subdoman-based http reverse proxy (like ngrok).

I implemented it by pure TCP and socket API, a lot of features aboud reliability need to be implemented.

Then I went back to ZMQ docs again, and found that the subdoman-based http reverse proxy I want to implement is exactly the majordemo of ZMQ's zguide.

I finally found the perfact nail!

Development

npm install           # Install dependencies
npm run build         # Compile `src/` to `lib/`
npm run build:watch   # Watch the compilation
npm run format        # Format the code

Contributions

To make a contribution, fork this project and create a pull request.

Please read the STYLE-GUIDE.md before you change the code.

Remember to add yourself to AUTHORS. Your line belongs to you, you can write a little introduction to yourself but not too long.

It is assumed that all non draft PRs are ready to be merged. If your PR is not ready to be merged yet, please make it a draft PR:

During the development of your PR, you can make use of the TODO.md file to record ideas temporarily, and this file should be clean again at the end of your development.

License

GPLv3