10. AEON Channels
Encapsulate types of information
Generate two end-points (pub/sub)
Distribute the end-points carefully
… end-points are REST interface
(POST/GET)
19. Benefits
Communicate through a realtime network
Decoupled developments
Performance, scalability and reliability
Complete RESTful API
Easy to use, easy to integrate (SDK)
26. Why we dont Pub/Sub….
POST {} /entities/M1622LB/channel/gps
GET /entities/M1622LB/channel/gps
27. Publishing
AEONSDK sdk = new AEONSDK(Config.
PUB_URL);
for (var i=1; i < 20; i++){
msg = { "number": i};
sdk.publish(msg);
28. Subscribing
var received = function received(msg) {
console.log("Received: ", msg)
}
sdk = new AeonSDK(config.SUB_URL, config.
YOUR_ID , config.YOUR_DESC);