mardi 4 août 2015

Asynk / Reactive/Non blocking web UI with microservice backend

Background

I want to implement reactive/non blocking web experience(as soon as user clicks the link a static html is returned and it gets filled subsequently with data like statistics , news and requested information as soon as calculated by server. The orignal statistic may also get changed after 1-2 seconds).

The backend is implemented via asynk micro services communicating via qpid message broker. The communication to backend happens via api gateway.

Question

I am having problem in achieving it on UI side. I narrowed my approach to COMET.(Not considering Websocket as that level of bidirectional communication is not involved). For now i am considering using socket.io or cometd+jetty.

Cometd+jetty is more of a java like approach(done many time so comfortable with) whereas socket.io is server side javascript driven(upcoming/modern).

I need to know which one of these will be better(Ability and ease to send and consume message to message broker like QPID is very important for me as most of communication in my design is happening via messaging). I am open to other suggestion too




Aucun commentaire:

Enregistrer un commentaire