Golang
What will happen if Consumer.Process returns an error — will the data in the buffer be lost?
Tell about an interesting/complex technical problem you solved.
What is replication in databases?
What do you know about HTTP/3?
How to trigger a panic when working with a channel? What happens with nil-channel and closed channel operations?
How do interfaces help in testing (unit tests)?
Do you have preferences and wishes for a new workplace — team, processes, conditions?
If you create a goroutine, does the scheduler immediately execute it?
In HTTP/2, the ability to do one interesting thing has appeared due to a persistent TCP connection — what exactly did this enable?
What happens during a rolling update in Kubernetes?
What blocks mutex in a channel - a goroutine or a memory area?
[name] asked: have you worked there and there under an employment contract?
func collectRTT(ctx context.Context, urls []string) (map[string]time.Duration, error) { pingMap := make(map[string]time.Duration, len(urls)) var mu sync.Mutex var wg sync.WaitGroup errCh := make(chan error, 1) for _, url := range urls { wg.Add(1) go func(u string) { defer wg.Done() dur, err := rtt(ctx, u) if err != nil { select { case errCh <- fmt.Errorf("failed to rtt %s, %w", u, err): default: } return } mu.Lock() pingMap[u] = dur mu.Unlock() }(url) } wg.Wait() close(errCh) if err := <-errCh; err != nil { return nil, err } return pingMap, nil }
How does sync.RWMutex work and when should it be used?
What message brokers have you worked with? Compare Kafka and RabbitMQ
Why do Go developers not guarantee the order of map traversal during range?
How does the rule engine work?
Как сделать так, чтобы вообще не ходить в сервис, который заведомо упадёт или недоступен?
Do you use neural networks in your work? How exactly? What is your attitude towards them?
What is the main programming language and what other languages do you know, including non-commercial experience?