Can we make a request from one endpoint to another within the same server?

Written by
Link to Post by 

Let’s say we have a server with two endpoints abc and xyz. abc is an independent endpoint that only makes a call to Elasticsearch and xyz is an endpoint that can use the result from the abc endpoint. It basically depends on it. So instead of implementing the business logic of the abc handler again in xyz I would just like to call the abc method and get its result in xyz handler

I know this can be done but Is this a good practice?

submitted by /u/fenster25
[link] [comments]

Article Tags:
· ·
Article Categories:

Leave a Reply