resgateio/resgate

Create event

Closed this issue · 1 comments

Story

The services need a way to tell other services that a resource has been created.

Solution

Add a create event to the RES Service specification, and make it a reserved word.
The event should have no payload.

This event can be used by services that logs events, or by middleware that synchronizes resources with other instances of the service.

Notes

  • The create event will be handled like a custom event by Resgate.
  • In normal conditions, Resgate should never receive a create event.

Compatibility

  • The change is backwards compatible, since Resgate will treat the event like a custom event.
  • If a service used create as a custom event name, it may cause confusion for services that treats it as a pre-defined event. The risk and impact is considered low.

Resolved in #133