Giter VIP home page Giter VIP logo

Comments (3)

freddrake avatar freddrake commented on June 16, 2024

The description you quoted tells why:

can support Python 2 or Python 3 clients (but not both)

Why should the server restrict the Python version on the client?

from zeo.

jimfulton avatar jimfulton commented on June 16, 2024

"An advantage of using msgpack for ZEO communication is that it's a tiny bit faster and a ZEO server can support Python 2 or Python 3 clients (but not both)."

That is poorly worded. Sadly, I don't recall exactly wtf I was trying to say. :)

Currently, a ZEO server and client must be running the same major version of Python, because Pickle, used in ZEO network communication, is Python-major-version specific. So today, by default, the client and server must run the same major Python version.

Because msgpack doesn't use pickle, it doesn't have this problem.

Of course, differences in pickling also make it hard for Python 2 and Python 3 clients to cooexist, so this is somewhat moot, but perhaps not entirely moot. I can imagine well-behaved Python 2 and Python 3 clients coexisting, but I haven't tried this.

msgpqck was added mainly to enable the Rust server, https://github.com/jimfulton/byteserver, but development of the Rust server hasn't advanced. (I'd really like to get back to it at some point.)

I'd be in favor of making msgpack the default at some point if I knew there was positive experience using it in production.

from zeo.

azmeuk avatar azmeuk commented on June 16, 2024

I'd be in favor of making msgpack the default at some point if I knew there was positive experience using it in production.

My company is looking for ZEO performance those times, we may give it a try!

from zeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.