0.0.5 • Published 4 years ago
@nick-kelly/microservices-prototype-messages v0.0.5
Microservices Prototype Messages
Package to be shared across microservices
// Anatomy of an event
type Event = {
type: 'butotnCreated',
streamId: 'fnjrekfndskn',
streamType: 'button',
streamVersion: 1,
userId: 'ahduijenfjewkfn',
correlationId: 'dnjskfngsdkjf',
payload: { 'arbitrary': 'things' },
createdAt: 14952495425,
}
Publishing
yarn publish