About web sockets and how to use it in order to get real time data

The idea with this project is to learn how to achieve the effect of real time data appearing on the web browser without the need of refresh the web browser. How does it achieved? with web sockets technology, spring framework and rabbitmq broker message with stomp support and a bit of html5 and jquery.

The example project is based on knowing where are the buses of Dublin city in that moment. Luckily Dublin city has every bus connected to internet in order every customer can connect to internet during the voyage and that bus is connected to a system so that its position is always sent to the system. That system is available through a REST api provided by Dublin city, so, where is the trick? the trick is you need to ask periodically to the system about new data, enqueue the data to the rabbitmq-stomp broker message and with a bit of jquery code the effect is done. I think the code is self explainable, so you can download it.








Next project is related with the location of the International space station, stay tunned



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s