u007
(James)
August 28, 2018, 4:41pm
1
what is the best practice for dealing with handler in golang via dgo?
do i have to initiate respective grpc to server on every handler on my webserver?
or do i initiate a grpc connection to server, and reuse the same grpc for multiple handler via dgo client?
sample code:
opened 07:47AM - 28 Aug 18 UTC
closed 01:40AM - 23 Jan 19 UTC
hi,
does this library support for connection pooling?
do we need to initiali… se new client connection for every single client request?
how does transaction work? can we reuse the same connection for multiple client?
thank you
mrjn
(Manish R Jain)
August 28, 2018, 6:27pm
2
You don’t need to create a new connection for every request. You can just create one connection, and use it for many concurrent requests.
u007
(James)
August 29, 2018, 9:45am
3
hi @mrjn
so i initiate a grpc on server, then
dgo.NewDgraphClient(...)
in handler?
system
(system)
Closed
September 28, 2018, 9:45am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.