What message format should be used in Kafka for high-load services: JSON or binary?
Golang
What is a .env file and what is it used for?
Tell about the product reservation system: how did you prevent double sales using Redis?
How to organize interaction between frontend and backend for real-time notifications?
Tell us about Circuit Breaker: how was the solution arranged, which services were targeted, what was in the fallback?
func updateV1(px *int) { x2 := 20 px = &x2 } func updateV2(px *int) { *px = 20 } func main() { x := 10 updateV1(&x) fmt.Println(x) updateV2(&x) fmt.Println(x) }
Tell about the asynchronous report generation system using Kafka. What was the asynchrony?
Is it possible to optimize so that the res array is on the stack rather than on the heap? What needs to be done for this?
What is meant by request optimization when reducing API response time from 2 seconds to 300 ms?
Tell about master-slave replication — when you refer to master, when to slave?
How did the data from calculations get into 1C?
You are a writer, running your own mini blog where you publish articles. Users (readers) of your blog, after logging in, can view/read them. It is necessary to implement a functionality to count unique views per day for each article. Functional requirements: - Today's statistics: The author can see how many unique users viewed their article today (data is accumulated in real-time). - Past days' statistics: The author can see statistics for any past day (for example, yesterday). Technical constraints and conditions: - The application runs on 1 server (1 pod) - Storage in memory - Time in UTC0
How did you ensure the absence of duplicate messages in Kafka?
You see that there is no index, the table is large. How will you add an index?
How can you intentionally cause a memory leak in Go? What cases lead to leaks?
Will the array res be on the stack or on the heap, considering that it is passed to the functions double and append?
Will the optimizer always use the created index?
How was the addition and removal of rules handled if it was a large switch-case?