nest-cloud / nestcloud

A NodeJS micro-service solution, writing by Typescript language and NestJS framework.
MIT License
417 stars 54 forks source link

Requesting a proper microservices communication example #29

Open samma89 opened 3 years ago

samma89 commented 3 years ago

Hi @miaowing,

Thank you for providing such a great collection of tools for building microservices with NestJS. What I am looking for is a sample to understand how the NestCloud works with few microservices and the way those communicate with each other using Consul. Can you please put together something like below.

Service A - has a method getHello returns 'Hello from A' Service B - has a method getHello returns 'Hello from B' Service C - has a method getHello returns 'Hello from C'

Service D - consume all A, B, C services using Service discovery and provide a REST interface(API) to outside.

I am trying to understand how this works with the discovery service.

Please add a sample.

Thanks

miaowing commented 3 years ago

Here is the example that you need: https://github.com/nest-cloud/nestcloud-consul-example