As a learning process, I would like to learn the correct way to use
context package by making a program.
I’ve made an aggregation server which collects response from other servers and returns to client. It has been implemented by handling timeout with `context` package.
The internal servers can include fast and slow handler as this link: https://play.golang.org/p/1eN6kwyrSH3
And the aggregation server raises
internal error whenever one of endpoints failed as this link: https://play.golang.org/p/0XttDep7kNO
I’m looking for some feed-backs on 2 above programs.
Is it a correct way to handle timeout ? Is there any way to improve the programs.