Search code examples
pythonsocketswebsocketmod-pywebsocket

Is pywebsocket good for a production environment?


Is it a good idea to use pywebsocket in a production environment, since their google developer page states ...

pywebsocket is intended for testing or experimental purposes.

Moreover what would the specific drawbacks of using it be?

  • Are there performance drawbacks?
  • Is it not stable or unsecure in a certain way?
  • ...

Since Mozilla as well as Google use it to test their websocket implementations, and it was suggested (for production) in many SO threads, I thought it to be a pretty stable basis until I read the docs.

Or am I misinterpeting something, and it is just meant to be especially helpful for testing, as well as suitable in production?


Solution

  • After some research it becomes clear, that pywebsockets was developed for testing browser implementations. It has (at least) the drawbacks of being neither secure nor scalable.

    So in short: It is not suitable to be used in production environment!

    As stated above it is still a great tool for testing your client side implementation of websockets, probably even "the best" one for that, since the websocket implementations of Chrome as well as Firefox,... are being tested with it.

    As alternatives for production in python you could look at:

    For a list of tools for other programming languages have a look at this SO wiki answer