Want to build a load balancer

Hi ,
i am a newbie to go lang , i want to redirect a part of my traffic from an api to nodejs code based on headers provided in the api. what packages would be really helpful for me .
Also i want to call 2 apis when i get a call to my go lang code. is there something like async in golang ? TIA

For the first you need just http package, but if you prefer performances over strict standards you may decide to use some 3rd party multiplexer like this:

For the second one you need just goroutines and channels.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.