V
V
Vladimir Grabko2016-06-05 21:35:40
go
Vladimir Grabko, 2016-06-05 21:35:40

How to optimize?

At me at each connection there is a request of the server about available methods
How to make this business on normal? It comes to mind to make a global map that will store the settings for each service where host + port will be the key. But for some reason I don't like it either. My subconscious is screaming shit code)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Q
qweqwa, 2016-06-07
@qweqwa

See how it is implemented in ready-made good API frameworks
https://github.com/emicklei/go-restful
https://github.com/nytimes/gizmo
https://github.com/myodc/go-micro
https:/ /github.com/koding/kite

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question