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

  • Home
  • SEARCH
  • 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 9115325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:24:14+00:00 2026-06-17T04:24:14+00:00

Most modern API’s are built using JSON with request/response messaging over HTTP. Since ZeroMQ

  • 0

Most modern API’s are built using JSON with request/response messaging over HTTP. Since ZeroMQ is over TCP, could JSON-based API’s be built over ZeroMQ? If so, what would the advantages be? The use is

  1. developers writing apps for clients/devices communicating with one or more webservers, and

  2. webservers communicating with webservers.

  • 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-17T04:24:16+00:00Added an answer on June 17, 2026 at 4:24 am

    Yes, json-based API could be built on top of ZeroMQ instead of HTTP. It would require REQ/REP sockets. However, it doesn’t seem to be a good choice.

    The main advantage of JSON+HTTP approach is portability. JSON+HTTP is supported out of the box by virtually any programming environment, ZeroMQ is not supported so widely (no support in browser JS for example). Also, ZeroMQ is not so painless in setup, so service consumers probably won’t be happy with that choice.

    On the other hand, the main advantage of ZeroMQ is performance: it’s great if you need to push many megabytes (or probably gigabytes) of data per second. JSON encoding/decoding is really fast, but the size matters too for this kind of tasks. Any binary serialization framework seems to be a better choice, there are plenty: protobuf, thrift, BSON, kryo, avro, etc.

    So, I’d continue to use JSON+HTTP for APIs of web services: modern HTTP server tools provide excellent performance and scalability. And ZeroMQ is a great choice for communication within a controlled environment because of its concurrency features and well-defined usage patterns.

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

Sidebar

Related Questions

Most of the BLAS Level 1 API can be trivially written straight forward using
I am working with threads, and decided to use the most modern API (java.util.concurrent
In most modern IDEs there is a parameter that you can set to ensure
It appears that most modern languages and tools allow for extended regular expressions, and
I know modern browsers remove most space chars and '&nbsp'; characters insider a paragraph
Most somewhat modern programming languages have a standard library? It is my impression is
Most modern computers exhibit non deterministic behavior, what makes impossible to tell how many
In most modern OO languages chaining methods together is common, and IMHO elegant, practice.
Every Modern OS provides today some atomic operations: Windows has Interlocked* API FreeBSD has
It's standard in most modern editors that you can highlight a piece of code

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.