psenger / SocketIo-Swagger-RabbitMq-Rest-Elastic-Messages-Vagrant

Using NodeJS, Swagger, RabbitMQ and Socket.io, the purpose of this seed project is to build an elastic infra structure that can async message between clients in an elastic manner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defining a handler for actions that map to REST over http. POST and GET generally refer to update and query over an entity. There's absolutely no reason you can't just define a handler for generic versions of these CRUD operations that can be used in both contexts. The way I generally do this is by introducing the concept of a 'route' to the real-time transport, and mapping those back to the same CRUD handlers.

You have a session, you can impose the same ACL, etc.

 +---------------------------------+
 |                                 |
 |      BROWSER                    |
 |                                 |
 +--+--^-------------------+---^---+
    |  |                   |   |
    |  |                   |   |
 +--v--+---+            +--v---+---+
 |         |            |          |
 | HTTP    |            | SOCKET.IO|
 +--+---^--+            +--+---^---+
    |   |                  |   |
 +--v---+------------------v---+---+
 |                                 |
 |        ROUTING/PUBSUB           |
 +-+--^-------+--^-------+--^------+
   |  |       |  |       |  |
 +-v--+--+  +-v--+--+  +-v--+-+
 |       |  |       |  |      |
 | USERS |  | ITEMS |  |ETC   |
 +-------+  +-------+  +------+
     ENTITY CRUD HANDLERS

About

Using NodeJS, Swagger, RabbitMQ and Socket.io, the purpose of this seed project is to build an elastic infra structure that can async message between clients in an elastic manner.

License:Apache License 2.0


Languages

Language:Ruby 80.1%Language:Puppet 12.0%Language:HTML 4.3%Language:JavaScript 2.3%Language:Shell 1.0%Language:Pascal 0.3%Language:TypeScript 0.0%