Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8127141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:25:16+00:00 2026-06-06T07:25:16+00:00

I’m developing a new client-server app (.Net) and have up until now been using

  • 0

I’m developing a new client-server app (.Net) and have up until now been using WCF, which suits the app’s request-response approach nicely. However I’ve been asked to replace this with a socket-based solution, partly to support non-.Net clients, and future pub-sub/broadcast requirements (I realise WCF is capable, but there are other drivers behind the decision). Having failed miserably at writing my own async socket solution, I’m now looking at ZeroMQ.

My client app has a couple of background threads that periodically request data from the server. Additionally, certain UI actions (e.g. a button click) can trigger a message to the server. WCF made this easy – the code simply called the relevant method on a singleton WCF service proxy (actually I use the Castle Windsor WCF facility which gives me async calling capabilities, but that’s probably irrelevant to my question).

I’m not too sure how this approach would translate to ZeroMQ, particularly with regards to managing the sockets – I’m very new to ZeroMQ and still reading the guide. Am I right in saying that I’ll need a separate socket for each thread (i.e. the two b/g threads and the UI)? What about socket lifetime – do I create one each time I want to send/receive (presumably inefficient), or create the socket when the thread starts and reuse it for the entire lifetime of the thread?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:25:18+00:00Added an answer on June 6, 2026 at 7:25 am

    One thing has to be very clear. ZMQ sockets can connect and talk to ZMQ sockets only.

    This means that if I am building an distributed application whose components communicate to each other, I have liberty to choose any communication approach as external clients are not exposed to it.

    Choosing ZMQ Sockets for such means is a good idea. It allows you to instantly build on many communication patterns like req/rep, push/pull, pub/sub etc and also build more complicated topologies using ZMQ devices.

    How ever, This constraint is not to be taken lightly when external clients are concerned. This will enforce all external clients to use ZMQ sockets which might not be ideal. If one of the client happens to be a browser consuming your web services then you will need to provide services through regular client.

    Is your client app using regular sockets?
    Can it be re-written to use ZMQ sockets?

    if not then don’t use ZMQ sockets for external interface
    but only for your internal component communication.

    [Edit: Further notes]

    ZMQ is a wrapper over sockets but that does a few things which are hard to get done by hand

    1. It manages messaging at higher throughput by batching multiple messages at the same time
    2. Optimizes use of socket at the same time
    3. A socket can send messages to only one another socket, ZMQ socket can connect to multiple ZMQ sockets
    4. ZMQ socket based solution can take immediate advantage of various patterns – REQ/REP, PUSH/PULL, PUB/SUB etc

    How ever, it is common to mistake ZMQ to be a messaging queue.

    1. Messaging Queue as available has other properties like message persistence and delivery guarantee etc by implementing a queue for storage.
    2. ZMQ stands for “Zero Messaging Queue”

    I have only been learning ZMQ in recent times and have been very happy to use it.

    Checkout my mini tutorial on ZMQ and See if it make sense for you to use it:

    http://learning-0mq-with-pyzmq.readthedocs.org/en/latest/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
We're building an app, our first using Rails 3, and we're having to build
I have a text area in my form which accepts all possible characters from
I have thousands of HTML files to process using Groovy/Java and I need to
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.