jstp / jstp-rfc

JSON Transfer Protocol RFC
0 stars 0 forks source link

Subscription #2

Closed xaviervia closed 11 years ago

xaviervia commented 11 years ago

Moved from JSTP Ruby Gem

Add subscription feature for event-driven architectures.

An event is triggered for Subscriptors to received whenever an inbound dispatch (which may be sent to self) is configured with the header gateway setted as broadcast.

Subscriptions can be addressed at any level of the REST hierarchy. For example, given the following REST calls:

1 - GET User/:id/Article
2 - PUT User/:id

...a subscription on User will be triggered in every event, while a subscription in User/:id/Article will be retrieved only in the first one.

xaviervia commented 11 years ago

This has been happily and effectively implemented in both the RFC of JSTP 0.4 and the JSTP 0.4 compliant NPM.