Supermacy
Supermacy

Reputation: 1489

Running api on different servers

I am currently running an express server. It is having routes which is computational and memory extensive. I want to shift that api routes to different server so that it does not harm any other apis.

I am currently proxy passing that request using nginx. But I want to do it in express level in order to get more control.

Is there any different approach or any other npm package to achieve this?

Upvotes: 0

Views: 125

Answers (1)

SALEH
SALEH

Reputation: 1562

It seems like you are looking for a solution like http-proxy-middleware. Intregation is super-simple too.

Upvotes: 1

Related Questions