My use case is to serve response of an HTTP request after receiving another request from separate server. I want to do this best possible way keeping scaling in mind. We are using Golang 1.19 with Gin Framework. Server will have multiple pods thus channels will not work. There will be timeouts for all request making initial request timed out
Tag: go
Why do both Java and Go lock socket before write?
The Go internal/poll/fd_unix.go code is here the java code java.net.SocketOutputStream#socketWrite is here I don’t know why we need to lock that. Another question is the syscall.Write equivalent to <unistd.h> write in C? Answer Well, only answering for the Java part: As we are already talking about implementation details, why stop at the Java level? The C Source code for OpenJdk
How shall I add Java class file?
I am using Goland IDE to build microservice in Go. If I have to write tests in Java, can Goland IDE support that. I don’t see the support for Java in Goland. But wanted to check with folks who are experienced in Goland. Answer To create a Java file in GoLand, you need to invoke File | New | File
What’s the differences between Go and Java about interface? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago. Improve this question Recently I’ve been asked a question which is, what’s the difference between Golang and Java about interface? I know there