2 ms·
Hey Brian, Just wanted to say thanks for Stomp, protocols that are simple enough to be easily reimplemented are definitely underrated. The Python story for St
by _wmd 11y ago
Hey Brian,
Just wanted to say thanks for Stomp, protocols that are simple enough to be easily reimplemented are definitely underrated.
The Python story for Stomp is not so great, especially working with Twisted (e.g. there I think stompest is the best option available). On profiling I discovered this module's parser was horrendous, contributing something like 30% to my runtime.
Had it been some binary protocol with a complex spec, I might have spent days reimplementing it, but producing a simple and fast parser took only an hour or two, and now my problem is solved.
For others complaining about Stomp, my reimplementation is 116 lines of perfectly testable code, and for a problem domain as simple as wrapping messages up in a few verbs, this is how it should be.
(Will be releasing tinystomp.py at some point, but it needs a little tidying up and documenting first!)