What is the difference between TTL and LRU cache?
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.
Hikari Pool with 10 connections, under load, received 'connections not available'. What to do?
// 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 }
// 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 }
Tell me about your responsibilities. Have you managed to work on system design? Do you write unit tests?
What is a JAR file in Java?
Tell me about the Go scheduler (MPG model, work stealing, handoff, etc.)
Describe the idempotency mechanism of debit operations: where was the key stored, what was the TTL, how were collisions handled?
Why is volatile needed if synchronized exists? Synchronized covers all cases of volatile.
Why did you leave [company]?
Tell me about working with PostgreSQL optimization — what did you do with indexes and transactions?
//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.
// 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 }
What isolation level should be chosen to prevent overbooking only through the isolation level?
// 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) }
What is the difference between pessimistic and optimistic locking in PostgreSQL?
What is the Outbox pattern? How is it implemented?
Реализуйте highload RPC ручку /weather с нагрузкой 10k RPS, где функция aiWeatherForecast() работает ~1 секунду
Tell me, are there 6 Go developers, 2 front-end developers, 2 QA, and a PM in your team?