Sobes.tech

Embedded / IoT

//Task condition //Write code that will output the response codes for HTTP requests to two URLs //(Google's main page and shtrafovnet.ru's main page) //Requests should be made in parallel.

283

Hikari Pool with 10 connections, under load, received 'connections not available'. What to do?

257

// What will the following code output and why? package main import "fmt" type Person struct { Name string } func changeName(person *Person) { *person = Person{Name: "Alice"} } func main() { person := &Person{ Name: "Bob", } fmt.Println(person.Name) // Bob changeName(person) fmt.Println(person.Name) // Bob }

252

// What will the following code output and why? package main import "fmt" type Person struct { Name string } func changeName(person *Person) { person.Name = "Alice" } func main() { person := &Person{ Name: "Bob", } fmt.Println(person.Name) // Bob changeName(person) fmt.Println(person.Name) // Bob }

230

Tell me about your responsibilities. Have you managed to work on system design? Do you write unit tests?

221

Tell me about the Go scheduler (MPG model, work stealing, handoff, etc.)

219

Describe the idempotency mechanism of debit operations: where was the key stored, what was the TTL, how were collisions handled?

199

Why is volatile needed if synchronized exists? Synchronized covers all cases of volatile.

198

Tell me about working with PostgreSQL optimization — what did you do with indexes and transactions?

196

//Task condition //Write code that will output the response codes for HTTP requests to two URLs //the main page of Google and the main page of shtrafovnet.ru) //Requests should be made in parallel.

193

// What will the following program output and how long will it run? package main import ( "fmt" "time" ) const numRequests = 10_000 var count int func networkRequest() { time.Sleep(time.Millisecond) // Emulating a network request. count++ } func main() { for i := 0; i < numRequests; i++ { networkRequest() } fmt.Println(count) // 10_000 }

192

What isolation level should be chosen to prevent overbooking only through the isolation level?

191

// What will the following program output and how long will it run? package main import ( "fmt" "time" ) const numRequests = 10000 var count int func networkRequest() { time.Sleep(time.Millisecond) // Emulating a network request. count++ } func main() { for i := 0; i < numRequests; i++ { networkRequest() } fmt.Println(count) }

190

What is the difference between pessimistic and optimistic locking in PostgreSQL?

190

Реализуйте highload RPC ручку /weather с нагрузкой 10k RPS, где функция aiWeatherForecast() работает ~1 секунду

185

Tell me, are there 6 Go developers, 2 front-end developers, 2 QA, and a PM in your team?

182
/3