eventual icon indicating copy to clipboard operation
eventual copied to clipboard

Feat: Pub/Sub at the service layer

Open thantos opened this issue 2 years ago • 1 comments

Using #272

Move the service to service subscribe and publish behaviors to the service layer.

const serviceB: Service = service.from(...);

// put service B events into service A bus
serviceB.subscribe({ events: [] });

// subscribe directly to another service
subscription("forwardEvents", {
   service: serviceB,
   events: []
}, async () => {});

thantos avatar Feb 09 '23 16:02 thantos

Not sure what you mean by service layer? Do you mean out of the cdk?

sam-goodwin avatar Feb 09 '23 21:02 sam-goodwin