eventual icon indicating copy to clipboard operation
eventual copied to clipboard

Feature: Service References

Open thantos opened this issue 2 years ago • 1 comments

// in service 
import type ServiceB from "./serviceB";
const serviceB = service.fromRef<ServiceB>("serviceB")

// in infra
new Service({
   services: {
      serviceB: serviceB,
      serviceC: serviceC.fromConfig({ busArn: string, uriEndpoint: string })
   }
});

use

serviceB.subscribe({ events: [...] });

await serviceB.client.publishEvents();
await serviceB.myCommand();

thantos avatar Feb 09 '23 16:02 thantos

This is a cool idea. reminds me of: https://moleculer.services/

yehudacohen avatar Feb 09 '23 16:02 yehudacohen