I have C# microservice (.netcore 2.x) with RESTful API onboard, published on <someaddress>:<someport>
(e.g. server:9999
). It works good, but a bit slow because of tons of queries, need to make it work faster.
The first idea is to create several instances of microservice (i.e. workers) on different servers (e.g. node1:9999
, node2:9999
), but don't get how can i save initial entry point (server:9999
)?
Do I need a third party soft like some load balancer or there is an easy way to make it work?
You'll definitely need something like a load balancer. A few options:
The second option is probably the best, if you only have one service with two nodes and fault tolerance is not your primary concern.