I'd like to try to start using Erlang, and there's a data feed i'd like to read that's distributed via Websockets. Right now i'm doing the same in node.js using the 'websocket-client' module, but could someone suggest a websocket client library for Erlang that I could look at? (Or an alternative solution if I'm off the mark)
Here is a promising one: https://github.com/jeremyong/websocket_client
This one didn't exist at the time the question was asked, but it's a good question that deserves to be updated.
here you are: https://github.com/MiCHiLU/erlang_websocket
you may consider also gun: https://github.com/extend/gun
Related
I wonder what the REST API clients are available for using from Ruby (not JRuby, so native bindings are not an option)?
Ideally, I would want the API similar to the neo4j gem or ActiveRecord (validations, migrations, observers etc).
Currently available (REST) tooling doesn't even come close to what we have, for example, in ActiveRecrod:
neograhy - just plain REST API. Nothing to do with models etc.
neology - is just a wrapper over neography and isn't a full featured ActiveModel.
architect4r - conforms to ActiveModel, but provides only one way to query data (Cypher language), also no indexes support.
I like the code of architect4r a little bit more (primarily because it uses ActiveModel).
But neology seems to be much more pragmatic choice as it already is using neography under the hood.
The choice is pretty small and tough.
Could you please tell when one should be used rather than the other?
Also any recommendations that would help me to decide on the gem are very welcome.
Thanks.
The short answer is that there is no any mature ActiveModel-like gems for RESTful neo4j.
The most common scenario is to just use Neography.
I haven't worked with neoj yet, but i do work with api's a lot.
I have found the same trouble as you and my solution was to create my own.
Maybe if you have time, you can check it out. ApiClient
It still in development, so let me know of any feature you may need. =)
I have only used Neography which does its job very well. Have not heard about architect4r, but it looks really pragmatic and pleasing - need to check it out!
/peter
I know this thread is a little old, but there is activity on the neo4j-core gem geared towards using its API for the standalone database server in addition to the embedded database. Thought this might help people who find this thread when searching around.
https://github.com/andreasronge/neo4j-core/tree/3.0
Note: Before anyone yells at me for not making this a comment instead of an answer, I don't have the required reputation for doing so. Sorry.
Have you looked at REST-Client? https://github.com/archiloque/rest-client
it seems like it might be a very easy to to create and examine the responses from calls to a REST API. but maybe you need more than that?
(I was searching for answers and found your question, so far rest-client seems like the top candidate for what I need, figured it might help you also.
There is also activerecord-neo4j-adapter, but I have no experience with it.
https://github.com/digitalbias/activerecord-neo4j-adapter
Another option is Keymaker, which provides ActiveModel support for Neo4j.
Problem is, docs are non-existent, so you have to search out slideshows/presentations to find actual examples.
I tried out YAWS and was hoping that someone has already written a URL parser / request handler on top of it. I don't want anything close to ChicagoBoss which includes an ORM as well.
Let me know if my question is not clear enough. Thanks.
There is also the basho's Webmachine layered on top of a mochiweb server.
Consult wiki if you want to discover more. Thanks basho last one is informative and comprehensive.
Since I have no other choice as of now, I'm gonna go with cowboy. Thanks W55tKQbuRu28Q4xv for helping me out.
Are there any free solutions to use Message Queueing with Delphi?
I just know about Habari (which is not free) but could not find free solutions on the internet.
About the votes to close my topic.
I'm asking a question, if I need to explain here what it is, probably I'll not know how to answer. People that know what I was talking about could answer without problems, like Daniele and Jeroen Pluimers.
But for those that don't know what is a MQ:
Here you can learn the basic of it: http://mq.java.net/overview.html
After learn what it is you can read about the brokers as: ActiveMQ, HornetQ, GlassFish, RabbitMQ etc...
And as now you know, we need a client to talk with the brokers, is this client that I'm searching for, in this case one of the options (few options) is http://www.habarisoft.com/habari_openmq.html.
Tks
If you are looking for the free WebSphere MQ client, it's SupportPac MQC7. If you are looking for something else, you will need to be more specific.
If stomp is ok for you try my stomp client at www.danieleteti.it
As it is evident that AJAX based chats do not scale, so what would you use for chats? Custom servers? Or any other methods?
Since with Rails each chat connection will take lots of memory, it won't be feasible to even have Rails run for each message. What do you recommend for use here?
I also tried to implement a sample chat app with AJAX (in built Ajax.updater) but it didn't workout. I'm sure there might be some good ajax solution.
But since this is based on server push technology, try Juggernaut (http://juggernaut.rubyforge.org/). I personally haven't tried, but it seems like it's good.
Or else consider web sockets (in HTML5) if possible.
People often use Evented Ruby for handling problems like this https://github.com/eventmachine/eventmachine one of the examples in a talk I went to at railsconf 2010.
For example http://playtype.net/past/2009/3/11/mini_an_eventmachine_clone_of/ is a evented ruby implementation of an irc bot
Unfortunately your post is based on a false premise. AJAX based chat certainly can scale, you just have to do it the right way. Juggernaut 2, for example, uses Node.js to handle many concurrent connections. You're right, you won't be able to handle 10,000 connections on a single server. That's what load balancing is for.
Do you have some data based on quantitative testing (aside from your own qualitative conclusions)?
Why create any kind of custom server for chat? IRC has been around for quite a while and is tried and tested.
The real question here should be about client-side implementations rather than trying to reinvent the wheel server side imo.
After spending some time on Google all that I've found so far is ChilKat which only runs on Windows. I'm looking for something similar that'll run on Ubuntu. Obviously there's NET::FTP, Net::SSH and Net::SFTP so I could roll my own and that may be what I'll do, but I'm hoping to save a lot of time by using something else that's already been written.
I've asked a similar question:
How to transfer a binary file or any file to a remote server? - Ruby
and my conclusion is pretty similar to yours, the only currently available methods are using the Net::FTP, Net::SSH, Net::SCP (being the easiest solution) and the standard TCP, UDP protocol.
The problem with the latter (TCP, UDP) is that you have to write custom code to slice and dice the binary file and package it in such a way you can send it as a "packet", and on the receiving end you have to authorize it, validate it and unpack the damn packet. This is all very low level computing, and can take time. Unless your willing to spend alot of time experimenting, I would suggest using NET::SSH or SCP, they are the easiest/ simplest solution to date. (Note: At the reciving end an SSH server is required! - Duh.. but just in case you didn't know)
Plus an SSH server is pretty standard, you should have no problems installing it.
There is one last solution, you can use ruby-torrent. Its a beautiful idea, sharing bits and bobs, it can actually make updating a systems a lot quicker (See Here). But do be warned, the project is not very updated, the last release was back in 2005.
Hope that helps
If it is ubuntu, why not make a bash call to sftp from within ruby?