Can you rewrite the code by changing the first character of the string using rune or byte slicing?
Golang
What will the code with pointers output? How to fix the changePointer function without changing its signature?
What can you tell about the Outbox Pattern?
Tell about your experience working with user segmentation systems. What data volumes were processed?
What will the code with goroutines and a closure of the variable city in a loop output? How to fix it?
How does partitioning differ from sharding?
Why couldn't everything be built on ClickHouse, and instead just display metrics on the front end via a service?
What do you cache? Some directories?
How to guarantee that 100% of data update requests will eventually arrive at the read model?
How was your Postgres deployed? Was there a replica?
What happens when reading from a closed channel? Why does the program hang in an infinite loop when reading from a closed channel without range?
Do you use generics in Go?
If we want to frequently modify data in a table and also perform SELECTs often — what can help?
There is MongoDB as a document-oriented storage, and there is Postgres where you can create a table with a primary key and a JSON column. How do they differ?
What happens if the connection reports that there are no connections? What should be done in such a situation?
How well do you know databases?
Database per service vs shared database — which approach did you use?
What is a string in Go? What happens if you try to change the first character of a string by index?
Have you debugged anything in a fight or test in Kubernetes?
// Question 4. What will be displayed on the screen package main import "fmt" func subis(is []int) []int { return append(is, 5, 6) } func main() { is := []int{1, 2, 3, 4} subis(is[2:3]) fmt.Println(is) }