Sobes.tech

What indexes do you know and which ones have you used?

184

Why did you use Mutex instead of Atomic for the counter?

183

Tell me about the team: which team you worked in, its composition and size.

183

```go type User struct { ID int Name string } var ( dbHits int ) func getUserInfoFromDB(id int) User { time.Sleep(100 * time.Millisecond) dbHits++ return User{ID: id, Name: fmt.Sprintf("User-%d", id), } } func main() { var wg sync.WaitGroup for i := 0; i < 5; i++ { wg.Add(1) go func(i int) { defer wg.Done() fmt.Println(getUserInfoFromDB(i)) }(42) } wg.Wait() fmt.Println("DB hits:", dbHits) } ``` ```go func main() { var wg sync.WaitGroup j := 12345 for i := 0; i < 5000; i++ { wg.Add(1) go func(i int) { defer wg.Done() once.Do(func() { user = getUserInfoFromDB(42) }) fmt.Println(user) }(j) } wg.Wait() fmt.Println("DB hits:", dbHits) } ``` (There is no explicit question text, but the code suggests a task related to concurrency, synchronization, and minimizing database hits by using sync.Once or similar techniques.)

183

If you looked at the warehouse leftovers, did you key in specific SKUs?

183

What challenges have you faced when working with Kafka?

181

What are your financial expectations? Name the minimum and comfortable levels.

181

Tell us a little about yourself and your last place of work. What do you do?

178

Why does a B-tree work well for inequality and range queries?

178

How have you interacted with data sources? Did you provide API endpoints, write to Kafka, or read from Kafka?

177

Are you referring to ERP, 1C, and WMS as the platform?

177

In what format did you transfer data via Kafka?

176

Have you done sharding? What principle did you shard on?

174

Tell about your main tasks at your last job and about a difficult task you managed to implement recently (what was, what you did, what happened).

172

Regarding motivation for transition — why did you decide to enter the market and consider other offers in general?

172

What are your financial expectations? Name the minimum and comfortable levels.

168
/5