Good evening, programmers!
I have an issue with my program. There are several restrictions to my environment, so I cannot use Redis in it as well as Pusher. But I have to build realtime application. So, my very last alternative is socket.io.
I want to use Laravel Broadcasting System to notify my socket.io on events and after that - notify frontend part of my application with this events.
How could I do that and may be are there some packages to do this job? I will appreciate for any help!
Sure you can. Memcached might be something for you to look into.
Related
Pusher seems like a nice package, but recently a friend programmer of mine wanted me to try out socket.io and redis because it doesn't cost anything. Other than not costing anything, is there any particular reason to use socket.io+redis? I really don't want to use the combo if the only benefit I get out of it is free, especially since there's less documentation.
As a Laravel broadcasting backend, the primary difference between Pusher and Redis/Socket.IO is that Pusher is a hosted service, but with Redis or Socket.IO, you will need to deploy the service somewhere yourself. This means you must pay for the resources the process consumes (e.g. EC2 instances), you will need to maintain the service when it breaks, and scale the service when your app becomes popular. On the other hand, Redis/Socket.IO could be more customisable if Pusher doesn't fit your needs.
(I could be biased: I work for Pusher!)
We're using Fabric for our mobile apps and now we'd like to also log some events and data from the backend directly. Is this possible?
that's not currently possible but something interesting for us to consider. All events need to be called via the device.
I have a python script with reads data from an external API, formats it and pushes to dynamoDB for storage and to SQS.
I have a Flask web application. I want this Flask application to read the messages from SQS and update the main page in real time without page refreshes.
Do I need to use another service like Celery to achieve this? People talk about web sockets or AJAX? Does anyone have a simple example?
There is also this service called Pusher which handles it for you apparently?
Update: I managed to get it to work with pusher but it's really slow
Thank you!
I was able to solve the problem with the service called pusher
It basically takes care of the websockets for you. Very easy to use.
Hope this helps anyone who experiences the same problem
I'm interested in collecting realtime data periodically (say every 1 min.) through a mobile app on my server. Can I use services like PubNub or Pusher for it or are they only for communication in the other direction - like sending push notifications from a server?
If I can use, could you please explain how exactly the setup would work?
PubNub can provide bi-directional real-time datastreams on all devices, including mobile! Any phone (or server) can be a publisher, or a subscriber, or both.
You can choose your SDK of choice here http://www.pubnub.com/developers/ -- each client has docs for a simple hello world app.
If you need more assistance in getting setup with PubNub on mobile, just shoot us an email at support#pubnub.com and we will assist!
I've seen many sites that their messages feed is keep sliding down incessantly.
For example: the previous version of twitter and now the foursquare. How to do that?
Moreover, I also want to know how to implement meetup's RSVP instant push in rails, they update it by seconds?
Thanks.
These companies will most likely be using realtime web technologies. Here are a few you could use with a rails and/or ruby applications:
http://juggernaut.rubyforge.org/
http://faye.jcoglan.com/
http://cramp.in/
https://github.com/raggi/async_sinatra
http://postrank-labs.github.com/goliath/
You could also use Pusher (who I work for) as we have a Pusher gem. If you do this it means you are not hosting the realtime infrastructure yourself.