dzimchuk / book-fast-service-fabric

A sample demonstrating how to implement a multitenant facility management and accommodation booking application as native Azure Service Fabric reliable services.
MIT License
90 stars 34 forks source link

Advice on Service-to-service communication #32

Open levimatheri opened 2 years ago

levimatheri commented 2 years ago

Hello @dzimchuk. Was reading your article about the different Service Fabric service-to-service communication options. I was wondering, what would you say is the disadvantage of using Reverse Proxy as opposed to calling Naming Service directly, other than the former can only be used for HTTP? Thanks.

dzimchuk commented 2 years ago

Hi @levimatheri, the biggest disadvantage would be making all services running in a cluster accessible if you expose the proxy which can open up serious vulnerabilities when malicious users attempt to call services directly trying to high jack their behavior or gain access to sensitive data or just cause denial of service. Thus you would want to put your cluster behind a more robust and configurable proxy such as Application Gateway, Yarp, etc.

levimatheri commented 2 years ago

Thanks @dzimchuk. How about feature/implementation-wise, which do you think is better?