crossbar/autobahn : ready for the masses ?

#1

I’m not sure …

I was a big fan/advocate of this solution since the beginning (on win platforms (wampsharp/jawampa), or using mainly wss://demo.crossbar.io/ws).
But when it comes to host a router, on non-common platform : it begins to be very hard.
(BTW, is there a provider of router hosting service ? which could simplify the process).

I’ve needed to host my own router, on my NAS (an eeepc 701, 4go hdd, ubu server 12.04).

(docker is not an option on this kind of machine :wink:
crossbar/python is not an option : came with a lot of python libs (AFAIK 120mo), and some are very hard to install.
other implementations (http://wamp-proto.org/implementations/) : can’t reach to compile/use one (tested : bonefish, wampcc, nexus, turnpike, …)
(btw : on windows platform : I reach to use a wampsharp and a jawampa router, easily (but not my goal)).
(nb : a jawampa router should work easily, but don’t want (can’t) to install JRE just for that … (only 4go of hdd))

So, I end up to try to find others (non-wamp) solutions ;-(
And find it very easier to setup. With this kind of python lib (https://github.com/dpallot/simple-websocket-server), and 15 lines of code : I’ve made a router which dispatch events to all clients, on a SSL line. My router works on any architecture, and it’s easily bundable (freezable under 4mo, no dependencies).
With a bit of (native) javascript, I’ve made a simple lib to manage events (pub/sub like) … (it’s not as powerful as autobahn/js (which is 340ko of minimized JS ?!? wtf ?!), but it’s enough). If I want others clients : just find a websocket client for the targeted language (they exists !). For python, the simple https://pypi.python.org/pypi/websocket-client works like a charm.
So, I end up, with a minimal solution (which should cover 95% of a “day to day use” wamp router). A minimal footprint router (easy to install everywhere) on a ssl connection. And a litlle JS lib —> it does the job very well !

I would have preferred to use on a wamp solution ! But it was not possible !
It allowed me to discover it was very easy to setup a workable wamp-like solution !

So WTF ?
As long as there are no simple solutions (a nginx module ? or a gwsocket plugin (https://github.com/allinurl/gwsocket) ?) : its adoption may be slow
I don’t think I’m the only one in this case. And I am certain that these problems are a huge hindrance to its use.
Now ; should I start to create another crossbar/wamp-like simple python router ? perhaps … (but I will have a look : it’s not an announce !)

btw, i will continue to keep an eye on this solution.

0 Likes

#2

Reinventing the wheel doesn't help the core project get more efficient.

It might be better to put time into Crossbar, Autobahn python and JS and help those projects slim down.

On a more general note, I'm not sure why you say crossbar/python is not an option on your system. 4gb HDD is plenty of space for a Linux server install. If you're really cramped for space try Damn Small Linux rather than Ubuntu...

0 Likes

#3

Just some observations:

  • You’re running a 10+ year old computer

  • You’re running a 5+ year old OS that has reached EOL (irresponsible to connect that to the net)

  • You say this is a NAS which probably means it’s single purpose and not meant to run other things. It was probably dimensioned hw-wise for that purpose and not much more.

Furthermore you say you say you find Crossbar hard to install, but fail to say what you find hard about it.

You also say you’ve tried alternative routers and failed, but you fail to say what your problems were.

When I last tried Crossbar I found it very easy to set up. Same with bonefish. It may be that the compiler on your ancient system is too old. But we need more info to help you.

My suggestions: Get something resembling modern hardware, and write back with what your problems were.

Elvis

···

Den 7 sep. 2017 11:11 fm skrev “man atlan” mana...@gmail.com:

I’m not sure …

I was a big fan/advocate of this solution since the beginning (on win platforms (wampsharp/jawampa), or using mainly wss://demo.crossbar.io/ws).
But when it comes to host a router, on non-common platform : it begins to be very hard.

0 Likes

#4

Just some observations:

* You're running a 10+ year old computer

* You're running a 5+ year old OS that has reached EOL (irresponsible to
connect that to the net)

* You say this is a NAS which probably means it's single purpose and not
meant to run other things. It was probably dimensioned hw-wise for that
purpose and not much more.

Furthermore you say you say you find Crossbar hard to install, but fail to
say what you find hard about it.

You also say you've tried alternative routers and failed, but you fail to
say what your problems were.

When I last tried Crossbar I found it very easy to set up. Same with
bonefish. It may be that the compiler on your ancient system is too old. But
we need more info to help you.

My suggestions: Get something resembling modern hardware, and write back
with what your problems were.

I realize I came off as a little snarky above. I apologize for that.

It's just that it's a little frustrating when you want to help, but
there's nothing you can really go on.

You say that your NAS has a 4 GB disk. But how much of that is
available? You say that Crossbar is not an option because it takes 120
GB including its deps, so I suspect your disk is very full? If so, the
answer is to get a bigger disk. 120 MB is not much nowadays, and I
don't think Crossbar was designed for resource constrained systems.

Also, what Python version do you have available?

It is true that it's relatively easy to whip up a basic pub/sub system
on top of WebSockets, but Crossbar brings so much more that it's not
really a meaningful comparison.

Elvis

···

2017-09-08 8:45 GMT+02:00 Elvis Stansvik <elvs...@gmail.com>:

Elvis

Den 7 sep. 2017 11:11 fm skrev "man atlan" <mana...@gmail.com>:

I'm not sure ...

I was a big fan/advocate of this solution since the beginning (on win
platforms (wampsharp/jawampa), or using mainly wss://demo.crossbar.io/ws).
But when it comes to host a router, on non-common platform : it begins to be
very hard.
...

0 Likes

#5

Just some observations:

* You're running a 10+ year old computer

* You're running a 5+ year old OS that has reached EOL (irresponsible to
connect that to the net)

* You say this is a NAS which probably means it's single purpose and not
meant to run other things. It was probably dimensioned hw-wise for that
purpose and not much more.

Furthermore you say you say you find Crossbar hard to install, but fail to
say what you find hard about it.

You also say you've tried alternative routers and failed, but you fail to
say what your problems were.

When I last tried Crossbar I found it very easy to set up. Same with
bonefish. It may be that the compiler on your ancient system is too old. But
we need more info to help you.

My suggestions: Get something resembling modern hardware, and write back
with what your problems were.

I realize I came off as a little snarky above. I apologize for that.

It's just that it's a little frustrating when you want to help, but
there's nothing you can really go on.

You say that your NAS has a 4 GB disk. But how much of that is
available? You say that Crossbar is not an option because it takes 120
GB including its deps, so I suspect your disk is very full? If so, the

Meant 120 MB of course.

···

2017-09-08 9:01 GMT+02:00 Elvis Stansvik <elvs...@gmail.com>:

2017-09-08 8:45 GMT+02:00 Elvis Stansvik <elvs...@gmail.com>:

answer is to get a bigger disk. 120 MB is not much nowadays, and I
don't think Crossbar was designed for resource constrained systems.

Also, what Python version do you have available?

It is true that it's relatively easy to whip up a basic pub/sub system
on top of WebSockets, but Crossbar brings so much more that it's not
really a meaningful comparison.

Elvis

Elvis

Den 7 sep. 2017 11:11 fm skrev "man atlan" <mana...@gmail.com>:

I'm not sure ...

I was a big fan/advocate of this solution since the beginning (on win
platforms (wampsharp/jawampa), or using mainly wss://demo.crossbar.io/ws).
But when it comes to host a router, on non-common platform : it begins to be
very hard.
...

0 Likes

#6

…that you really have IT knowledge

···

Am Donnerstag, 7. September 2017 11:11:34 UTC+2 schrieb man atlan:

I’m not sure …

0 Likes