Golang
What fields does a slice in Go consist of?
type someInterface interface { someFunc() } type A struct { } func(a A) someFunc() { } type B struct { A } type C struct { some A }
How should partitions be distributed among pods when reading?
func main() { c := make(chan int, 1000) var wg sync.WaitGroup wg.Add(100) for i := 0; i < 100; i++ { go func() { defer wg.Done() foo(c) }() } go func() { wg.Wait() close(c) }() sum := 0 for r := range c { sum += r } // fmt.Println(sum) } func foo_req(c chan int) error { r := rand.Int() for i := 0; i < r; i++ { c <- r } }
How comfortable is the work schedule from 10 to 19?
Have you encountered advertising metrics? Do you know what they are measured in?
How will you choose from multiple proposals?
How to solve the data race problem we discussed?
Tell me about buffered and unbuffered channels. When do we use which? How do they block, and when do they lead to deadlock?
Can you increase the number of partitions in Kafka without recreating the topic?
What is the main difference between Repeatable Read and Serializable?
What problems arise in multithreaded interaction and how are they solved?
What is EXPLAIN in PostgreSQL? How can it estimate without executing the query?
Are there compilers for Go that run on microprocessors? Tell us about it.
Tell me about Consumer Group. How are 3 partitions and 2 consumers distributed?
If you output the contents of the map (line 19 in the code) — what will be stored there?
Your resume indicates 50-80 thousand RPS. What kind of service was this, and what did it do?
What is the difference between SQL and NoSQL?
How does Atomic differ from a regular variable assignment?
You said you have 4 years of experience, but you graduated from university in 2024. Did you study in your last year and work at the same time?