Have you considered creating another service to serve as an API gateway? Then, your client could talk to one service which would proxy requests to microservices. Also, the authentication would be a little simpler since you could add guards inside the gateway, and other microservices would not have to implement auth logic :)
Hi, thanks! I preferred to keep the post as simple as possible with less "moving parts", but I agree with you - it's definitely a great addition that the readers can implement :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi!
Nice article :)
Have you considered creating another service to serve as an API gateway? Then, your client could talk to one service which would proxy requests to microservices. Also, the authentication would be a little simpler since you could add guards inside the gateway, and other microservices would not have to implement auth logic :)
Hi, thanks! I preferred to keep the post as simple as possible with less "moving parts", but I agree with you - it's definitely a great addition that the readers can implement :)